HTML class summary, HTML class Summary

Source: Internet
Author: User

HTML class summary, HTML class Summary

HTML translation into hypertext markup language
<Tag Name> content </Tag Name>
The difference between static Web pages and dynamic web pages is whether to extract data from data.
A webpage consists of several components.
<Html> start tag
<Head> header, that is, control information on the webpage
<Title> title on the page </title>
</Head>

<Body, which has the following attributes: bgcolor page background color, text color, top margin of tpmargin, left margin of leftmar, and backgroung background wallpaper>
Content displayed on the page, General labels
<Font color = "" size = "" face = ""> </font> color, size, and font
<Strong> bold </strong>
<B> bold </B>
<Em> skew </em>
<I> skew </I>
<U> underline </u>
<Del> strikethrough </del>
<Sub> subscript </sub>
<Sup> superscript </sup>
<Center> center </center>
<Br> press ENTER
& Nbsp Space
<H1> Level 1 title
......
<H6> level 6 Title
The title will automatically wrap
<P> paragraph tag </p>
Ordered tag
<Ol type = "">
<Li> </li>
<Li> </li>
</Ol>
Unordered tag
<Ul type = "">
<Li> </li>
<Li> </li>
</Ul>

Hyperlink: <a href = ""> highlights </a>
<A href = "" target = "_ blank"> on a blank page, self is displayed on its own page.
Anchor: <a href = "# top"> </a> Returns directly to the top of the page.
<A name = ""> </a>
<A href = ""> </a> return to the name

Relative Path: search from the current page
Absolute path: Start from the root of the website
Table: The content must be in cells, cells must be in rows, and rows must be in tables.
<Table width border bgcolor background color background image>
<Tr> row:
<Td> </td> Cell
<Th> </th> automatically center and bold content
</Tr>
</Table>
Align horizontal alignment left center right
Valign vertical alignment top middle bottom
Rowspan merge rows
Colspan merge Columns

</Body>
</Html> end tag

The following job is used as an example.

<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Title> job 20161221 </title>
</Head>

<Body bgcolor = "#000000" topmargin = "200px" leftmargin = "200px">

<P>
<Font face = "" color = "# FFFFFF" size = "+ 3">
<Em>
<Strong> job </strong>
</Em>
<Sub> 20161221 </sub>
</Font>
</P>

<P>
<Font face = "" color = "# FFFFFF" size = "-1">
<Del> not complete
</Del>
</Font>
</P>
<Font face = "" color = "# FFFFFF" size = "-1">
<P> One may fall in love with your people during the lifetime. </p>
<P> When you finally get your own happiness, </p>
<P> you will understand the preious sadness is kind of treasure, </p>
<P> which makes you better to hold and cherishthe people you love. </p>
</Font>
<P>
<Font face = "" color = "# FFFFFF" size = "-1"> font: <br>
<U> </u>
</Font>
</P>
<A href = "# top">

</A>
<Br>
<Font face = "" color = "# FFFFFF" size = "-1"> split graph
</Font>
<Br>
<Br>
<Font face = "" color = "# FFFFFF" size = "+ 2"> requirements:
</Font>
<Font face = "" color = "# FFFFFF" size = "-1">
<Ol type = "A">
<Li> independent completion </li>
<Li> practice all the things we are talking about today </li>
<Li> take notes on your blog </li>
</Ol>
</Font>
<Br>
<Font face = "" color = "# FFFFFF" size = "+ 2"> PS:
</Font>
<Br>
<Font face = "" color = "# FFFFFF" size = "-1">
<Ul type = "square">
<Li> pay attention to the use of ordered/Unordered Lists </li>
<Li> the image length and width are PX. You can click an image to link to the top of the page. </li>
<Li> the requirement is over 70%. </li>
<Li> NO. <font color = "#660066">
<A href = "http://www.baidu.com" target = "_ blank"> Baidu </a>
</Font> (this link is displayed on the new page) </li>
<Li> the left margin and top margin of the webpage are 200px </li>
<Li> move the mouse over the image to display "HAHAHA" </li>
<Li> the "split graph" is displayed on the bad graph. </li>
</Ul>

<Table width = "400px" height = "200px" border = "1" cellspacing = "0" cellpadding = "0">
<Font color = "# FFFFFF">
<Tr>
<Th width = "100px" align = "center" valign = "middle"> width/height </th>
<Th width = "100px" align = "center" valign = "middle"> align </th>
<Th width = "100px" align = "center" valign = "middle"> background color </th>
<Td rowspan = "2" align = "center" valign = "middle"> merge cells </td>
</Tr>
<Tr>
<Td bgcolor = "#999999" align = "center" valign = "bottom"> 400px/200px; </td>
<Td bgcolor = "#999999" valign = "bottom" align = "right"> right/down </td>
<Td bgcolor = "#999999" align = "right" valign = "bottom"> gray </td>

</Tr>
</Font>
</Table>


</Body>
</Html>

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.