12. HTML Tags
• <body></body>
• Heading Elements
<h1>Largest Heading</h1>
<h2> . . . </h2> <h3> . . . </h3> <h4> . . . </h4> <h5> . . . </h5>
<h6>Smallest Heading</h6>
• Text Elements
<p>This is a paragraph</p>
<br /> (line break)
<hr /> (horizontal rule)
<pre>This text is preformatted</pre>
• Logical Styles
<em>This text is emphasized</em>
<strong>This text is strong</strong>
<code>This is some computer code</code>Physical Styles
<b>This text is bold</b>
<i>This text is italic</i>
• LinksOrdinary
• link:
<a href="http://www.example.com/">Link-text goes here</a>
Image-link: <a href="http://www.example.com/"><imgsrc="URL" alt="Alternate Text" /></a>
Mailto link: <a href="mailto:webmaster@example.com">Send e-mail</a>
A named anchor: <a name="tips">Tips Section</a> <a href="#tips">Jump to the Tips Section</a>
• Unordered list
<ul> <li>Item</li> <li>Item</li></ul>
• Ordered list
<ol> <li>First item</li> <li>Second item</li></ol>
13. CSS Styles: Class
• Class: specify a style for a group of
elements.
CSS:
.imgLeft {
float: left;
margin: 10px;}
HTML:
<imgsrc=”PhotoName.jpg" width="169"
height="156" class="imgLeft" />
14. CSS styles
• ID: specify a style for a single, unique
element.
#header {
width: 920px;
height: 150px;
padding: 5px;
background-color: #F3C;
margin: 5px;}
http://www.w3schools.com/css/css_id_class.
asp