COMPUTER SCIENCE AND ENGINEERING
WEB TECHNOLOGY
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which of the following is the correct CSS link tag?
|
<link rel="styles” href="stylesheet.css">
|
|
<link href="stylesheet">
|
|
<link rel="stylesheet” src="styles.css">
|
|
<link rel="stylesheet” href="styles.css">
|
Explanation:
Detailed explanation-1: -To link your CSS to your HTML, you have to use the link tag with some relevant attributes. The link tag is a self-closing tag you should put at the head section of your HTML.
Detailed explanation-2: -The REL attribute is used to define the relationship between the linked file and the HTML document. REL=StyleSheet specifies a persistent or preferred style while REL="Alternate StyleSheet” defines an alternate style. A persistent style is one that is always applied when style sheets are enabled.
Detailed explanation-3: -The href attribute specifies the location (URL) of the external resource (most often a style sheet file).
There is 1 question to complete.