1<html>
2 <head>
3 <link rel="stylesheet" type="text/css" href="mystyle.css"></link>
4 </head>
5
6 <body>
1/*
2Adding css file into html document
3*/
4
5<link rel="stylesheet" type="text/css" href="yourstylesheetname.css"> /* add this line into head tag of the file with change in file name. */
6
7/*
8I hope it will help you.
9Namaste
10*/
1<!-- There are 3 ways to do this-->
2
3<!-- #1: Inline CSS-->
4<h1 style="color: red;">Red Heading</h1>
5
6<!-- #2 Element CSS-->
7<style>
8 h1 {
9 color: red;
10 }
11</style>
12<h1>Red Heading</h1>
13
14<!-- #3 Stylesheet CSS-->
15<link rel="stylesheet" href="[stylesheet link]">
1<!-- EXAMPLE -->
2<div class="your_class" style="display:none">
3
4<!--[SYNTAX: style="<CSS-code>"] -->