HTML Tag Encyclopedia

Source: Internet
Author: User

Basic label

<body></body> set the body part of a document

Title label

<title></title> put the topic of the document in the title bar of the browser

Format labels

<p></p> Create a paragraph

<p align= "" > align paragraphs to left, middle, and right

<br> Insert a carriage return line feed

<blockquote></blockquote> indent text from both sides

<dl></dl> definition List

<dt> put in front of each definition term

<dd> placed before each definition

<ol></ol> Create a list marked with numbers

<ul></ul> Create a list marked with dots

<li> before each list item, if you add a number to each list item between <ol></ol>, add a dot to each list item between <ul></ul>

<div align= "" ></div> is used to format large chunks of HTML paragraphs, but also for formatting tables

Document overall Property label

<body bgcolor= "" > Set background color. Using hexadecimal values for first or RGB

<body text= "" > Set text color. Using hexadecimal values for first or RGB

<body link= "" > Set the link color. Using hexadecimal values for first or RGB

<body vlink= "" > Set the color of the link you have used. Using hexadecimal values for first or RGB

<body alink= "" > Set the color of the link that is being hit. Using hexadecimal values for first or RGB

Text labels

<pre></pre> Pre-formatted text

<b></b> bold Words

<i></i> Italic character

<tt></tt> Typewriter-style fonts

<cite></cite> references, usually italic

<em></em> Accent text (usually italic plus bold)

<strong></strong> heavier text (usually italic plus bold)

<font size= "" ></font> set Font size, from 1 to 7

<font color= "" ></font> set the color of the font, using the hexadecimal value of the first name or RGB

Image label

Embed an image in an HTML document

Align an Image: Left, middle, right, or top, middle, bottom

Set the size of the border of the image

<HR noshade> a horizontal line without a shadow

Link label

<a href= "URL" ></a> Create a hypertext link

<a href= "Mailto:email" >

</a> Create a link to automatically send e-mail

<a name= "Name" ></a> Create a bookmark inside a document

<a href= "#name" ></a> create a link to a bookmark located inside a document

Form label

<form></form> Create a form

<select multiple Name= "name" size= "></select> Create a scrolling menu, size sets the number of table items that you can see before scrolling needs to scroll

<option> set the contents of each form item

<select name= "Name" ></select> Create a Drop-down menu

<option> set the contents of each menu item

<textarea name= "name" cols=40 rows=8></textarea> Create a text box area, the number of columns set the width, the number of rows set the height

<input type= "checkbox" name= "Name" > Create a check box with the text behind the label

<input type= "Radio" name= "name" value= "> Create a Radio box with text behind the flag

<input type=text name= "foo" size=20> creates a single line of text input area, size set to the width of the string

<input type= "Submit" value= "name" > Create submission (Submit) button

<input type= "image" border=0 name= "name" src= "Name.gif" > Create a Submit button using an image

<input type= "Reset" > Create reset (Reset) button

Table Labels

<table></table> Create a table

<tr></tr> each row in the table

<td></td> each grid in a row in a table

<th></th> Set Table headers: usually centered text in bold

<table border= "" > Set the width of the border

<table cellspacing= "" > Set the size of space between table lattices

<table cellpadding= "" > Set the size of space between the table grid border and its inner content

<table width= "" > Set the width of the table. Percentage of absolute pixel value or total width

<tr align= "" > Set the horizontal alignment of the table grid (left-right)

<tr valign= "" > Set the vertical alignment of the table grid (upper and lower)

<TD colspan= "" > Set the number of columns spanned by a grid (the default value is 1)

<TD rowspan= "" > Set the number of rows spanned by a grid (the default value is 1)

<TD nowrap> prohibit automatic breaking of content in table lattices

Frame label

<frameset></frameset> can be embedded in other frame documents before it is placed in the <body> label of a frame document

<frameset rows= "Value,value" > defines the number of rows in a frame, you can use the absolute pixel value or the percentage of the height

<frameset cols= "Value,value" > Define the number of columns within a frame, you can use the absolute pixel value or the percentage of the width

<frame> define a Single window or window area within a frame

<noframes></noframes> define what prompts are displayed in browsers that do not support frames

<frame src= "URL" > the HTML document displayed within the frame

<frame name= "name" > named frame or range so that other frames can point to it

<frame marginwidth= "" > Define the blank size of the left and right edges of the frame, must be greater than or equal to 1

<frame marginheight= "" > Define the blank size of the top and bottom edges of the frame, must be greater than or equal to 1

<frame scrolling= "" > Set whether the frame has a scroll bar whose value can be "yes", "no" or "auto"

<frame noresize> prevents users from resizing a frame

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.