Home >Web Front-end >HTML Tutorial >Detailed explanation of HTML style tags and related CSS references_HTML/Xhtml_Web page production

Detailed explanation of HTML style tags and related CSS references_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:36:271835browse

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

XML/HTML CodeCopy content to clipboard
  1. <head>
  2.  <style type="text/ css">
  3. abbr
  4. {
  5. font-size: 12px;
  6. }
  7. .text10pxwhite
  8. {
  9. font-size: 10px;
  10. color: #FFFFFF;
  11. }
  12.  style> 
  13. head>

Internal reference CSS -- Internal

You can use the style tag to directly load the content from the CSS file into the HTML document.

Example

CSS CodeCopy content to clipboard
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn