Html basic tag

 

The <p> tag defines a paragraph.

http://www.w3schools.com/tags/tag_p.asp

 

The <td> tag defines a standard cell in an HTML table.

An HTML table has two kinds of cells:

  • Header cells - contains header information (created with the <th> element)
  • Standard cells - contains data (created with the <td> element)

The text in <th> elements are bold and centered by default.

The text in <td> elements are regular and left-aligned by default.

http://www.w3schools.com/tags/tag_td.asp

 

The <th> tag defines a header cell in an HTML table.

http://www.w3schools.com/tags/tag_th.asp

 

 

Lists

The <ol> tag defines an ordered list. An ordered list can be numerical or alphabetical.

Use the <li> tag to define list items.

http://www.w3schools.com/tags/tag_ol.asp

 

The <ul> tag defines an unordered (bulleted) list.

Use the <ul> tag together with the <li> tag to create unordered lists.

http://www.w3schools.com/tags/tag_ul.asp

 

The <li> tag defines a list item.

The <li> tag is used in ordered lists(<ol>), unordered lists (<ul>), and in menu lists (<menu>).

http://www.w3schools.com/tags/tag_li.asp

<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>

<ol start="50">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>

 

 

The <dl> tag defines a description list.  用来定义

The <dl> tag is used in conjunction with <dt> (defines terms/names) and <dd> (describes each term/name).

http://www.w3schools.com/tags/tag_dl.asp 

 

The <dt> tag defines a term/name in a description list.  用来描述

The <dt> tag is used in conjunction with <dl> (defines a description list) and <dd> (describes each term/name).

http://www.w3schools.com/tags/tag_dt.asp 

 

The <dd> tag is used to describe a term/name in a description list.

The <dd> tag is used in conjunction with <dl> (defines a description list) and <dt> (defines terms/names).

Inside a <dd> tag you can put paragraphs, line breaks, images, links, lists, etc.

<dl>
  <dt>Coffee</dt>
  <dd>Black hot drink</dd>
  <dt>Milk</dt>
  <dd>White cold drink</dd>
</dl>

 

posted @ 2016-10-15 13:50  ChuckLu  阅读(215)  评论(0编辑  收藏  举报