Home > Article > Web Front-end > Attributes of body Summary of main attributes of body tag_HTML/Xhtml_Web page production
bgcolor="text color" background="background image"
text="text color"
The color of the hyperlink text
In order to highlight the hyperlink, the hyperlink text is usually Use a different color from other text, and a horizontal line will be added at the bottom of the hyperlink text.
Hyperlink text in HTML text has default colors, and these colors can also be customized in the markup. There are 3 attributes:
⑴ link: color of unvisited hyperlinks
⑵ vlink: color of visited hyperlinks
⑶ alink: color when the mouse clicks on the hyperlink
Such as :
Document edge
By default, the document is displayed at a certain distance from the browser's border. You can customize the distance between the edge of the document and the window by adding attributes in the markup.
⑴ topmargin: The size of the upper margin of the document
⑵ leftmargin: The size of the left margin of the document
⑶ rightmargin: The size of the right margin of the document
⑷ bottommargin: The size of the lower edge of the document
Such as :
The unit of edge size here is "pixels".