Welcome to lesson 1! This is the first of many lessons teaching HTML- The coding of the web. I'm going to explain how this will work. Anything in Teletype, or typewriter is what I want you to type in a text editor. I recommend Notepad for Windows and simpletext for macs. Anything in Teletype is what should be in your text editor. Anything in Teletype thats
highlighted |
With that said, lets get started!
Open up your text editor and type this:
<HTML>
<HEAD>
<TITLE>Type any title you want</TITLE>
</HEAD>
<BODY>
Some text
</BODY>
</HTML>
Once you do that, click "file" in your text editor, click on "save" or "save as". Type in "index.html". Now open up the document in your web browser and look at it. It should match this one here. If it doesn't, check your work. Everything should be done exactly like above.
Okay, if it looks like my example page, give yourself a pat on the back. You've made your first web page. I will now explain what each "tag" does.
<HTML> and its end tag </HTML>
This "tag" is used to start the document. In HTML, most tags have closing ones wich shut off the beginning tag. In this one, the start tag <HTML>starts the document and </HTML>ends the beginning tag. You can identify an ending tag by looking for a "/" in front.
<HEAD> and its ending tag </HEAD>
This is the place where things that influence a page go. Anything written between these tags will not show up. A page's title goes here along with some javascript and css. But we'll get into that later.
<TITLE> and its ending tag </TITLE>
This tag is used for giving a page a title. Anything between these tags will show up on the blue bar of your browser(at the top).
<BODY> and its ending tag </BODY>
In between these two tags is where most HTML takes place, Anything will appear on the page.
Congratulations! You've completed Lesson 1 in the HTML series! Your ready to go to the next lesson. You can now close this window or leave me feedback below.
Let's go on to the next lesson: Lesson 2: Adding and Formatting Text. We'll have some more fun!
If you want you may return home by closing this window.
Use this form to send me feedback about this lesson. If there are any typos, please give me the sentence where they exist. Thank You I will read all feedback.