Internal stylesheet
Internal stylesheet
<head>
<style type="text/css">
selector{
Property : value;
Property : value;
}
</style>
</head>
Example:
<html>
<head>
<style type="text/css">
h1 {color: green}
h2 {color: #dda0dd}
p {color: rgb(0,0,255)}
</style>
</head>
<body>
<h1>This is header 1</h1>
<h2>This is header 2</h2>
<p>This is a paragraph</p>
</body>
</html>
Qus. 1 : Where in an HTML document is the correct place to refer to an external style sheet?
- In the <body> section
- At the end of the document
- In the <head> section
- Any Where in a Page
- css
- style
- script
- link
- REL
- URL
- REV
- all of these
- color: red, text-decoration: underline and font-style: italic all works
- text-decoration: underline and font-style: italic works
- color red, text-decoration: underline works
- only font-style: italic works