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.


h1{color : brown;}




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

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


Post a Comment