HTML Flashcards
Doctype: Required as the first line of an HTML document (historical artifact).
.
Root Element: Follows the “doctype” and wraps around all content on the entire page.
Head Element: Container for things that do not appear as viewable content (e.g., keywords and descriptions that will appear in search results, CSS, character set declarations, etc.).
Character Set: Allows document to use “utf-8” character set, which includes most characters from all known human languages (nests within head element).
Title: Sets the title that appears in browser tab (nests within head element).
• Also appears as the search result in Google.
Body: Contains all of the content that will be shown to the viewer.
o Elements (give examples)
(content + opening/closing tags)
Block Elements (Give Examples)
form a visible block on a page (e.g., paragraphs, lists, navigation menus, footers, etc.):
• Paragraph
<p></p>
• Divider
<hr></hr>
• Headings:
o NOTE: As a general rule, try to have only one <h1> tag in your HTML document, and it should be the biggest text element on the page.
</h1>
<h1> through <h6></h6></h1>
• Generic Container:
<div></div>
• Lists
each item within a type of list needs to be identified by this tag
<li> </li>
o Ordered Lists (lists that are numbered)
<ol></ol>
o Unordered Lists (lists composed of bullet points
<ul></ul>