What is css syntax?

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>

 

css syntax

  • 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]
Print Friendly and PDF
SHARE

About me

Hi. I am interested in blogging.And sometimes play with webdesign,web development,domain sale,designing logo and more.

    Blogger Comment
    Facebook Comment

0 comments :

Post a Comment

Pages