external style tag in html code example

Example 1: add css file to html

/*
Adding css file into html document
*/

<link rel="stylesheet" type="text/css" href="yourstylesheetname.css">  /* add this line into head tag of the file with change in file name. */

/*
I hope it will help you.
Namaste
*/

Example 2: external style sheet

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

Example 3: html add style

<!-- add this line into the head tag -->
<link rel="stylesheet" type="text/css" href="yourstylesheetname.css">
<!-- remember to change the irl in href -->

Example 4: where do you put style tags in html

// Style tags belong in <head>

Tags:

Html Example