CSS and visuals/creating a somewhat customizable html page

 

 

Difference between CSS and HTML:

 

 

 



HTML: <h1> This is a heading </h1>               start tag, end tag,

<h1> is an ÒHTML elementÓ

á       Used to describe a specific section on a webpage

ÒThis is a headingÓ is the ÒcontentÓ

á       The text, links, images displayed on the webpage

                                                                       

 

CSS: h1  {color:blue; font-size: 12px;}           h1 is the ÒselectorÓ

á       Indicates which HTML element you want to style

                                                                        {color:blue; font-size: 12px;} is the ÒdeclarationÓ

á       Contains a property and a value separated by a colon

                                                                        ÒColorÓ and Òfont-sizeÓ are both ÒpropertiesÓ

á       Group with specific names corresponding to different styles/formats

                                                                        ÒBlueÓ and Ò12pxÓ are both ÒvaluesÓ

á       Which we know and correspond to the property listed prior

 

ÒDeclaration blockÓ is everything living inside the curly braces { }

All declarations end with a semicolon ;