When should inline styles be preferred over external stylesheets?
A). A. When applying styles globally to multiple HTML documents.
B). B. When reusing styles across multiple elements within a single HTML document.
C). C. When applying styles to only a specific element or small set of elements.
D). D. When creating a complex layout requiring extensive CSS rules.
Which attribute in the <style> tag is used to specify the type of stylesheet being used?
A). A. type
B). B. rel
C). C. src
D). D. href
How do you link an external CSS file named 'styles.css' located in the same directory as your HTML file?
A). A. <link src='styles.css' rel='stylesheet'>
B). B. <link href='styles.css' type='text/css'>
C). C. <link rel='stylesheet' type='text/css' href='styles.css'>
D). D. <style src='styles.css'>
How do inline styles differ from external stylesheets linked using the <link> tag?
A). A. Inline styles are stored in a separate CSS file.
B). B. Inline styles override external stylesheets.
C). C. Inline styles are declared within the HTML document's <style> tag.
D). D. External stylesheets cannot be linked using the <link> tag.
Which of the following HTML tags can be styled using CSS?
A). A. <script>
B). B. <meta>
C). C. <header>
D). D. <body>
Which CSS property is used to specify the font size of text?
A). A. text-size
B). B. font-size
C). C. size
D). D. font-style
Which attribute is used in the <link> tag to specify the location of the external CSS file?
A). A. src
B). B. rel
C). C. href
D). D. type
In which section of the HTML document should the <link> tag for external CSS files typically be placed?
A). A. Inside the <head> section.
B). B. Immediately after the opening <body> tag.
C). C. At the end of the HTML document, just before the closing </html> tag.
D). D. Inline within the HTML elements where styles are applied.
In HTML, which tag is used to define inline styles directly within the HTML document?
A). A. <style>
B). B. <link>
C). C. <script>
D). D. <css>
What is the primary purpose of using the <link> tag to link CSS stylesheets in HTML?
A). A. To apply CSS styles inline
B). B. To define CSS styles within the HTML file
C). C. To link an external CSS file to the HTML document
D). D. To embed CSS styles directly into the HTML document