1. <body> tag:
Used to mark the body of a web page, the body element contains all the contents of the document (such as text, hyperlinks, images, tables, lists, etc.)
1.Attributes available in the body tag:
bgcolor=color value: set the background color of the entire web page
text=Color value: set the color of the text
link=Color value: Set the display color of general hyperlink text
vlink=Color value: Set the color of the accessed hyperlink text displayed
alink=color value: Set the display color of the hyperlink text when the mouse is moved to the hyperlink and pressed.
bgcolor=color value: set the background color of the web page
background: Set the background image of the web page, which can be in GIF or JPEG format (it will overwrite the background color of the web page (if the picture is transparent, you can see the background color). Because the background attributes have a hierarchy, it is best not to set the background image)
2. Web page content and browser margin attribute: By default, there is a margin between web page content and browser border.
leftmargin=pixel value: sets the distance between the content in the web page and the left border of the browser
rightmargin=pixel value: sets the distance between the content in the web page and the right border of the browser
topmargin=pixel value: sets the distance between the content in the web page and the border on the browser
bottommargin=pixel value: sets the distance between the content in the web page and the bottom border of the browser
2. Commonly used control tags for HTML:
1.<br />: Line break label (line break without segment change)
2. <p>..</p>: Paragraph tag (one paragraph occupies one line, it is a block-level element)
Attribute: align left (default) right center
3. <hr />: Add a horizontal line
property:
width:
The pixel is absolutely set, and the length will not change with the change of the window
The percentage relative setting length will change with the width of the window
szie:
The absolute pixel setting is represented by numbers. The larger the value, the thicker the line.
The percentage relative setting is expressed in %. The larger the value, the thicker the line.
color: set color
noshade=noshade sets 3D display effect to horizontal lines
4. <hx>..</hx>:HTML title is defined through tags such as <h1> - <h6>, and <h1> defines the largest title. <h6> Define the smallest title (it does not work after exceeding h6, and there are some hidden attributes: automatic segment change, font bold).
Attribute: align (align): left left right right center
5. <b>..</b>: Bold the text
6. <blockquote>...</blockquote>: Text quotation means if there is a paragraph of text quoted from other websites, the paragraph text will be included with the tag and the attribute cite=referenced address (both sides of the included text will be indented)
Attribute: cite=url (referenced address)
7. <pre>..</pre>: Define preformatted text that is surrounded by pre elements usually retains spaces and line breaks. The text will also be presented in monospace fonts
8. <i>..</i>: Inclined
9. <strong>..</strong>: Strengthening statement (bold)
10. <em>..</em>: Strengthening statement (tilt)
11. <address>..</address>: The address will automatically tilt
12. <small>...</small>: small words
13. <big>...</big>: big characters
14. <del>..</del>: Delete will add a delete line
15. <ins>..</ins>: Changes will be underlined
16. <u>..</u>: Underline
17. <s>..</s>: Delete line
18. <tt>...</tt>: Telegram Font
19. <sup>..</sup>: Supermarket
20. <sub>..</sub>: Subscript
21. Commonly used special character formats: See the manual entity for other reference
Copy the code