Answer & Solution
<link> tag for external CSS files is typically placed inside the <head> section of the HTML document.
<link> tag for external CSS files typically be placed?
<link> tag for external CSS files is typically placed inside the <head> section of the HTML document.
What is the purpose of the rel attribute in the <link> tag when linking CSS stylesheets?
A). A. It specifies the relationship between the HTML file and the CSS file.
B). B. It defines the location of the CSS file.
C). C. It sets the rendering mode for the CSS file.
D). D. It determines the MIME type of the CSS file.
Which of the following statements is true regarding the order of precedence in CSS styling?
A). A. Inline styles have the lowest precedence and are overridden by external stylesheets.
B). B. External stylesheets have the highest precedence and override inline styles.
C). C. Styles declared later in the HTML document take precedence over styles declared earlier.
D). D. Styles with more specific selectors override styles with less specific selectors.
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'>
Which of the following is true about linking multiple CSS files using multiple tags?
A). A. Only one CSS file can be linked using the <link> tag.
B). B. Multiple CSS files can be linked, but only one will be applied.
C). C. Multiple CSS files can be linked, and their styles will be combined and applied.
D). D. Multiple CSS files cannot be linked in HTML documents.
What is the purpose of the type attribute in the <link> tag when linking CSS stylesheets?
A). A. It specifies the MIME type of the linked CSS file.
B). B. It defines the rendering mode for the CSS file.
C). C. It sets the relationship between the HTML file and the CSS file.
D). D. It determines the location of the CSS file.
What is the primary disadvantage of using inline styles?
A). A. Increased file size of the HTML document.
B). B. Difficulty in maintaining consistency across multiple elements.
C). C. Limited scope for applying complex CSS rules.
D). D. Slower rendering of web pages.
Which of the following is true about the media attribute in the <link> tag when linking CSS stylesheets?
A). A. It specifies the device resolution for which the stylesheet is intended.
B). B. It defines the type of media content the CSS rules apply to.
C). C. It sets the priority of the CSS file for loading.
D). D. It specifies the viewport size for applying responsive styles.
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 of the following HTML tags can be styled using CSS?
A). A. <script>
B). B. <meta>
C). C. <header>
D). D. <body>
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