How to link an external css file to HTML?

 Posted by Pgayath on 9/21/2012 | Category: HTML 5 Interview questions | Views: 1351 | Points: 40
Answer:

The <link> tag is used to link an external file and the type attribute should be set to "text/css" to refer a style sheet.

Example:
<html>

<head>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
</body>
</html>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response