The basic structure of HTML is divided into two parts: the head and the body part. As follows:
<title> My first page </title> <!--head section---
<body> <!--body Parts >
My Web page
</body>
, the basic information of the Webpage.
1.DOCTYPE Declaration: Constrain the structure of the HTML document, check compliance with the relevant wed standards, and tell the browser
Using that specification to interpret the code in this document, the declaration must be in the first line of the HTML Document.
<! DOCTYPE html>
2.<title> Label
Head tag:<title> Sohu-china's largest web portal </title>
3.<meta> Label
Document content type: <meta charset= "UTF-8"/>
Properties: CharSet represents the character set encoding, which is commonly used for encoding with the following types of
Gb2312: simplified chinese, Chinese and English pages included
ISO-885901: english, commonly used in English
Big5: traditional, commonly used in traditional
UTF-8: International Universal character encoding while adapting to Chinese and English pages
, the basic label of the Web page
1. Title Tag:
<!Doctyps HTML><HTML><HeadLang= "en"> <MetaCharSet= "UTF-8"> <title>Title</title><Body><H1>Level</H1><H2>Second level</H2><H3>Three levels</H3><h4>Level Four</h4><h5>Level Five</h5><h6>Level Six</h6></Body></HTML>
paragraphs, Line breaks, Horizontal Labels.
Paragraph: <p></p>, newline <br/>, horizontal line
Font style labels
<strong></strong>: Bold label, <em></em>: tilt label
Notes and Special Symbols:
Note:<!--comment content-->
Special Symbol: space: greater than sign:> less than:< quotation mark:" copyright number:©
Image Label.
Common image formats: jpg format, gif format, bmp format, PNG format,
Basic syntax for image labels:
Hyperlinks: syntax
<a hraf= "link address" target= "target window position" > link text or image </a>
Links between Pages:
Anchor Cable connection: <a name= "marker" > target location b </a>
Set a link path href attribute value is "#标记名"
<a href= "#marker" > Current Position a </a>
Initial: HTML