HTML Lists |
||||
37 views
we need a tag to begin and end the entire list. The opening tag is <ul>, and the closing tag is… yep, you guessed it… </ul>. Now, to set off each item in your list, you use the <li> tag, followed by your text, then close each list item with the </li> tag. Here is a sample list with two list items: <ul> This will give us the bulleted list below:
you want to use the square type of bullet, you could do the following: <ul type=”square”> Which will give you the following list:
You can also use an ordered list in the same way you use the unordered list. Instead of using <ul></ul>, you would use <ol></ol>, like this: <ol> This gives you a numbered list rather than the bulleted list:
|
| « Lesson 2. Write text with javascript | HTML Forms » |
| Posted on Wednesday, June 18th, 2008 at 4:53 pm under HTML for Beginners | RSS 2.0 Feed | |