HTML page structure
<! DOCTYPE html> Release Statement
<body></body> Main Content Label
Most HTML tags appear in pairs
Common Label Learning:
<p></p> paragraph label use effect: Display a piece of text, not segmented, can be space, but only one character position.
<pre></pre> pre-formatted text Use effect: Display multi-paragraph text, can be divided into multiple paragraphs, can be empty multi-lattice.
Space label Use effect: A label represents a space, can be used in the <p> tag
<b></b> Font Bold
<u></u> Font Underline
<s></s> Font plus Strikethrough
<sub></sub> subscript <sup></sup> superscript use: Generally used in mathematical formulas
<ol><li></li></ol> ordered list usage effect: Arranges the data in a certain order, depending on how the type attribute is changed (can be nested in unordered list use).
<ul><li></li></ul> unordered list Use effect: The data is arranged in no order (nested use).
The <dl> definition list works like a sequence table and unordered list (the teacher says that although the effect looks the same, the <dl> is more semantically).
<dt></dt> need to define the description of the project
<dd></dd> Description of the project
</dl>
<table> table Use effect: insert a table in the page, can be added by,<tr><td> (the teacher said can also be used for layout framework, but now usually with <div>).
<tr><td></td><td></td></tr> three rows two columns, where <td> has colspan cross-columns and rowspan cross-row properties.
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
</table>
<a></a> hyperlink Label Use effect: the page link is set by the HREF attribute to implement the jump page.
HTML Learning Note One