Wednesday 16 November 2022

Html- Unordered Tag

 HTML List 

--------------------------------------------------------------------------------



==============================

HTML Lists

HTML lists are used to present list of information in well formed and semantic way. There are three different types of list in HTML and each one has a specific purpose and meaning.

  • Unordered list — Used to create a list of related items, in no particular order.
  • Ordered list — Used to create a list of related items, in a specific order.
  • Description list — Used to create a list of terms and their descriptions.
                --------------------------------------------------------------------------

   Names and Uses of HTML Elements Used to Create HTML List

Many elements are used to create an HTML list. That's why we are first telling about the names of the elements and their use to create HTML List.

 

UL Element – ​​The full name of UL Element is Unordered List. Bullet Lists or Unordered Lists are created by the Unordered List Element.

OL Element – ​​The full name of OL Element is Order List. Number or Order Lists are created by Order List Element.

LI Element – ​​The full name of LI Element is List Item. The data to be written in a list is defined by the List Item Element.

DL Element – ​​The full name of DL Element is Definition List. Definition Lists are defined by the Definition List Element.

DT Element – ​​The full name of DD Element is Definition Term. Definition Term is defined by the Definition Term Element.

DD Element – ​​The full name of DD Element is Definition Description. The description of the Definition Terms is defined by the Definition Description Element.


-------------------------------------------------------------------------------------------------------------------
Unordered list

An unordered list created using the <ul> element, and each list item starts with the <li> element. The list items in unordered lists are marked with bullets. 

Here's an example:

<html>

<head>

<title> Unordered list Tag </title>

<head>

<body>

<h1> Programming Languages list</h1>

<ul>

    <li>Html</li>

    <li>Java</li>

    <li>C++</li>

    <li> C</li>

    <li> CSS</li>

</ul>

</body>

</html>


Output :-


-----------------------------------------------------------------------------------------------------------------------------


No comments:

Post a Comment