Sunteți pe pagina 1din 1

Selector .

class #id
HOME HTML C SS JAVASC RIPT

Example .intro #firstname


JQUERY XML ASP.NET

Example description Selects all elements with class="intro"


Vyberte jazyk

CSS 1 1
R EFER ENC ES | EXAMPLES | FO R UM | ABO UT

Selects the element with id="firstname"


PHP SQL MORE...

* p div,p div p

Selects all elements Selects all <p> elements Selects all <div> elements and all <p> elements Selects all <p> elements inside <div> elements

2
SHARE THIS PAGE 1
To se mi lb

Get Certified element Study Web Technologies and get a diploma element,element at w3schools.com
element element

1 1

41 tis.

CSS Reference

element >element CSS Reference


CSS Selectors element+element CSS Reference Aural CSS Web [attribute ] Safe Fonts CSS Units [attribute =value] CSS Colors CSS Color Values [attribute~=value] CSS Color Names

CSSdiv>p Selector Reference Selects all <p> elements where the parent is a <div> element
Previous div+p
Selects all <p> elements that are placed immediately after <div> elements

WEB HOSTING 2
Best Web Hosting

Next Reference

2 eUK Web Hosting


UK Reseller Hosting

W3Schools' CSS reference is tested major browsers. [target] Selects allregularly elements with with all a target attribute

C loud Hosting

CSS Selectors

[target=_blank]

Selects all elements with target="_blank"

2 Top Web Hosting


$3.98 Unlimited Hosting

[title~=flower] Selects all elements with a title attribute containing the word "flower" In CSS, selectors are patterns used to select the element(s) you want to style. [lang|=en] Selects all elements with a attribute value starting with "en" The "CSS" column indicates in which CSS version the property is lang defined (CSS1, CSS2, or CSS3).

2 2

250+ Hosting Apps

[attribute |=value CSS Color HEX ]


CSS3 Browser Support :link

:visited animation

CSS Properties

Previous
a:visited a:active

a:link

Selects all unvisited links Selects all visited links Selects the active link

Next Reference

WEB BUILDING 1
Download XML Editor FREE Website BUILDER FREE Website 1 C reator

appearance :active backface-visibility :hover background border :focus bottom

Build Your Professional HTML Website with Wix

Start building your own beautiful website. Its easy and free! a:hover Selects links on mouse over Wix.com provides an easy-to-use online platform where you input:focus Selects the input element which has focus can create and publish your own website. Enjoy powerful drag & drop editing tools & customizable website designs. p:first-letter Selects the first letter of every <p> element With total design control, eCommerce features, superior SEO results and free domains, Wix is the ultimate solution for p:first-line Selects the first line of every <p> element creating your perfect and exquisite HTML website.

1 STATISTICS
Browser Statistics OS Statistics 1 Display Statistics

:first-letter box
caption-side :first-line clear clip :first-child color :before column content :after counter-increment counter-reset :lang( language) cursor element1 ~element2 direction display [attribute^=value] empty-cells

1 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3

p:first-child <p> element that is the first child of its parent Over 20 million users have Selects created every their website with Wix.
Create yours now! p:before

Insert content before the content of every <p> element Insert content after every <p> element Selects every <p> element with a lang attribute value starting with "it" Selects every <ul> element that are preceded by a <p> element Selects every <a> element whose src attribute value begins with "https" Selects every <a> element whose src attribute value ends with ".pdf" Selects every <a> element whose src attribute value contains the substring "w3schools" Selects every <p> element that is the first <p> element of its parent Selects every <p> element that is the last <p> element of its parent Selects every <p> element that is the only <p> element of its parent Selects every <p> element that is the only child of its parent
The perfect solution for professionals need to of balance work, family, Selects every <p> element that is the who second child its parent and career building.

p:after p:lang(it) p~ul a[src^="https"] a[src$=".pdf"] a[src*="w3schools"] p:first-of-type p:last-of-type p:only-of-type p:only-child p:nth-child(2) p:nth-last-child(2) p:nth-of-type(2)

[attribute float $=value]


font [attribute*=value] grid-columns grid-rows :first-of-type hanging-punctuation :last-of-type height icon :only-of-type @keyframes left :only-child letter-spacing :nth-child( n) line-height list-style :nth-last-child(n ) margin max-height :nth-of-type( n) max-width :nth-last-of-type( n) min-height min-width nav :last-child opacity :root outline overflow :empty overflow-x overflow-y :target padding page-break :enabled perspective

W3Schools' Online Certification

Selects every <p> element that is the second child of its parent, counting from the last child More than 10 000 certificates already issued! Selects every <p> element that is the second <p> element of its parent

Get Your Certificate

p:nth-last-of-type(2) Selects every <p> element that is the second <p> element of its parent, counting from the The HTML Certificate documents your knowledge of HTML. last child The CSS Certificate documents your knowledge of advanced CSS. p:last-child Selects every <p> element that is the last child of its parent The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM. :root Selects the documents root element The jQuery Certificate documents your knowledge of jQuery. p:empty Selects everyof <p> element that has no children (including text nodes) The XML Certificate documents your knowledge XML, XML DOM and XSLT. The ASP Certificate documents your knowledge of ASP,active SQL, and ADO. #news:target Selects the current #news element (clicked on a URL containing that anchor name) The PHP Certificate documents your knowledge of PHP and SQL (MySQL). input:enabled input:disabled input:checked :not(p) ::selection Selects every enabled <input> element Selects every disabled <input> element Selects every checked <input> element Selects every element that is not a <p> element Selects the portion of an element that is selected by a user

3 3 3 3 3 3 3 3 3

:disabled perspective-origin
position :checked punctuation-trim quotes :not( selector) resize

::selection right

S-ar putea să vă placă și