WEB-DEVELOPMENT-APPLICATIONS practice question 4 of 25

Which element attaches an external CSS document to a web page?

Choose your answer, then check it against the explanation and the full breakdown below.

Which element attaches an external CSS document to a web page?

Answer options
Question 4 of 25

Question breakdown

Tests
Link external stylesheets to HTML
Difficulty
Easy

Key idea: An external CSS file is attached with a element in the head.

How to reach the answer

  1. The clue is the word 'external' CSS document.
  2. holds CSS written inside the page, so it does not attach an external file.
  3. loads JavaScript, and supplies metadata about the page.
  4. with rel="stylesheet" references an external CSS file.

Each option

  • AIncorrect. contains internal CSS embedded in the page and does not reference a separate file.
  • BCorrect. is the standard way to attach an external stylesheet.
  • CIncorrect. embeds or loads scripts such as JavaScript, not CSS.
  • DIncorrect. provides metadata such as the charset or viewport and does not load stylesheets.

Common trap: Choosing because it is associated with CSS, even though it is for internal styles only.

In practice: Almost every site loads shared stylesheets through tags in the head so that many pages can reuse the same CSS and browsers can cache it.

Remember: Use for external CSS and for internal CSS.

Drafted with AI assistance and checked against the answer key.

Keep practicing

Take the free WEB-DEVELOPMENT-APPLICATIONS practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other WEB-DEVELOPMENT-APPLICATIONS practice questions

Scroll to Top