Answer these Check for Understanding questions as you work through the assignments.
- What is HTML? - HTML stands for Hyper Text Markup Language. It is a language used by browsers to format and display webpages
- What is an HTML element? - An HTML element is used to tell the browser how to display content. Defined by a start tag, content, and an end tag (all of these are one element, though some elements like
br
do not have content/end tags. Often nested in other elements - What is an HTML attribute? - Give additional info about elements, always in the start tag. Usually done in name/value pairs
- What is the difference between a class and an id? When would you use one vs. the other? - A class can be used to apply style to multiple things, an id is used once. A class could be used to tie different sections of a page together stylistically, while an id would be for a unique part of the page