Ul Tag in HTML5

In this article I am going to describe about the use of Ul Tag in HTML5
  • 1778

Ul Tag

The <ul> tag is used for defining a unordered list. The unordered list  represented items as listing without number. The changing of the list item order will not affect the meaning of list .

In the unordered list the list is created by <li> tag, and <ul> tag must have opening and closing tag. 

Browser Support

It is supported in all major browsers.

Attribute

<ul> tag has no attribute in html5. "type" and "compact" attribute is not supported by html5.

Syntax

Syntax of <ul> tag is

<ul>
<li>Item</li>
<li>Item</li>
</ul>

Example of <ul> tag in HTML5

<!DOCTYPE html>

 

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>

    <meta charset="utf-8" />

    <title>Ul Tag in HTML5</title>

</head>

<body>

    <h1>Implementation of &lt;ul&gt; tag in HTML5</h1>

    <h4>Indian Cricket Team:</h4>

    <ul>

        <li>Sachin Tendulkar</li>

        <li>Sorav Ganguly</li>

        <li>VVS Laxman</li>

        <li>Rahul Dravid</li>

    </ul>

</body>

</html>

Output

ul.jpg

© 2019 DotNetHeaven. All rights reserved.