Introduction
HTML (Hyper text mark-up Language Hypertext Markup Language ): Not a programming language, but a descriptive markup language that describes how content is displayed in a Web page, such as what color, size, and so on, These are all implemented using Html tags.
HTML the document Structure
All Web pages are made up of four pairs of tags to form the skeleton of the document, which are:
Summary:
identifies the beginning and end of a Web page file, and all HTML elements are placed in the tag.
Identify header information for Web page files, such as title, search engine keywords, etc.
<title>...</title> Identify the title of the Web page file
<body>...</body> identifying the body part of a Web page file
of Common HTML the markup Syntax
1. single Mark
A < tag name >
Single type, no attribute value
Example:<br/>-- represents a newline character.
Two. < tag name attribute = " attribute value " >
single type, with attribute values
such as:
2. Double Mark
Three < tag name >...</ tag name >
No attribute value
such as:<title>...<title>
Four. < tag name attribute = " attribute value " >...</ tag name >
have attribute values
such as:<body bgcolor= "Red" >...</body>
Comments
Format:
<!- Comment content --
Body Property
<body bgcolor= " background color " background= " background image " text= " text color " link= "link text color " vlink= " accessed text color " alink=" active connection text color "leftmargin=" left Border " >
<font> Mark
Grammar:
<font color= " text color " size= " font size " > text </font>
Character format
Function |
Mark |
Bold |
<b> text </b> |
Tilt |
<i> text </i> |
strengthen tone |
<strong> text </strong> |
Underline |
<u> text </u> |
Delete Line |
<s> text </s> |
Superscript |
<sup> text </sup> |
Subscript |
<sub> text <sub> |
Paragraph mark
Format:
<p align= " alignment " >...</p>
Align |
Left |
Align Left |
Center |
Center |
Right |
Align Right |
HTML special characters in the
Special characters |
Escape codes |
Space |
|
Copyright number |
© |
Registered trademarks |
® |
“ |
" |
& |
& |
< |
⁢ |
> |
> |
modifier marks
Horizontal Line
Property name |
Property value |
Description |
Size |
Pixel absolute Value |
The bigger the line, the thicker it is. |
Width |
Width |
With the worth of change |
Summarize:
This is the syntax that we often use in learning HTML , and if you want to learn more about HTML syntax, look at the HTML reference manual.