- 1

what's the selectors means?

5th Oct 2016, 5:23 AM
Atikur Rahman
Atikur Rahman - avatar
8 Antworten
+ 2
Selectors are patterns used to select the element(s) you want to style. for example p { color: blue; } this will select all p elements and set their color to blue. .mytext { color: red; } this will select all elements with class mytext and set their color to red. #mydiv { width: 500px; } this will select the element with mydiv id and set its width to 500px
5th Oct 2016, 10:33 AM
Mohammed Chetehouna
+ 1
selectors are the html code that your css code will affect. example: <style> h1 {color: green;} </style> <body> <h1>Selector</h1> the selector here is the h1 or should I say the h1 tag...so in another words, the font color of the code <h1>Selector</h1> will change into green rather than its default font color.
5th Oct 2016, 10:28 AM
Rhoshielamie Libuna
Rhoshielamie Libuna - avatar
+ 1
simply selector means those tag which you have defined in HTML code in order to make some changes, we use that tag in our CSS file because we are "selecting" the tag from HTML code in CSS code for some changes as the name says
5th Oct 2016, 5:36 PM
Darshan Komu
Darshan Komu - avatar
0
slectors mind?
11th Oct 2016, 6:06 AM
Ikrom Nur Rohim
0
In CSS, selectors are patterns used to select the element(s) you want to style. Use our CSS Selector Tester to demonstrate the different selectors. The "CSS" column indicates in which CSS version the property is defined (CSS1, CSS2, or CSS3).. Example : p{ color:#FF3651; } .div1{ font-family:Tahoma; } Here p , .div1 are The Selectors.
12th Oct 2016, 7:43 PM
PIYUSH KUMAR
0
selector is the specific element which you want to modify or style .
15th Oct 2016, 6:11 PM
madhu
0
when you style you website any one text,div or img you style your class name or selectors html ----------- <p>style your selectors<p> css style: --------------- p { color:red; }
16th Oct 2016, 6:46 AM
Faisal Hasan
Faisal Hasan - avatar
0
thanks everybody
16th Nov 2016, 6:15 AM
Atikur Rahman
Atikur Rahman - avatar