Including CSS with the HTML Tag

Explain how to include the CSS within the HTML Tag?




If you wish to include the CSS within the HTML tag, you may use STYLE attribute as <TAG STYLE="css_definition" ...>. Of course, CSS definition will only applied to this instance of this tag. The following code will set background to gray on a <PRE> tag:

<p>Map of commonly used colors:</p>

<pre style="background-color: gray">

black #000000

white #ffffff

gray #7f7f7f

red #ff0000

green #00ff00

blue #0000ff


   Related Questions in Programming Languages

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