INTERNAL STYLE SHEET

 

Internal Style Sheet

An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section by using the <style> tag, like this:

<head>

<style type="text/css">

hr {color: sienna}

p {margin-left: 20px}

body {background-image: url("images/back40.gif")}

</style>

</head>

The browser will now read the style definitions, and format the document according to it. Note: A browser normally ignores unknown tags. This means that an old browser that does not support styles, will ignore the <style> tag, but the content of the <style> tag will be displayed on the page. It is possible to prevent an old browser from displaying the content by hiding it in the HTML comment element:

<head>

<style type="text/css">

<!-- hr {color: sienna}

p {margin-left: 20px}

body {background-image: url("images/back40.gif")} -->

</style>

</head>

Comments

Prakash said…
Nice informative content. Thanks for sharing such worthy information.
Primavera Training in Chennai
MVC Classes in Chennai
Primavera Course in Chennai

Popular posts from this blog

ADDING NUMBERED LIST ON HTML