How To Include CSS Inside The HEAD Tag

  • 24 Jan, 2012

    If you want to include CSS inside the HEAD tag and apply to the entire HMTL docuemnt, you can use the STYLE tag as <STYLE TYPE="text/css">css_definition</STYLE>. The following tutorial exercise shows you how to set body background to black and paragraph text to yellow:<html><head><title>CSS Included</title><style type="text/css"> BODY {background-color: black} P {color: yellow}</style></head><body><p>Welcome to You should see this text in yellow on black background.</p></body></html>

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 All rights reserved.