HTML Common Basic Tags

Source: Internet
Author: User

Basic structure tag: <TITLE>---</title>, contains the title of the file, and the title appears in the browser title bar
End sign of </HEAD>,<HEAD>
<body> places all the flags and attributes that display information in the browser, where the content is displayed in the browser.
</BODY>,<BODY> End sign </HTML>,<HTML> end sign
Other main labels, all of the following signs are used in <BODY></BODY>:
<a,href= "..." ></A>, link flag, "..." as the linked file address
<br>, line break flag
<p>, Segment flag
<b></b>, using bold characters
<i></i>, using italic characters
<table></table>, define tables, important flags in HTML
<tr></tr>, define the row of the table, used in <TABLE></TABLE>
<td></td>, define table cells, use in <TR></TR>
<font></font>, font style flag

Example: Property bgcolor= "Black" indicates that the background color is dark.
Example of a reference property:
<body,bgcolor= "Black" ></BODY> indicates that the background color of the page is dark;
<table,bgcolor= "Black" ></TABLE> indicates that the table background color is dark.
Common Properties:
Alignment Properties, Range Properties:
Align=left, left alignment (default), width= pixel value or Percent, object width.

Align=center, centered, height= pixel value or Percent, object height.
Align=right, right-aligned.
Color properties:
color= #RRGGBB, foreground, reference color table.
bgcolor= #RRGGBB, background color.
<center> indicates absolute centering.
<table></table> start and end of the table ID.
Properties:
cellpadding= The value units are pixels, define the cell padding
cellspacing= value units are pixels, define the table element spacing
Border= The value units are pixels, define the table border width
width= Value units are pixel or window percentages, define table width
background= picture link address, define table background map
<tr></tr> start and end of a table row in a table;
<td></td> start and end of a cell within a row of a table

Property:
Colspan= "", the cell spans multiple columns;
Rowspan= "", the cell spans multiple lines;
Width= ""; Define table width
Height= ""; Define table Height
Align= ""; alignment
Valign= "";
Border= "", border width;
Bgcolor= "", Background **ordercolor= "", Border Yan **ordercolorlight= "", border bright face of Yan **ordercolordark= "", border dim face color;
Cellpadding= "", the distance between the content and the border (default is 2);
Cellspacing= "", the distance between cells (default is 2);
<br> Force line break
<font></font> start and end of text markers
Property:
face= fonts
Color= Yan **></b> The beginning and end of the bold text logo
Property:
STYLE=FONT-SIZE:40PT, using style sheet to control font size, this is 40 points
<div></div>, start and end of partition identification

Property:
Align=|center|left|right| Horizontal Alignment
<marquee></marquee> the start and end of a dynamic identity, such as placing a map format inside an identity, enables picture scrolling
Property:
scrollamount=1~60, scrolling speed
direction=|left|right|up|down|, scrolling direction
scrolldelay= rolling delay, unit: milliseconds
<P> paragraph identification,
Space character
Decal identification

Property:
Src=. /.. /Picture link address, map identification required properties
Style=filter:alpha (opacity=100,style=2);
Filter: style sheet filter;
Alpha: Transparent filter,
Opacity: Opacity 100 (0~100);
Style: Styling 2 (0~3),
Rules= "None" does not display the inner box "
<embed,src= "..." > Multimedia file identification

Property:
Src= ". /.. /filename ",
Sets the path to the music file, except that the file type can be played. rm;. mp3;. WAV and other audio, you can also play. swf and. mov videos.
Autostart=true/false,
Do you want the music file to play automatically when it is finished, true to be, false is not, default to False
loop=, set the number of repetitions, loop=6 means repeat 6 times, true or 1 is an infinite loop, false to play once is stopped.
Startime= "minutes: Seconds",
Sets the start playback time of the song, such as 20 seconds after the play is written as startime=00:20
VOLUME=0-100,
Sets the volume size. If not set, use the volume of the system.
Width,height,
Set the size of the control Panel to 0 to hide the player
Hidden=true,
Hide Control Panel
Controls=console/smallconsole,
Set the appearance of the Control Panel,
<bgsound,src= "...";, background music identification, can only be used in. wav and. mp3 formats.

Property:
loop=, set the number of repetitions, loop=6 means repeat 6 times, true or 1 is an infinite loop, false to play once is stopped.
Forms tab:
<form></form> the start and end of the form's identity, and the contents of the form are placed here.
The following labels are placed inside the form:
<select> drop-down selection box
<option></option>
</select>
Property:
multiple, multi-choice
<textarea></textarea>, large number of text input edit block

Property:
Cols= "", line;
Rows= "", column;
<input,type= "Text";, text box
<input,type= "password";, Password box
<input,type= "Submit";, submit button
<input,type= "checkbox";, check box
<input,type= "Radio", Radio Box
<input,type= "reset", reset button
<input,type= "image";, Picture Press twist
<input,type= "hidden";, hidden fields
<input,type= "button", press twist
<input,type= "File";, browse for files

Public properties:
Name= "";
Value= ""
Size= ""
Other Tags:
<bgsound>, background music;
Src= ""
Loop= "", the number of cycles;
<embed>, media play block;
Src= ""
Loop= "", the number of cycles;
<marquee></marquee>, rolling part;

Property:
Bgcolor= ""
Behavior, sets or gets how the text scrolls in the caption.
Direction= "", rolling direction;
Height= ""
Width= ""
Loop= "", ring number;
<!--...--, the comment tag, the content between <!--and--is not displayed in the browser.
Basic Tags:
<title></title>, set the title of the document;
<pre></pre>, pre-formatted text;
<u></u>, underline
<b></b>, bold words;

HTML Common Basic 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.