how to maintain single css file for 3 pages | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to maintain single css file for 3 pages

like i want to make change in h1 style in page1 change bt when i set style for h1 in css file it changes for all pages

15th Dec 2018, 5:34 AM
Samiir Padole
Samiir Padole - avatar
4 Answers
0
No you don't have to. Unless you want to have different style for each of the h1 tag. If you want to have same style for other two headers just type h1{ Style you want }
15th Dec 2018, 6:07 AM
Aadhish Sriram
Aadhish Sriram - avatar
0
You add class for the tag you want to a different style like <h1 class="head1"> In CSS add a code h1.head1{ Style you want comes here } You can change the name 'head1' as you like. You should link the CSS file with all three pages also.
15th Dec 2018, 5:41 AM
Aadhish Sriram
Aadhish Sriram - avatar
0
thanks brother...
15th Dec 2018, 5:46 AM
Samiir Padole
Samiir Padole - avatar
0
then for every h1 tag i have to create class?
15th Dec 2018, 5:47 AM
Samiir Padole
Samiir Padole - avatar