Getting started with HTML base tags

Source: Internet
Author: User

HTML Base Tag

I learned some basic HTML tags and basic properties yesterday:

HTML is a Hypertext Markup language in which PHP is the best language in the world (increasing the power of learning).

The HTML document contains three Parts:

<title>--page Title

</title>

<body>

What the page displays

</body>

<!—— the contents of the Note--comments

Properties of the Body:

Background page background image

BgColor page background color

Text text color

TopMargin on page margin

LeftMargin left page margin

RightMargin Right page margin

BottomMargin Next page margin

General Label:

Format Control Tags:

<font color= "" face= "" size= "" ></font> control fonts; color, font colors; face, font; size, Font size.

<b></b> Font Bold

<i></i> Tilt

<u></u> Underline

<strong></strong> font Bold (emphasis, tone Reinforcement)

<em></em> font Tilt (emphasis, tone Enhancement)

<center></center> Center

<br> or </br> equivalent to carriage return, line break

&nbsp; Represents a space

Content Container Tags:

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

<div></div> Layer Labels (one row by Default)

<span></span> Layer Labels (how much space is occupied by Default)

<ol type= "1/a/a ..." >--has sequence list, The format of double quotation marks, can change the form of serial number

<li> content <li>

<li> content <li>

<li> content <li>

</ol>--above "ol" to "ul" is unordered list

Relative path: relative to the location of this document;

Absolute Path: start reading directly from which Disk.

Common Tags:

Hyperlink label

<a href= "address of hyperlink" target= "blank/self" > hyperlink text or Picture </a>

Blank is opened from a new web page;

The first step: do the anchor point Label. <a name= "" ></a>

Step two: do anchor links. <a href= "#目标连接的name的值" ></a>

Picture label

--height and width setting one can be, the display picture will be scaled proportionally.

Table Tags:

Form

<table width= "width" border= "border" align= "alignment" background/bgcolor= "background picture/background color" >

Yes:

<tr align= "horizontal alignment" valign= "vertical alignment" height= "row height" background/bgcolor= "background picture/background color" >

Cell

<TD align= "horizontal alignment" valign= "vertical alignment" width= cell width height= "cell height" backgroung/bgcolor= "background picture/background color" >

</td>

</tr>

</table>

Align:left Center Right

Valign:top Middle Bottom

Cell Merging:

colspan= "n" Merges the same row of cells (the corresponding columns are subtracted from the following Code)

rowspan= "n" merges the same row and column cells (the corresponding columns are subtracted from the following code).

This is the first day of the content, this part is very simple, try it.

Getting started with HTML base tags

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.