HTML Flashcards
Where do you put non-visible content about the HTML document?
Non-visible content is placed in the head tag.
Where do you put visible content about the HTML document?
Visible content is placed in the body tag.
Where do the head and body tags go in a valid HTML document?
The head and body tags belong within the html tag.
What is the purpose of a !doctype declaration?
The !doctype declaration lets the browser know what the document contains and/or the version of HTML.
Give five examples of HTML element tags.
html - Encompasses the entire project. head - Used for non-visible elements. body - Used for visible elements. p - Paragraph tag. h1-h6 - Heading tags.
What is the purpose of HTML attributes?
HTML Attributes are used to edit the ‘settings’ of the targeted element.
Give an example of an HTML entity (escape character).
An escape character is used in text to encode a symbol. e.g. &’amp’ for ‘&’.
How do block-level elements affect the document flow?
Block-level elements take up an entire row of screen space and add spacing before and after the content.
How do inline elements affect the document flow?
Inline elements do not use extra spacing and simply affect the content selected.
What are the default width and height of a block-level element?
The default width of a block-level element is equal to the entire horizontal space of its parent element/container. The height is equal to its contents.
What are the default width and height of an inline element?
The default height and width of an inline element are equal to the contents.
What is the difference between an ordered list and an unordered list in HTML?
An ordered lists will add numerical bullet points to your list items while an unordered lists uses default bullet points.
Is an HTML list a block element or an inline element?
An HTML list is a block element. It takes up all horizontal space.
What HTML tag is used to link to another website?
The anchor tag, ‘a’.
What is an absolute URL?
An absolute URL is a full link to another website.