This is your editor.
Hypertext Markup Language. HTML. The web runs on this. At the end of the day, (Almost) everything
you see on the web happens because HTML told it to happen. There are some modern exceptions to this,
but for the purposes of this little dance we're doing, HTML is the "language of the web".
We are going to start by making a simple website. Yes. Really. On your screen is an editable area
and a rendering area. We can enter HTML to the editor, click the Render Site button and see the result
in the display area. This is going to start VERY simply.
1. Words
Type: Hello World
In the editor. Click the Render Site button.
That's a webpage!! Admittedly, not a very interesting one. But the browser took your text and put it on a webpage.
That's it. That is the basis of the whole gaddam thing.
2. Tell the browser what the words are
Now let's tell the browser that those words are a headline.
Type: <h1>Hello World</h1>
Render it.
Much better! We just told the browser to think a bit differently about HELLO WORLD. We didn't change the words
themselves. We changed the instructions surrounding them.
- <h1> tells the browser: this is a level-one heading.
- </h1> tells it: we're done with the heading.
Those things you see between < and > are called tags.
Most of the time, you'll have an opening tag and a closing tag, with some content between them.
3. Lines and whitespace
Type a few lines of text in the editor below the <h1>Hello World</h1>
If you need inspiration
you can copy this section
and paste it.
Render the site.
Ooops... Well heck. That didn't work. Why?
4. HTML Does Not Give a Shit About Your Enter Key.
When the browser reads ordinary HTML, it generally ignores extra spaces and line breaks. It assumes that you are
just making text easier to read in the editor. If you want something to appear as a new paragraph, you have to tell
the browser that it is a new paragraph. There are multiple ways to do that, but the cleanest one is the paragraph tag.
The paragraph tag is <p> and its closing tag is </p> .
This is the important bit: HTML isn't telling the browser how you typed the words. It's telling the browser what the words are.
You know what to do!
Make yourself two paragraphs and Render Site.
5. Time for a break.
Not every line break is the end of a neat paragraph. Sometimes you need to drop a line
Or two
Or five.
That's where the BREAK tag ( <br> ) comes in. The break tag's only job is to end the line
you are currently on, and drop to the next one. Unlike the tags we have explored so far, the <br>
tag stands alone. It has no closing tag.
Add this to your site and see what happens!
This line is above <br> this line, which is above <br> this line.
That line across up there? That was a Horizontal Rule Tag ( <hr> ). I love them.
The rest of humanity actively hates them, and anyone who uses them. Go figure.
This is not an exploration of every potential HTML tag ever opened or closed. ( BUT THIS IS! )
What you should be thinking is: "Tags tell the browser what the stuff inside is doing".
If you feel like you get that, then we are in a good place!
Play around as long as you like. When you are ready:
<= BACK | CLICK THE LINK TO LINK TO THE LINK ABOUT LINKS =>