| Anneke.Net > Computers & Technology > HTML Tutorial > An Introduction to HTML (Page 2) |
| An Introduction to
HTML |
|
[ Understanding HTML Tags | The First Four Tags: html, head, title, body ]
|
|
Go directly to the next page, Editing Your HTML
File.
Understanding HTML Tags <tag> affected (tagged) text </tag> <center> This text would show up centered! </center> Tags also have additional attributes (the attributes vary depending on the tag) which act like sub-tags on the original tags. "Font," for example, has attributes for "size" and "color": The four tags generally used to create a web page are html, head, title, and body. As stated above, the first and last tags in an HTML document must be <html> and </html>, so the document is recognized as an HTML file. The second tag is the <head> tag, which provides information to the browser, and normally contains the title of the page as well, which is displayed in the upper left-hand corner of Netscape when the page is accessed:
<head> <title> This is the title, displayed in the browser heading itself. The title should be between the opening and closing "head" tags. </title> </head>The <body> tag is the last of the first four tags, and can be used to change the background color, background image, text or link colors with various includable attributes (as mentioned above). The <body> tag should follow the </head> tag, while the closing body tag, </body>, should come directly before the closing html tag, </html>. A very basic page, therefore, will look something like this, with the appropriate text substituted: <html> <head> <title>Insert Title Here </title> </head> <body body_attributes=value> Insert the Body of the Text Here </body> </html> Now that we've gotten this far, let's continue on and go to Editing Your HTML File. |
|
Back to the Top Home Last modified October 14, 2001. |