HTML5 Foundation
1.DOCTYPE Declaration
<! Dctype html> must be placed on the first line.
<title>
<title> Baidu </title>
<meta>
<meta charset= "UTF-8"/>
A level six label is provided, and all title fonts are bold.
<p></p>
Represents a paragraph of text or content. <p> I love You I love you </p>
2. Single label
<br/>
Represents a forced line break representation, which is special, has no end tag, and is used directly.
Represents a horizontal line, which, like <br/>, does not have an end tag and is used directly.
3. Font style labels
<strong></strong>
Make font Bold
<em></em>
Let the text tilt.
4. Annotations and special symbols
Grammar <!--comment content--
Special Symbol font Entity
Space:
Greater than;: >
Less than sign <: <
Quotation mark ": &quat
Copyright Symbol @: ©
Common image formats: JPG Gif BMP PNG
5. The basic Image label
Grammar:
6. Tags for hyperlinks
Grammar:
<a href= "link address" target= "target window Position" > link text or image </a>
HREF: path representing the link address
Target: in which window the link opens, the commonly used value is--self (itself window) 、—— Blank (new window)
A hyperlink can be a text hyperlink or an image hyperlink.
7. Hyperlink application:
1. Page links
Link to another page from one page.
2. Anchor Chain Connection
Jump from page A to page B.
Grammar:
<a name= "marker" > Target </a>
3. Functional Links
Functional links are special, when clicking on a link is not to open a page, but instead launches an application that comes with the machine. such as the common e-mail QQ MSN and other connection e-mail usage is "mailto: e-mail"
8. Inline elements and block elements
feature of a block element: The element is exclusive to one row regardless of the content.
The characteristics of the row elements: the content is open width, the left and right are the elements of the row can be in a row.
Chapter One: the foundation of HTML5