HTML Summary
HTML (HyperText Markup Language) is used to define our page content, structure and meaning. You do not use it for styling. Use CSS instead
- HTML uses elements to describe (say) content
- HTML elements usually have a opening tag, the content, then the closing tag which can explain many different things.
- Some elements like the link tag is one tag and does not have a closing tag. But has all of its content withing the tag.
- You can also configure elements with attributes
Learn more all about HTML elements on the MDN HTML element reference
CSS Summary
CSS (Cascading Style Sheets) is used for styling your page content.
- Styles are given to elements by a property-value pairs
- You can assign styles to elements by the "style" attribute
- Duplication can happen, and to avoid it you usually use global styles (by the "style" element) instead
- Alternativly you can use "external" stylesheets. which you link to the index.html file
- When you use CSS concepts like "inheritance", "specificity" & the "box model" should be understood
You can learn more about CSS and all its funtions by going to the MDN CSS property refrence