- Introduction To HTML
- HTML Editors
- HTML Basic Examples
- HTML Elements
- HTML Attributes
- HTML Headings
- HTML Paragraphs
- HTML Styles
- HTML Formatting Elements
- HTML Quotation
- HTML Comments
- HTML Colors
- HTML Styles - CSS
- HTML Links
- HTML Images
- HTML Tables
- HTML Lists
- HTML Block And Inline
- HTML Class
- HTML Id
- HTML Iframes
- HTML JavaScript
- HTML File Paths
- HTML Head
- HTML Layout
- HTML Responsive
- HTML Computer Code
- HTML Semantic
- HTML Forms
- HTML Form Attributes
- HTML Form Elements
- HTML Input Types
- HTML Input Attributes
- HTML Input Form Attributes
- HTML Canvas
- HTML SVG
- HTML Media
- HTML Video
- HTML Audio
- HTML YouTube
HTML Lists
Lists
Web designers can organise a collection of connected things in lists using HTML lists.
<html>
<body>
<h2>An Unordered HTML List</h2>
<ul>
<li>Book</li>
<li>Pen</li>
<li>Copy</li>
</ul>
<h2>An Ordered HTML List</h2>
<ol>
<li>Book</li>
<li>Pen</li>
<li>Copy</li>
</ol>
</body>
</html>
Unordered HTML List
With the <ul>
tag, an unordered list is introduced. The <li>
tag appears at the top of each list item.
By default, the list items will be denoted with bullets (small black circles):
<html>
<head>
</head>
<body>
<ul>
<li>Book</li>
<li>Pen</li>
<li>Copy</li>
</ul>
</body>
</html>
Ordered HTML List
The <ol>
tag indicates that the list is ordered. The <li>
tag appears at the top of each list item.
The list elements will by default have numbers next to them:
<html>
<head>
</head>
<body>
<ol>
<li>Book</li>
<li>Pen</li>
<li>Copy</li>
</ol>
</body>
</html>
HTML Description Lists
Also supported by HTML are description lists.
Term descriptions are included in a description list, which is a list of terms.
The terms (names) are defined by the <dt>
tag, the <dl>
tag specifies the description list, and the <dd>
tag explains each term:
<html>
<head>
</head>
<body>
<dl>
<dt>Book</dt>
<dd>- Pen</dd>
<dt>Copy</dt>
<dd>- white board</dd>
</dl>
</body>
</html>
Products
Partner
Copyright © RVR Innovations LLP 2024 | All rights reserved - Mytat.co is the venture of RVR Innovations LLP