You are on page 1of 2

/lds

LIST
<li> TAG defines a list of items. Used to specify ordered <ol> and unordered <ul> lists.
SYNTAX:
<ol> <ul>
<li> List </li> <li> List </li>
<li> List </li> <li> List </li>
</ol> </ul>

Attribute Values
<li type=value>
For ordered lists (<ol>):
Value Description
1 Numerical ordered list (this is default) (1, 2, 3, 4)
a Alphabetically ordered list, lowercase (a, b, c, d)
A Alphabetically ordered list, uppercase (A, B, C, D)
i Roman numbers, lowercase (i, ii, iii, iv)
I Roman numbers, uppercase (I, II, III, IV)
For unordered lists (<ul>):
Value Description
disc Default. A filled circle
circle An unfilled circle
square A filled square


TABLE
The <table> tag defines an HTML table.
A simple HTML table consists of the table element and one or more tr, th, and td elements.
The <tr> element defines a table row, the <th> element defines a table header, and the <td>
element defines a table cell.
SYNTAX:
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>


Output:
Header 1 Header 2
Cell 1 Cell 2
Cell 3 Cell 4

/lds
Optional Attributes
Attribute Value Description
align left
center
right
Use styles instead.
Specifies the alignment of a table according to
surrounding text
bgcolor rgb(x,x,x)
#xxxxxx
colorname
Use styles instead.
Specifies the background color for a table
border pixels Specifies the width of the borders around a table
width pixels
%
Specifies the width of a table

ANCHOR
The <a> tag defines an anchor. An anchor can be used in two ways:
1. To create a link to another document, by using the href attribute
2. To create a bookmark inside a document, by using the name attribute
The a element is usually referred to as a link or a hyperlink.
The most important attribute of the a element is the href attribute, which indicates the links
destination.
By default, links will appear as follows in all browsers:
An unvisited link is underlined and blue
A visited link is underlined and purple
An active link is underlined and red
Optional Attributes
Attribute Value Description
href URL Specifies the destination of a link
name section_name Specifies the name of an anchor

Sample:
<a href="http://www.ntc.edu.ph>The National Teachers College Website</a>


<a href=#C1>GO TO CHAPTER 1</a>
<a name=C1> Chapter 1</a>

You might also like