Home >Web Front-end >HTML Tutorial >Detailed explanation of HTML style tags and related CSS references_HTML/Xhtml_Web page production
HTML style tag
style tag - use this tag when declaring styles in the document
style tags appear in pairs, starting with
Attributes
media - - Media type,
type -- the type containing the content, generally use type="text/css"
Example
Internal reference CSS -- Internal
You can use the style tag to directly load the content from the CSS file into the HTML document.
Example