Q
What is the purpose of the rel attribute in the <link> tag when linking CSS stylesheets?

Answer & Solution

Answer: Option A
Solution:
The rel attribute defines the relationship between the HTML file and the linked CSS file.
Related Questions on Average

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 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.

Which of the following is an advantage of using external CSS files over inline styles?

A). A. Increased specificity of CSS rules.

B). B. Easier maintenance and updating of styles.

C). C. Faster rendering of web pages.

D). D. Inline styles allow for greater control over individual elements.

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.

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.

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 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>

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

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 HTML tags can be styled using CSS?

A). A. <script>

B). B. <meta>

C). C. <header>

D). D. <body>