
|
This first tutorial covers 5 basic HTML tags that will occur in the same order in every single web page you will ever create. We suggest memorizing these tags, as these are the most crucial tags in an HTML document. If they are missing or in the wrong order, they can prevent a web page from loading in the web browser.
What follows is a simple example that you can type within your text editor in order to create your first web page. You'll find the example contained between a set of "==" dashed lines. Open your text editor, and type the example exactly as shown. Be sure to include all of the tags, in the same order as they're shown within the example. This is a followed by a description of these tags, instructions on how to save the file, checking and troubleshooting advice.
HTML Tags DescribedHTML has standardized tags which Web browsers interpret for displaying a Web page.All HTML tags start and end with the greater than and lesser than keys used as brackets, for example, <HTML>. Most HTML tags use an opening and closing tag, for example, <TITLE> My First Web Page </TITLE>
Here's a description of the tags used in the example:
</BODY> closes the body of the page;
Saving the HTML FileSelect File/Save in your text editor. Use the filename index.htm, and if you have a choice of file types select whichever of the following your text editor offers:
Checking the HTML FileThe next step is to check the file, and see how it looks in the web browser. Open your web browser, and select File/Open File, and select the file you've saved. You'll either hear a gasp of surprised elation at seeing your first web page, or a confused "whaaaa?" if the page doesn't appear as it should. You can compare it against our example here. If your page looks exactly the same, then you did everything right! Go to the head of the class. If something's wrong, don't worry, we've got Troubleshooting Tips below.Troubleshooting the HTML FileQ. Why isn't the title (the words we put between the <TITLE> and the </TITLE> tag) on the page as a title?A. Because the TITLE tag adds the title in the title bar of the web browser. You should see your title not on the web page itself, but at the very top of the web browser, above the URL window and icons on the web browser.
Q. There are funny blank rectangles and weird symbols on my page that I didn't type in. What happened?
Q. Why does the example show the HTML tags in upper case? Does it make a difference?
Q. Some (or all) of my page didn't show up. What went wrong?
The HTML Song
Q. My page turned out perfect! Is it on the web?
|