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?

  1. In the <body> section
  2. At the end of the document
  3. In the <head> section
  4. Any Where in a Page
Qus. 2 : Which HTML tag is used to define an internal style sheet?

  1. css
  2. style
  3. script
  4. link
Qus. 3 : The attribute, which define the relationship between current document and HREFed URL is

  1. REL
  2. URL
  3. REV
  4. all of these
Qus. 4 : <p>What will happen in the following case ?</p><pre>h1 {color: red text-decoration: underline; font-style: italic;}</pre>

  1. color: red, text-decoration: underline and font-style: italic all works
  2. text-decoration: underline and font-style: italic works
  3. color red, text-decoration: underline works
  4. only font-style: italic works

Programs

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad