Which of the following is used to set up a Style Sheet?
<STYLE>
</STYLE>
<SHEET>
</SHEET>
<CSS>
</CSS>
<STYLE>
</SHEET>
Which of the following is used to set up a Style Sheet?
<STYLE>
</STYLE>
<SHEET>
</SHEET>
<CSS>
</CSS>
<STYLE>
</SHEET>
Correct — the style element is the way to embed CSS inside an HTML document. Good catch by ; linked an official example and covered the external-stylesheet option.
Prefer an external stylesheet for real projects: it improves maintainability and lets browsers cache the CSS. Put the link element that references your .css file in the document head so styles are available before rendering; keep small, page-specific rules in an embedded style element only when necessary. For details on each element see MDN: style element and MDN: link element.
If a stylesheet doesn't apply: verify the file path, confirm the server returns a 200 for the CSS file and serves it as text/css, do a hard reload to bypass cache, and open browser devtools to inspect the loaded stylesheet and which rules are winning (specificity and cascade matter). Also check for simple syntax errors or selector mismatches that prevent rules from matching.
Production tips: minify and combine CSS to reduce requests, use cache-busting (file hashes or version query strings) when deploying updates, and avoid inline styles so presentation stays separate from markup. These steps keep styles predictable and easier to maintain.
Jump to Post— pritaeas 2,276
<STYLE>
</STYLE>
Is the correct one I was right :D
Yep, you use <style></style> for CSS you want to include in your header file. If you want to use an external stylesheet you use <link href="style_sheet_location" />
Thanks and question has been solved :D
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.