HTML section tags and code

Source: Internet
Author: User

1.1.1 General label, format Control label

The so-called HTML is Hyper text Markup Language (Super Text-free Markup Language)

Control information on the

<title> Page Title <title>

<body> Start Body Label

</body> End Body Label

Body properties bgcolor page background color

Text text color

TopMargin on page margin

LeftMargin left page margin

RightMargin Right page margin

BottomMargin Next page margin

Background background Wallpaper

<font color= "" > Font Color

Face= "" Font (Arial may need to be added independently)

Size= "" Font size

<b> </b> Font Bold

<i> </i> Font Tilt

<u> </u> Underline

<strong> <strong> Font Bold

<em> </em> Font Tilt

<center> </center> Center

<br> or <br/> equivalent to carriage return line (right shift+ enter implementation)

&nbsp; spaces (ctrl+shift+ space implementation)

1.1.2 Content Container Label

<p></p> paragraph labels (blank lines between paragraphs)

<div></div> Layer Label (default line)

<span></span> Layer Labels (how much space is the default size)

<ol type= "1" ></ol> with sequence list, serial number can be swapped

<li> Serial 1</li>

<ul type= "1" ></ul> unordered list, no ordinal

<li> First line </li>

1.2 Common Tags

Hyperlink label

<a href= "hyperlink address" > </a> to add target= "" (New and blank are open pages in a fresh page)

Connect to this page the first step in a position to do the Anchor point label <a name= "label value" > </a> second step to do the anchor connection <a href= "label value" > </a>

Picture label

(alt= "text" display text) (width= "" and height= "" can be set width and height, set one)

1.3 Forms and forms

1.3.1 Form

<table></table> Forms

The width of the property in the table (expressed in pixels or percentages)

Border Border thickness 0 is no border

CellPadding the margins of the content cell border. Generally set to 0

CellSpacing the space between cells. Generally set to 0

Aling Alignment

bgcolor background color

Background background image

<tr></tr> Line

Align line content horizontal alignment

valign vertical alignment of the contents of a row

Height Row Height

bgcolor background color

Background background image

<td></td> column

<th></th> the contents of the header cell are automatically centered and bold

Align line content horizontal alignment

valign vertical alignment of the contents of a row

Height Row Height

bgcolor background color

Background background image

Width cell widths

Cell merging colspan= "n" N is the number of rows that are merged (the second column remembers to subtract the corresponding row)

rowspan= "n" N is the number of columns to merge (the second line remembers to subtract the corresponding column)

HTML section tags and code

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.