0

How can I apply specific style if I haven't assigned any ID or class to my element.?

30th Jun 2016, 4:04 AM
Shivam
8 Answers
+ 3
eg. p{ color:green; }
30th Jun 2016, 12:40 PM
Pratyush Kumar
Pratyush Kumar - avatar
+ 1
Use type selector. It will apply style to all elements of same type
30th Jun 2016, 12:28 PM
Pratyush Kumar
Pratyush Kumar - avatar
+ 1
inline styling using the "style" html attribute (if you want it to be for a specific element as opposed to a set of similar elements) e.g.style="color:white; ; background-color:black;" etc.
3rd Jul 2016, 10:46 PM
Angelica Munyao
Angelica Munyao - avatar
0
and how can we use type selector.?
30th Jun 2016, 12:32 PM
Shivam
0
oh is that by using the tag .? like p or div ?
30th Jun 2016, 12:33 PM
Shivam
0
thanks buddy 😃
30th Jun 2016, 1:39 PM
Shivam
0
You have to use type selector or style tag.
6th Jul 2016, 6:54 AM
Rezaul Karim
Rezaul Karim - avatar
0
thank you so much guys.
6th Jul 2016, 10:50 AM
Shivam