- A markup language to display content
- Unlike programming languages, you can’t use it to perform logic
- Composed of tags
- Not case-sensitive or white space-sensitive
- Reads top-down
<head>
tag- Metadata about the document
- Links external CSS, meta tags, character encoding, etc.
- Not displayed to the user, but browser needs to know how to render the document
<body>
tag- All content displayed to user
- Links
pusheen.com
vs.http://pusheen.com
<div>
tag- For organization
- Inline
- Pro: Okay for in-development debugging
- Con: Gets messy and hard to maintain
- Internal stylesheet
- Pro: Email templates don’t support a separate CSS file
- Con: Because HTML reads top-down, if something breaks, it might screw up your entire document
- External stylesheet
- Most-preferred way of organizing CSS
- Keeps your content and styling separate; good for debugging
- Able to select element of document and view all styling applied
- Able to see errors, requests and load time