The Basics of HTML

2. Common Tags
   Lets add new tags to expand upon our skeletal structure:

<HTML>
<head>
<title>Title Bar Message</title>
</head>
<body>

<H1> Welcome to My Web Page! </H1>
<H2> Here is an exerpt from the US Constitution: </H2>
<p> &quot;We the People of the United States.. &quot;
</body>
</HTML>



You should recognize many of the above tags. However there are a few new tags within the body section of the HTML document. These tags include:
<H1></H1> <H2></H2> H1 and H2 are called headline tags. There are several headline tags progressing from largest (H1) to smallest (H6). Headline tags emphasize text just like newspaper headlines.
<p> P tags (also called paragraph tags) separate text into paragraphs. Paragraphs tags DO NOT require closing tags. Some people use closing tags, it is really a matter of style. Professional web designers rarely use closing paragraph tags. If you wish to use close paragraph tags, they look like this: </p>
&quot; HTML reserves some special characters that you cannot use in your regular text. &quot; is an example of one of these special characters. The &quot; tag, when entered into an HTML document creates the quotation mark symbol  " 



Here are a few of the reserved characters and the special notations required to get them to display:
&nbsp; Non-breaking space, indents text by one space for each of these included.
&amp; Ampersand, displays the shorthand and symbol  & 
&lt; Less Than Symbol, <
&gt; Greater Than Symbol, >


Creative Commons License
This work is licensed under a Creative Commons License.

(<< Back)     [Home]     (Next >>)

Hosted by www.Geocities.ws

1