HTML list and comments

                            Lists in HTML

 The lists in html are of two types-
  •  Ordered Lists
  •  Unordered Lists    
  1. Ordered List- Ordered list can be defined by using tag as <ol>.......</ol>. Ordered tag <ol> must be closed by its closing tag </ol>.
  2. Unordered List- Unordered list can be defined  by using tag as <ul>.......</ul>. Ordered tag <ul> must be closed by its closing tag </ul>.   
   Note- The elements of list must be defined under the <li>.....</li> tag. <li> tag must be closed after every element of the list by </li> closing tag.

eg:
      <ol>
            <li>First ordered</li>
            <li>Second ordered</li>
            <li>Third ordered</li>
    </ol>

    <ul>
        <li>First unordered</li>
        <li>Second unordered</li>
        <li>Third unordered</li>
    </ul>


                                    Comments in HTML

Comments is most important part in every programming language. It is not necessary to give comments but commenting gives us ease to understanding and read the code.

HTML comment syntax-

<!--    ..................................................................................   -->

comments in HTML are started with <!-- and end with <--

all the text written in this are to be taken as a comment and it is not shown in webpage,
it is only for understanding .















Comments

Popular posts from this blog

Introduction To HTML

Adding Images in html

Div, Header, Footer and Main