CBSE Class 10 Computer Applications Question 8 of 37

Cascading Style Sheets (CSS) — Question 4

Back to all questions
4
Question

Question 4

How do you tell the browser you are creating a styling section with an internal style sheet ?

  1. <style type="css"></style>
  2. <class type="css"></class>
  3. class type="text/css"></class>
  4. <style type="text/css"></style>
Answer

<style type="text/css"></style>

Reason — To embed a style sheet in a web page, we use the <style> tag only within the <head> tag of a web page in the following way:

<HEAD>
<STYLE TYPE = "TEXT/CSS">
    ... CSS rules ...
</STYLE>
</HEAD>