The WWW is what most of us experience whenever we are using the Internet. The web comprises billions of web pages that are available for people all over the world to visit. Let's dive right in and learn a bit about how the web works, before we start "hacking" it.
Ok, now that we know about our browser
, our client
, and a bit about the
web
... πΆlet's get it started in here! In order for use to make it into the
spotlight quickly, let's find a super popular website.
YOUR NAME!
context menu
that pops up when you right-click, choose
Inspect Element
There's about to be a lot of code
on your screen. Don't worry π
, this is what we are looking for. Let's figure it out together.π€
Admissions
, and that's what we're looking for.
Admissions
There are soooo many colors to choose from on the web π.
No really, the monitor you're using could support displaying over 1 BILLION!
How can we tell the computer what color we want to use? π¨
I don't know 1,000,000,000
different color names.
Do you?
red
0
. The most is 255
. In this system, the
color black is rgb(0,0,0)
(0 red, 0 green, and 0 blue).Since you already made yourself famous (above), let's now give your name some color!
maroon
).context menu
that pops up when you right-click, choose Inspect Element
Most websites use images to illustrate their text, or simply to entertain. You will have noticed by now that JMU's site includes a large image when you load it.
Did you notice the the JMU Wordmark is actually an image also?
While there are several kinds of images, those that work well in the web (esp. jpg
, gif
, png
, and svg
), are often all written in to the web page in one of two ways. For now, let's just focus on one of these: the <img>
tag.
Let's find a goofy picture and sneak it into JMU's website.
https://upload.wikimedia.org/wikipedia/en/thumb/a/a6/Goofy.svg/323px-Goofy.svg.png
copy
its URL. Copy Image Location
context menu
that pops up when you right-click, choose
Inspect Element
. <img>
tag has a src
attribute (it says
src="..."
).pasting
what you copied earlier?)So what exactly is all this code we've been editing small parts of? The next video from the Khan Academy Into to HTML for Hour of Code starts to dig into HTML.
The Khan Academy Into to HTML for Hour of Code also has a few more activities you may enjoy.
How would you like to continue your work so far by building your very own site from scratch?
unzip
these files.File
menu and choose Open Folder