Css syntax is the way to declare css code as per w3c rules.Css syntax consists of selector,property and value.
See the below the code which explains about css syntax.
<style>
h1{color : brown;}
</style>
<h1>Techinfoweb</h1>
- Selector –Styles the HTML element [example:h1,p and more]
- Property –Used to mention about selector properties height,color,alignment and more[Example from above code:color]
- Value-Used to mention value such as (pixels size, color name and more) for property [example from above code:red]
0 comments :
Post a Comment