Basic and Advance CSS Examples and Concepts Question: Download Cascading Style Sheet CSS PDF

How To Include CSS Inside a HTML Tag?

Tweet Share WhatsApp

Answer:

If you want to include CSS inside a HTML tag, you can use the STYLE attribute as <TAG STYLE="css_definition" ...>. Of course, the CSS definition will only apply to this instance of this tag. The following tutorial exercise shows you how to 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
</pre>


Download Cascading Style Sheet CSS PDF Read All 26 Cascading Style Sheet CSS Questions
Previous QuestionNext Question
What Is the Basic Unit of CSS?How To Include CSS Inside the HEAD Tag?