�Introduction to� HTML ..�
1
List Elements
<UL>
<LI> List item …</LI>
<LI> List item …</LI>
</UL>
2
List Elements
<UL TYPE=“square”>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
</UL>
3
List Elements
<OL>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
</OL>
4
List Elements
5
TYPE | Numbering | Styles |
1 | Arabic numbers | 1,2,3, …… |
a | Lower alpha | a, b, c, …… |
A | Upper alpha | A, B, C, …… |
i | Lower roman | i, ii, iii, …… |
I | Upper roman | I, II, III, …… |
List Elements
<OL TYPE =“i”>
<LI> List item …</LI>
<LI> List item …</LI>
</OL>
<P> text ….</P>
<OL TYPE=“i” START=“3”>
<LI> List item …</LI>
</OL>
6
List Elements
Text ….
7
List Elements
<DL>
<DT> HTML </DT>
<DD> Hyper Text Markup Language </DD>
<DT> DOG </DT>
<DD> A human’s best friend!</DD>
</DL>
HTML
Hyper Text Markup Language
DOG
A human’s best friend!
8
Nesting Lists
Example
<UL TYPE = “square”>
<LI> List item …</LI>
<LI> List item …
<OL TYPE=“i” START=“3”>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
</OL>
</LI>
<LI> List item …</LI>
</UL>
9
What will be the output?
10
<H1 ALIGN="CENTER">SAFETY TIPS FOR CANOEISTS</H1>�<OL TYPE=“a” START=“2”>�<LI>Be able to swim </LI> �<LI>Wear a life jacket at all times </LI>�<LI>Don't stand up or move around. If canoe tips,
<UL>�<LI>Hang on to the canoe </LI> �<LI>Use the canoe for support and </LI> � <LI>Swim to shore�</UL> </LI>
<LI>Don't overexert yourself </LI> �<LI>Use a bow light at night </LI> �</OL>�
The output….
11
12
<H1 ALIGN="CENTER">SAFETY TIPS FOR CANOEISTS</H1>
<OL TYPE="a" START="2">
<LI>Be able to swim </LI>
<LI>Wear a life jacket at all times </LI>
<LI>Don't stand up or move around. If canoe tips,
<UL>
<LI>Hang on to the canoe </LI>
<LI>Use the canoe for support
<OL type="I" start="4">
<LI> Be careful </LI>
<LI> Do not look around</LI>
</LI> </OL>
<LI>Swim to shore
</UL> </LI>
<LI>Don't overexert yourself </LI>
<LI>Use a bow light at night </LI>
</OL>
What
will
be the
output?
The output….
13
Images
In this chapter you will learn about images and how to place images in your pages.
Objectives
Upon completing this section, you should be able to
14
Images
15
Images
16
Some Examples on images
1) <IMG SRC=“jordan.gif“ border=4>
2) <IMG SRC=" jordan.gif" width="60" height="60">
3) <IMG SRC=“jordan.gif" ALT="This is a text that goes with the image">
4) <IMG SRC=" jordan.gif “ Hspace="30" Vspace="10" border=20>
5) < IMG SRC =" jordan.gif“ align="left">
blast blast blast blast blast
17
Anchors, URLs and Image Maps
In this chapter you will learn about Uniform Resource Locator, and how to add them as Anchor or Links inside your web pages.
Objectives
Upon completing this section, you should be able to
18
Shapes, Coords
19
Tables
In this chapter you will learn that tables have many uses in
HTML.
Objectives:
Upon completing this section, you should be able to:
20
Tables
21
Tables
<table border=“1”>
<tr>
<th> Column 1 header </th>
<th> Column 2 header </th>
</tr>
<tr>
<td> Row1, Col1 </td>
<td> Row1, Col2 </td>
</tr>
<tr>
<td> Row2, Col1 </td>
<td> Row2, Col2 </td>
</tr>
</table>
22
Tables
23
Column 1 Header | Column 2 Header |
Row1, Col1 | Row1, Col2 |
Row2, Col1 | Row2, Col2 |
Tables Attributes
24
Table Attributes
25
Table Caption
<TABLE BORDER=1 CELLPADDING=2>
<CAPTION ALIGN=“BOTTOM”> Label For My Table </CAPTION>
26
Table Header
27
Table Data and Table Header Attributes
28
Basic Table Code
<TABLE BORDER=1 width=50%>
<CAPTION> <h1>Spare Parts <h1> </Caption>
<TR><TH>Stock Number</TH><TH>Description</TH><TH>List Price</TH></TR>
<TR><TD bgcolor=red>3476-AB</TD><TD>76mm Socket</TD><TD>45.00</TD></TR>
<TR><TD >3478-AB</TD><TD><font color=blue>78mm Socket</font> </TD><TD>47.50</TD></TR>
<TR><TD>3480-AB</TD><TD>80mm Socket</TD><TD>50.00</TD></TR>
</TABLE>
29
Table Data and Table Header Attributes
<Table border=1 cellpadding =2>
<tr> <th> Column 1 Header</th> <th> Column 2 Header</th> </tr>
<tr> <td colspan=2> Row 1 Col 1</td> </tr>
<tr> <td rowspan=2>Row 2 Col 1</td>
<td> Row 2 Col2</td> </tr>
<tr> <td> Row 3 Col2</td> </tr>
</table>
30
Table Data and Table Header Attributes
31
Column 1 Header | Column 2 Header |
Row 1 Col 1 | |
Row 2 Col 1 | Row 2 Col 2 |
| Row 3 Col 2 |
�Special Things to Note�
32
�Special Things to Note�
33
What will be the output?
<TABLE BORDER width=“750”>
<TR> <TD colspan=“4” align=“center”>Page Banner</TD></TR>
<TR> <TD rowspan=“2” width=“25%”>Nav Links</TD><TD colspan=“2”>Feature Article</TD> <TD rowspan=“2” width=“25%”>Linked Ads</TD></TR>
<TR><TD width=“25%”>News Column 1 </TD> <TD width=“25%”><News Column 2 </TD></TR>
</TABLE>
34
The Output
35