Back to the 2019 paper

Module I: Introduction to Web Technologies & Architectures

20192m

Which of the following HTML tags is used to define an internal style sheet?

(i) <script>
(ii) <css>
(iii) <style>
(iv) None of the above

Worked SolutionAI Assisted

Correct Answer: (iii) <style>

Explanation:

  • In HTML, internal (embedded) Cascading Style Sheets are defined inside the <style> tag, placed within the <head> section of the HTML document.
  • <script> is used to embed or reference executable JavaScript code.
  • <css> is not a valid HTML element.

Example:

<head>
  <style>
    body {
      background-color: #f5f6f2;
      color: #1b2430;
    }
  </style>
</head>

Similar questions