0
How can I apply specific style if I haven't assigned any ID or class to my element.?
8 odpowiedzi
+ 3
eg.
p{
color:green;
}
+ 1
Use type selector.
It will apply style to all elements of same type
+ 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.
0
and how can we use type selector.?
0
oh is that by using the tag .? like p or div ?
0
thanks buddy 😃
0
You have to use type selector or style tag.
0
thank you so much guys.