Jayneahl

Jayneahl

Monday, August 8, 2011

August 1-5

I learned this week is how to create a website with <li>

HTML <li> Tag

Example

One ordered and one unordered HTML list:
<ol>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

Try it yourself »
(more examples at the bottom of this page)

Definition and Usage

The <li> tag defines a list item.
The <li> tag is used in both ordered (<ol>) and unordered (<ul>) lists.



Differences Between HTML and XHTML

NONE

Tips and Notes

Tip: Use CSS to define the type of list and list item.

July 25-29

I Learned this week is how to creat a webpage with <dd>

HTML <dd> Tag

Example

Description of items in a definition list:
<dl>
  <dt>Coffee</dt>
    <dd>- black hot drink</dd>
  <dt>Milk</dt>
    <dd>- white cold drink</dd>
</dl>

Definition and Usage

The <dd> tag is used to describe an item in a definition list.
The <dd> tag is used in conjunction with <dl> (defines the definition list) and <dt> (defines the item in the list).
Inside a <dd> tag you can put paragraphs, line breaks, images, links, lists, etc.