Link css file to html file

  1. Create a index.html file
  2. Create a style.css file
  3. Style file link using link tag

Note : external css file extension always  .css

HTML linked with css file

<link rel="stylesheet" href="style.css">


Write css in style.css file


Result


Use external css file better than internal css file

Related Articals

Learn css