Introduction

Hello friends, in this blog we will learn how to change selector basic with your own style. Let check with <h1>….to <h5>.
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Color Change Of Inbuilt Selector</title>
  5. </head>
  6. <body>
  7. <h1>
  8. Color Change Of Inbuilt Selector</h1>
  9. </body>
  10. </html>
When we render, browser would be rendered as in the following:
Change-Property-of-Selector-in-CSS.jpg
Now lets we add a property in our <h1> selector. For that add style in your <head> part or make one stylesheet and name it style.css and you can link style.css in your head part.
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Color Change Of Inbuilt Selector</title>
  5. <style type="text/css">
  6. h1 {
  7. font: 30px Arial, Helvetica, sans-serif;
  8. color: #ff0000;
  9. }
  10. </style>
  11. </head>
  12. <body>
  13. <h1>
  14. Color Change Of Inbuilt Selector</h1>
  15. </body>
  16. </html>
Change-Property-of-Selector-in-CSS1.jpg

Summary

This way you can change any of inbuilt selector's property with your choice.