First, HTML elements:
1. element refers to all code from the start tag to the end tag
<p>this is my web page.</p>
Start tag:<p>
End tag:</p>
Element content: This ismy Web page.
2.HTML element Syntax
The content of an element is the content between the start tag and the end tag
Empty elements are closed in the Start tab
Most HTML elements can have properties
3. Nested HTML elements
Most HTML elements can be nested
Second, HTML properties
1. Tags can have attributes to provide more information for the element
2. Properties appear as key/value pairs
href= "Www.baidu.com"
3. Common label Properties
<body>:bgcolor background Color
<a>:target specify where to open the link (where link 3 link 4 will be reflected in the framework)
<a href= "target=" _blank "> Open new link </a> <a href=" www.baidu.com "target=" _self "> (default) Overwrite link </a> <a href= "www.baidu.com" target= "_parent" > Links 3</a> <a href= " Www.baidu.com "target=" _top "> Links 4</a>
4. Common Properties :
Class: The name of the specified element
ID: Specify element Unique ID
Style: The styling of the specified element
Title: Additional information for the specified element
Third, HTML formatting tags
<b> define Bold text
<big> define Large characters
<em> Define text-focused
<i> Define Italic characters
<small> define Small words
<strong> define aggravating tone
<sub> define subscript Words
<sup> defining superscript words
<ins> define Insert Words
<del> define Delete words
HTML element attributes formatting labels