First Class! Html

Source: Internet
Author: User

HTML Tags

PS: Although some HTML has its own properties, to set the appearance of the label, but in real development, it does not use its own properties to do the appearance of processing, but with CSS.

1. < tag name attribute 1="value 1" Property 2="value 2" ... > Component Data </ Tag Name >

Example: <body size= "12px" color= "Red" align= "center" > We are all 16-period. NET Learners </body>

2, HTML structure.

<title> title </title>

<body>

Body part

</body>

3. Layout control Mark

line Break <br/>

paragraph mark <p></p>

Horizontal Line

space

Center Mark <center></center>

Cases:

<title>demo1</title>

<body >

<center> <p> I am a student who is bent on learning the number, my name is Chen Qianhong. </p></center>

<p> I am a student who is bent on learning the number, my name is 李杨. &bsp&nbsp&nbsp&nbsp&nbsp</p>

</br>

</br>

<p> I am a student who is bent on learning the number, my name is Wang Chao. </p>

</body>

4, Numbered table column mark

There are sequence lists and no inside:

PS: Number form:type attribute

Type=1 or a or A or i or i

Set the start ordinal of a number:start Property

Start=n ( can only be a number )

<ol>

<li> small number one </li>

<li> small number 2</li>

<li> small number 3</li>

</ol>

Unordered lists and nesting:

<ul>

<li></li>

<li></li>

<li>

<ul>

<li></li>

<li></li>

</ul>

</li>

</ul>

5. Forms

Syntax and its properties:

<table>

<tr>

<td></td>

</tr>

</table>

<th></th> Header Cell

Properties: Border, Border width,cellspacing, width of the table box,cellpadding, the distance from the text within the table to the four-week border ; Height, height; width, width; bordercolor , border color; bgcolor , background color; Align , the horizontal alignment of the table in the Web page.

Focus: cross-row, cross-column

Rowspan, colspan

Table Header Tag caption

<caption align=top or bottom>

6. Relative paths and hyperlinks

<a href= "http:\\www.baidu.com" ></a>

First Class! 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.