Introduction to css Syntax
- CSS Selector points HTML element declaration block contains one or more declarations
- separated by semicolons.
- each CSS Selector declaration includes a CSS Property name and value ,separated by colon.
- CSS multiple declaration are separated with semicolons
- CSS element declaration blocks are surrounded by curly braces.
Introduction to css Syntax
Syntax
selector {
property: value;
}
Introduction to css Syntax
Example
<!DOCTYPE html> <html> <head> <title> html css Syntax </title> <style> p{ color:rgb(0, 8, 255); text-align:center; }
</style> </head> <body> <p>Hello every one</p> <p>My Name is web designing theory</p> <p>https://webdesigningtheory.blogspot.com/</p> <p>learn to programming language</p> <p>Easy understand</p>
</body> </html>
<!DOCTYPE html>
<html>
<head>
<title> html css Syntax </title>
<style>
p{ color:rgb(0, 8, 255);
text-align:center;
}
</style>
</head>
<body>
<p>Hello every one</p>
<p>My Name is web designing theory</p>
<p>https://webdesigningtheory.blogspot.com/</p>
<p>learn to programming language</p>
<p>Easy understand</p>
</body>
</html>
