1. Where in an HTML document is the correct place to refer to an external style sheet?
  1. At the top of the document

  2. In the section

  3. At the end of the document

  4. In the section


Correct Option: B

AI Explanation

To answer this question, you need to understand how to link external style sheets in an HTML document.

Option A) At the top of the document - This option is incorrect because placing the reference to an external style sheet at the top of the document would not be the correct place. It is important to separate the structure and content of the document from its styling, which is why the section is typically used for linking external style sheets.

Option B) In the section - This option is correct because the section of an HTML document is where you should place the reference to an external style sheet. This ensures that the styles are loaded before the content is rendered, allowing for consistent and uniform styling throughout the document.

Option C) At the end of the document - This option is incorrect because placing the reference to an external style sheet at the end of the document would not be the correct place. By the time the styles are loaded, the content may have already been rendered without any styling, resulting in a visually inconsistent document.

Option D) In the section - This option is incorrect because the section is meant for the actual content of the HTML document, not for linking external style sheets. Placing the reference to an external style sheet in the section would not adhere to best practices and could result in unexpected styling behavior.

The correct answer is B) In the section. This option is correct because it allows the external style sheet to be loaded before the content is rendered, ensuring consistent and uniform styling throughout the document.

Find more quizzes: