/* The Example1 will be having the font styles,colors and font size for the content present in Example2. copy and paste the code of Example2 to get the output.*/
Example1.css
body { background-color:yellow; } h1 { font-size:36pt; } h2 { color:blue; } p { margin-left:50px; }
Example2.css
<html> <head> <link rel="stylesheet" type="text/css" href="example1.css" /> </head> <body> <h1>Hai!!</h1> <h2>Have A Nice Day</h2> </body> </html>
Output:
Hai!!
Have A Nice Day