How to refer the .css file in the web page?

 Posted by Raja on 3/5/2009 | Category: HTML 5 Interview questions | Views: 17641

To refer .css file in the web page, use <link> tag. Generally it is suggested to keep this inside the <head></head> tag.

<link href="/css/mystyle.css" type="text/css" rel="stylesheet" />

Notice that the type attribute value should be "text/css" and rel attribute value should be "stylesheet".

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response