Common HTML Elements
Parent Elements
Parent Elements exist anywhere in the body tag or within other HTML elements.
h1,h2, ...h6- Headings (Important information)p- Paragraphol/ul- Listsli- List Item (Only can be children ofolorul)
img- Imagepre- Preformatted Textcode- Preformatted Codebutton- Button
Div-like Elements
"Div-like" elements are used to group together HTML elements on the page for semantics or styling.
divsectionheaderfooternavarticlemain
Modifiers
Modifiers will almost ALWAYS exist within a parent element as they set aside a particular set of plain-text content.
a- Anchor tag (Link to other pages)span- Group of text (functionality to be determined by CSS or JS)strong- Defaults to bolded text (shows importance)em- Defaults to italics (shows emphasis)
Table Elements
Table elements should only be used for ACTUAL tabular data and should not be used for layout purposes.
table- Sets the outer bounds of the table and its datathead- Groups the head of a tabletbody- Groups the core of the tabular datatr- Groups a row of table cellstd- Table cell (usethwhen creating cells inside ofthead)