Including CSS with the HEAD Tag

Describe how to include the CSS within the HEAD Tag?




If you wish to involve a CSS within the HEAD tag and apply to whole HMTL docuemnt, you may use STYLE tag as <STYLE TYPE="text/css">css_definition</STYLE>. The following code will set the body background to black and paragraph text to yellow:

<title>CSS Included</title>
<style type="text/css">
BODY {background-color: black}
P {color: yellow}
<p> Welcome to
You should see this text in yellow on black background.</p>

   Related Questions in Programming Languages

2015 ┬ęTutorsGlobe All rights reserved. TutorsGlobe Rated 4.8/5 based on 34139 reviews.