HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head element
Where do you put visible content about the HTML document?
In the body element
Where do the head and body tags go in a valid HTML document?
Within the HTML element
What is the purpose of a !DOCTYPE declaration?
To declare which version of html the page is using
Give five examples of HTML element tags.
h1 - h6, p, div, img, title, head, body, html
What is the purpose of HTML attributes?
Attributes provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
' (apostrophe), & (ampersand), © (copyright), ® (registered trademark), &*acute (acute accent above a letter)
How do block-level elements affect the document flow?
They will always create/begin on a new line and will take up the entire width of the page, nothing will sit next to it.
How do inline elements affect the document flow?
They will continue on the same line as neighboring elements.
What are the default width and height of a block-level element?
All block level elements inherit the width of their parent element by default; their height is the height of the content.
What are the default width and height of an inline element?
Only as much as is necessary for the content.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists use numbers before each list item, while unordered lists use bullet points before each list item.
Is an HTML list a block element or an inline element?
Lists are block elements
What HTML tag is used to link to another website?
‘a’ or Anchor element with the href attribute (<a></a>)
What is an absolute URL?
The full web address for the site you’re linking to in the href attribute.