HTML & CSS

The base of the Internet

HTML is how you structure the Web. It is the templating layer.

 

HTML has a few things to it

 

Elements & Attributes

 

Element

 

<div> </div>

 

Attribute

 

<div style="background-color: blue;"> </div>

 

CSS is how you present the Web. It is the presentation layer

.class

 

Classes are reusable blocks of presentation code that styles HTML elements. Classes are also used for selectors. selectors allow you to select HTML/DOM element(s) and modify them.

1

#id

 

Ids are use once blocks of presentation code that styles HTML elements.  Ids are used only once and help easily select just once element.

1

HTML & CSS

By James Brinkerhoff

HTML & CSS

Part of the Engage Starter Bootcamp material

  • 527