HTML Tags (2)

Source: Internet
Author: User

Last time I talked about the <a> tag, I didn't elaborate on the use of a tag.

<! DOCTYPE html>

<title>a Label Example </title>

<a href= "http://www.baidu.com" > Baidu a bit, you know </a><!--jump to other sites--<br>

<a href= "2.html" > click to jump to 2.html</a><!--jump to local file--><br>

<a href= "#test-demo" > Click to jump to bottom </a><!--set anchor Point--

<div style= "height:2000px" ></div>

<a href= "# #" Name= "Test-demo" > here is the bottom of the site </a> </body>

If the value of the href attribute of the A tag is empty, then the a tag becomes a hidden anchor point, which appears to have nothing to do with the href attribute, but the mouse clicks up to jump.

Table Label

<! DOCTYPE html>

<meta charset= "UTF-8" >
<title>Document</title>
<style type= "Text/css" >
TD {
width:200px;
height:50px;
}
</style>

<body>
<table border= "1" >
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>2</td>
<td>2</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>3</td>
<td>3</td>
</tr>
</table>
</body>

TD TR These tags can be checked into other tags, attached to a resume production code.

<! DOCTYPE html>

<meta charset= "UTF-8" >
<title>13</title>
<style>
. Center {
Border-collapse:collapse;
margin:0 Auto;
}
TD {
width:100px;
height:40px;
Text-align:center;
}
/*. size {
width:300px;
height:120px;
}*/
. size~tr {
width:300px;
height:120px;
}
</style>

<body>
<table border= "1" class= "Center" >
<caption class= "center" > Biographical </caption>
<tr>
<td> name </td>
<td></td>
<td> Sex </td>
&LT;TD ></td>
&LT;TD rowspan= "3" ></td>
</tr>
<tr>
<td> Date of birth </td>
<td></td>
<td> ethnic </td>
<td></td>
</tr>
<tr>
<td> Hometown </td>
<td></td>
<td> Education </td>
<td></td>
</tr>
<tr>
<td> Graduate Schools </td>
<td></td>
<td> Professional </td>
&LT;TD colspan= "2" ></td>
</tr>
<tr>
<td> Political Outlook </td>
<td></td>
<td> Home Address </td>
&LT;TD colspan= "2" ></td>
</tr>
&LT;TR class= "Size" >
<td> Health status </td>
<td></td>
<td> Contact Phone </td>
&LT;TD colspan= "2" ></td>
</tr>
<tr>
<td> Major Courses </td>
&LT;TD colspan= "4" ></td>
</tr>
<tr>
<td> Personal Skills </td>
&LT;TD colspan= "4" ></td>
</tr>
<tr>
<td> Work Experience </td>
&LT;TD colspan= "4" ></td>
</tr>
</table>
</body>

HTML Tags (2)

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.