HTML learning (2018.1.18) and html learning 2018.1.18
1,Escape characters
Escape Character: Used to indicate special characters in a webpage
XHTML does not directly enter symbols. We recommend that you use escape characters.
& Nbsp ------ space;
& Copy ------ copyright;
& Reg -------- Registered Trademark
If you enter consecutive spaces, use the & Escape Character & (& amp;) nbsp, that is, & amp; nbsp;
2,Horizontal line
<Hr> horizontal line
<Hr width = "500px" align = "left" color = "red" size = "1">
Width: Length
Align: Align
Color: Color
Size: width
3,Upper/lower mark
<Sub> subscript </sub>
<Sup> superscript </sub>
X1 = y2
<P> x <sub> 1 </sub> = y <sub> 2 </sub> </p> <br/>
X1 + y2 = y2
<P> x <sup> 1 </sup> + y <sup> 2 </sup> = y <sub> 2 </sub> </p>
4,Title
Title from 1 to 6, h1-h6;
<H1> teaching time H1
<H2> teaching time H2
<H3> teaching time H3
<H4> teaching time H4
<H5> teaching time H5
<H6> teaching time H6
5,Pre-formatted text
Pre-formatted text: <pre> controls spaces and empty rows </pre>
<P> lalala </p>
<Pre> <p> lalalla </p> </pre>
6,Single tag
A non-closed type tag is also called an empty tag or a single tag <tag/> or <tag>. There is no difference between HTML4 and html5. however, all single tags must be closed in XHTML.
7,Important ideas
The HTML structure is separated from the style, and all relevant styles are written in css.