HTML Text Handling

HTML Text Handling

How to draw a horizontal line in html?
How to use lists in html?

Explanation


Horizontal Line:


This is special tag used to draw new horizontal lines.
It doesn’t require closing tags.

Example Code:


Result:


This tag has the attribute “width” to specify the width of the line


will give the below line

Example Code:



Lists :


Un Ordered Lists:

    ,

  • Tag to create a list of items.

    Example Code

    • List1
    • List2

    Result :

    • List1
    • List2

    Ordered Lists:

      ,

    1. Tag to create a list of numbered items. The numbering will be done automatically.

      Example Code

      1. List1
      2. List2

      Result :

      1. List1
      2. List2

      Nested Lists:

        ,

      • Example Code

        • List1
          • Sub List1
          • Sub List2

        • List2

        Result :

        • List1
          • Sub List1
          • Sub List2
        • List2

Leave a Reply

Your email address will not be published. Required fields are marked *