Which HTML tag is used to define an internal style sheet?
-
css
-
text/style
-
style
-
script
Reveal answer
Fill a bubble to check yourself
C
Correct answer
Explanation
The element is used to define CSS rules within an HTML document. It must be placed in the <head> section and contains CSS code that applies to the document, distinguishing it from <script> which is for JavaScript.
AI explanation
The `tag is placed in the<head>of an HTML document to define an internal (embedded) style sheet — CSS rules that apply directly to that page without an external .css file. "css" and "text/style" aren't real HTML tags at all (thoughtype="text/css"is a valid attribute value used inside the<style>tag).<script>is for JavaScript, not styling. So<style>` is the correct tag for embedding CSS internally.