Please defined selector property and value in css | Sololearn: Learn to code for FREE!
+ 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 - avatar
p{color:green;} selector = p property = color value = green
15th Feb 2018, 8:40 PM
Vimalraj K
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