Select from following answers:- <stylesheet>mystyle.css</stylesheet>
- <link rel="stylesheet" type="text/css" href="mystyle.css">
- <style src="mystyle.css">
- All of the above.
- All Above
<link rel="stylesheet" type="text/css" href="mystyle.css"> is the correct syntax for importing an external CSS file. We usually write this in <head> section.
The REL attribute defines the relationship that the linked resource has to be document from which it is referenced.
In most of the cases,this resource will simply be "stylesheet".
The TYPE attribute defines whether it's a CSS or javascript.
The HREF defines the CSS file name.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator