Detailed HTML style tags and related CSS references

Source: Internet
Author: User

HTML Style Label

Style label--use this label when declaring a style in a document

The style label appears in pairs to end

Property

Media-Medium type,

Type--Contains the types of content, typically using type= "TEXT/CSS"

Example

 xml/html Code copy 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 label to load the contents of a CSS file directly inside an HTML document.

Example

 CSS Code copy content to clipboard

  1. <style type="Text/css"><! [cdata[
  2. /*----------Text style starts----------* *
  3. * * Dream is white 12 pixel text * *
  4. . dreamduwhite12px
  5. {
  6. color:White;
  7. font-size:12px;
  8. }
  9. * * Dream All Black 16 pixel text * *
  10. . dreamdublack16px
  11. {
  12. color:black;
  13. font-size:16px;
  14. }
  15. /*----------Text style End----------* *
  16. ]]></style>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.