X hits on this document

PDF document

HTML Beginner's Guide - page 7 / 16

33 views

0 shares

0 downloads

0 comments

7 / 16

Change your code to the following:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>My first web page</title> </head> <body> <h1>My first web page</h1> <h2>What this is</h2> <p>A simple page put together using HTML</p> <h2>Why this is</h2> <ul>

<li>To learn HTML</li> <li>To show off</li> <li>Because I've fallen in love with my computer and want to give her some HTML loving.</li> </ul> </body> </html>

If you look at this in your browser, you will see a bulleted list. Simply change the ul tags to ol and you will see that the list will become numbered.

Lists can also be included in lists to form a structured hierarchy of items.

Replace the above list code with the following:

<ul> <li>To learn HTML</li> <li>To show off <ol> <li>To my boss</li> <li>To my friends</li> <li>To my cat</li> <li>To the little talking duck in my brain</li> </ol> </li> <li>Because I've fallen in love with my computer and want to give her some HTML loving.</li> </ul>

Ay vwah lah. A list within a list. And you could put another list within that. And another within that. And so on and so forth.

Document info
Document views33
Page views33
Page last viewedSat Dec 03 05:14:01 UTC 2016
Pages16
Paragraphs214
Words4418

Comments