bbb Home
Introduction to HTML Contents        

SUMMARY OF HTML

MAIN TAGS

TAG DESCRIPTION
<html> Container for entire document
<body> Contains content of page
<head> Contains information that is generally not rendered
<style> Contains style sheet rules
<script> Contains script code

EXAMPLE

1. The following code shows the most basic web page tags. The <html>, <head>, and <body> tags are structural tags and should appear in all pages. Copy the code and paste into a Notepad file. Then save with a .htm or .html extension.

<html>
<head>
<title>My First Page</title>
</head>
<body>
<!-- This is my first page -->
Copy this code.
Paste it into Notepad.
Save file as .htm or .html.
Open file in a browser such as Internet Explorer.
</body>
</html>

2. Open in a browser. Where is the "title"? Is the text on different lines? Where is the statement "This is my first page?"

3. View the source by right clicking on the page and clicking view source.


PRACTICE

Create a web page which meets the following requirements:

  1. Your name and school are listed on separate lines.
  2. Your name is bold.
  3. Your school is italicized. Use the <i> tags to make something italic.
  4. The background color of the page is red.
  5. The title of the page is "My Info".


SELF-QUIZ