Unit 2 - Lists & Links

Tags List

<ol> Tag

Explanation: Used to create numbered list.

Example:

<ol>
<li>One</li>
<li>Two</li>
</ol>

Output:

  1. One
  2. Two

<ul> Tag

Explanation: Used to create bullet list.

Example:

<ul>
<li>Apple</li>
<li>Banana</li>
</ul>

Output:

<dl> Tag

Explanation: Used for description list.

Example:

<dl>
<dt>HTML</dt>
<dd>Markup Language</dd>
</dl>

Output:

HTML
Markup Language

<a> Tag

Explanation: Used to create links between pages.

Syntax:

<a href="index.html">Home</a>

Example:

Go to Home

<marquee> Tag

Explanation: Used to scroll text on screen.

Example:

<marquee>Welcome</marquee>

Output:

Welcome to WD Learning Hub