Tutorials
Navigation
  • Index
  • Next

  • Home Page
  • Home

  • HTML


    Lists

    Writing text can get a little boring after a while, so why not put it into the form of a list? The presentation for short bullet points, rankings and much more can be greatly enhanced by lists.

    There are two main types of list, the ordered list, and the unordered list, which are started by the tags <ol> and <ul> respectively. The first starts a numbered list, whilst the second starts a list with bullets down the side. In order to make an item on the list, the tag <li> is used. This does not need to be ended with an </li>, but the ol and ul tags do, like so: </ul>

    Example code for lists:Result:
    <ul>
    <li> List item 1
    <li> List item 2
    </ul>
    
    
    • List item 1
    • List item 2
    <ol>
    <li> List item 1
    <li> List item 2
    </ol>
    
    
    1. List item 1
    2. List item 2

    Its not just lists that can help presentation though, there are many more tags that allow extra little details to be added. For example, the alignment of your page can be altered so that it is central. Any text between <center> and </center> will be central, for example:

    Central text

    With your text presentation now sorted, how about some pictures to spice up that page? Move onto the next tutorial.

    <<< Previous TutorialTutorial IndexNext Tutorial >>>

    Thank you for visiting my home page.
    Hosted by www.Geocities.ws

    1