+ 1

Styling two ordered lists different from each other in same webpage.

How can I style the ordered list below the second "h2" the Indian geography, differently by the before one. https://sololearn.com/compiler-playground/WFbNzlByQmeh/?ref=app https://sololearn.com/compiler-playground/WFbNzlByQmeh/?ref=app

21st Jan 2024, 4:00 PM
Abhinav Dwivedi
Abhinav Dwivedi - avatar
5 Antworten
0
Abhinav Dwivedi several suggestions: the font tag is not valid html5. use font-family property instead and apply it to the body if you want it inherited globally. You have a lot of unclosed tags. using indentations in the html code improves the readability of the code and helps you catch unclosed tags. You can write the properties for the same tag inside one bracket. No need to redeclare the tags repeatedly. also, maybe you mean 2 unordered lists? there is only 1 ordered list in your example. https://sololearn.com/compiler-playground/WZffKjHicAZD/?ref=app
22nd Jan 2024, 6:06 AM
Bob_Li
Bob_Li - avatar
+ 3
Abhinav Dwivedi What type of 'styling' are you trying to do ? Your question needs a bit of clarity inorder to receive help.
21st Jan 2024, 4:25 PM
BroFar
BroFar - avatar
+ 3
you can use classes. using tags as css specifiers applies the same style to all tags of the same type. using class narrows down the specificity of the styling.
21st Jan 2024, 10:51 PM
Bob_Li
Bob_Li - avatar
+ 1
Very very thanks bro Bob_li
22nd Jan 2024, 10:00 AM
Abhinav Dwivedi
Abhinav Dwivedi - avatar
0
I mean that changing colour, giving another font size etc
21st Jan 2024, 5:49 PM
Abhinav Dwivedi
Abhinav Dwivedi - avatar