Please defined selector property and value in css | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Please defined selector property and value in css

4th Feb 2018, 1:10 AM
Shahbaj ahamad
Shahbaj ahamad - avatar
5 Answers
+ 5
Css has selectors instead of tags and they are basically the tag names and are used to style particular elements. If you take the following example: pย { ย ย ย  color: red; ย ย ย  text-align:ย center; } P = Selector Color and Text Align = Property Red and Center = Value
4th Feb 2018, 1:27 AM
Memphis Reigns
Memphis Reigns - avatar
+ 1
The selector is points to the HTML element you want to style.
12th Feb 2018, 11:11 AM
Mubarak Haroun Mohamed
Mubarak Haroun Mohamed - avatar
+ 1
p { color:red; text-align:right; } for the question asked= p= selector text align=property right=value
13th Feb 2018, 2:53 PM
Alex
Alex - avatar
0
p{color:green;} selector = p property = color value = green
15th Feb 2018, 8:40 PM
Vimalraj K
0
Selector, basically, tells the browser which html element(s) need to be modified. And browser modifies it (them) by overvriting default values of some properties of that element (depends on the browser) with ones, specified in the stylesheet.
22nd Feb 2018, 3:34 AM
ะะปะตะบัะตะน ะ’ะธั‚ัŽะบ
ะะปะตะบัะตะน ะ’ะธั‚ัŽะบ - avatar