0% found this document useful (0 votes)
10 views5 pages

X 38

Uploaded by

hlemorvan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
10 views5 pages

X 38

Uploaded by

hlemorvan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 5
2orti2029 11.05 88 syntax w ; i i , Tutorials~ Exercisesw Serviesey§ QO SignUp Login schools = CSS JAVASCRIPT SQL. PYTHON. «= JAVA. PHP, «= HOWTO = W3.CSS_— CSS Syntax ASS rule consists of a selector and a declaration block. CSS Syntax Selector Declaration Declaration @ {color:blue; font-size: 12px; } Property Value Property value The selector points to the HTML element you want to style. The declaration block contains one or more declarations separated by semicolons. Each declaration includes a CSS property name and a value, separated by a colon, Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces. Example In this example all

elements will be center-aligned, with a red text color: pt color: red; iipsulwaew.ndechools.comicssiess_syntaxasp us 2ert12028 11.05 88 Syntax. 3 w Tutorialsy —Exercisesw Servicese§ QO Log in schools Example Explained * p isa selector in CSS (it points to the HTML element you want to style:

), * color isa property, and red is the property value * text-align is a property, and center is the property value You will learn much more about CSS selectors and CSS properties in the next chapters! - a Create a Free Website Code websites directly Matec ge COLOR PICKER nitpsdlmww.vdschools.comlessiess_syntan.asp 26 2ert12028 11.05 88 Syntax v’ Tutorials Exercisesw Servicesey§ QO Login Wa} Get Certified Get Noticed feta TW erty AY reat Tod nitpsdlmww.vdschools.comlessiess_syntan.asp a6 Tutorials Exercises» Services JAVASCRIPT SQL. PYTHON GET CERTIFIED Top Tutorials HTML Tutorial SS Tutorial JavaScript Tutorial How To Tutorial SQL Tutorial Python Tutorial Wa.cSS Tutorial Bootstrap Tutorial PHP Tutorial Java Tutorial C++ Tutorial JQuery Tutorial Top References HTML Reference SS Reference JavaScript Reference SQL Reference Python Reference W3.CSS Reference Bootstrap Reference PHP Reference HTML Colors Java Reference ‘Angular Reference ‘JQuery Reference Top Examples HTML Examples CSS Examples JavaScript Examples How To Examples SQL Examples Python Examples W3.CSS Examples Bootstrap Examples PHP Examples Java Examples XML Examples Query Examples © @ @ © Forum asour ‘W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. 8s Syntax Q 0 JAVA PHP REPORT ERROR Get Certified HTML Certificate css certificate JavaScript Certificate Front End Certificate SQL Certificate Python Certificate PHP Certificate Query Certificate Java Certificate c+ certificate Ce Certificate XML Certificate Sign Up How TO Login W3.css Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness iipsulmoewndechools.comicssiess_syntaxasp c 46 2ert12028 11.05, 88 Syntax. 3 w Tutorials» —Exercisese Servicese§ QU O SignUp Login schools SQL PYTHON JAVA PHP = HOWTO. —-W3,CSS_—C iipsulmoewndechools.comicssiess_syntaxasp 56

You might also like