HTML, Part 2 : Structure |
by Evan Goer | |
April 24, 2003 | |
This 2nd tutorial teaches you how the basic structure of an HTML file works. A Simple Web Page (source)
A Simple Webpage This is a simple webpage.
If you view the "Simple Web Page" in your browser, you will see these words on a white or grey background: A Simple Web Page (Results) Where did everything else go? And what are those words with the angle brackets, anyway? A Brief Introduction to Tags The web page simple.html uses the following tags: , , , and . Tags do not appear directly when you view a web page. Instead, they serve as instructions to your browser. Tags can change the font, create a link, insert an image, and more. The tags in simple.html that begin with a slash (, , , and ) are called closing tags. Closing tags stop the effect of the tag that they correspond to. For example, the section ends at the closing tag, . Short List of Tag Properties
We'll discuss the general properties of tags in some detail in a later section. For now, let's focus on the particular tags in the "Simple Web Page" example. Tags in Example 1 (Structural Tags)
Exercise Change the title of the simple.html webpage to, "My First Webpage". Save your changes and view them by hitting the Refresh or Reload button in your browser. Wrapping Up So why do we only see the words "This is a simple webpage" when we display simple.html in a browser? The answer is, after you remove the tags and the document title, "This is a simple webpage" is the only thing left. In the next section, we'll tinker with our example webpage, just to see what happens. After that, we'll provide a more formal definition of tags and tag properties. Have a question? Need help? Get free, friendly person-to-person help with your computer questions or spyware questions in our help forums! |