Powered by Blogger.

Tuesday, 3 January 2017

Linking a separate css file to HTML


Today you will learn how to link CSS file to HTML  document. Your style/CSS rules/properties are contained in a single file that is saved with the extension .css. You link to it directly from each HTML document/file.
This is just simple that you put line in between <head></head> of HTML file.
see bellow screenshot




Note:
Make sure the correct path  in the href=""
If the css file is  in the same folder where your html file is then no need any path just write the file name.
Or if the css file is present in different folder then pacify the location/path example  href="foldername/filename.css"


If any query please leave a comment or contact me. Thank You

0 comments:

Post a Comment