HTML Summary
HTML (Hyper Text Markup Language) is used to define your page content, structure and meaning. You don't use it for styling purposes. Use CSS for that instead!
- HTML uses "Elements" to describe (annotate) content
- HTML elements typcally have an opening tag, content and then a closing tag
- You can also have void (empty) elements like images
- You can also configure elements with attributes
- There's a long list of available HTML elements but you'll gain experience over time, no worries!
Learn more about all available HTML elements on the MDN HTML element reference.
CSS Summary
CSS (Cascading Style Sheet) is used for styling your page content.
- Styles are assigned via property-value pairs
- You can assign via property-value pairs
- To avoid duplication use global styles (via the "style" elements) instead
- Alternatively, you work with external stylesheet files which you "link" to
- When working with CSS, concepts like "inheritance" and "specificity" should be understood
Learn more about all available CSS properties and values on the MDN CSS property reference.