how do i program css acording to html?

dente de requin

New member
hi i am learning xhtml and css and want to know does css have to have its rules set in the order the elements occur in html.

does that make sense.

so if i had a an h1, p and a form element occuring in this order on the html sheet would the css styling sheet follow this same suit

hi {

p {

form {

does that make sense?

thanks for any help
 
Back
Top