English

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

Advertisements
Advertisements

Question

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

Options

  • <style type="css"></style>
  • <class type="css"></class>
  • <class type="text/css"></class>
  • <style type="text/css"></style>
MCQ
Advertisements

Solution

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

Explanation:

The <style> tag should only be used within the <head> tag of a web page in order to include a style sheet:

<head>
<style type = "text/css">
    ... css rules ...
</style>
</head>
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Cascading Style Sheets (CSS) - Assisted Practice [Page 271]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 6 Cascading Style Sheets (CSS)
Assisted Practice | Q 4. | Page 271
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×