- 1
what's the selectors means?
8 odpowiedzi
+ 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
+ 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.
+ 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
0
slectors mind?
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.
0
selector is the specific element which you want to modify or style .
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;
}
0
thanks everybody