HTML Flashcards
HTML Skeleton
Where do you put non-visible content about the HTML document?
In the head element
HTML Skeleton
Where do you put visible content about the HTML document?
Within the body elements
HTML Skeleton
Where do the head and body tags go in a valid HTML document?
Between opening and closing tags of HTML elements
HTML Skeleton
What is the purpose of a !DOCTYPE declaration?
To tell a browser which version of HTML the page is using. And DOCTYPE can also help the browser to render a page correctly
HTML Syntax
Give five examples of HTML element types.
p, img, header, footer, mark
HTML Syntax
What is the purpose of HTML attributes?
Attributes provide additional information about the contents of an element
HTML Syntax
Give an example of an HTML entity (escape character).
Less-than sign: <
Greater-than sign: >
Ampersand: &
HTML Block and Inline
How do block-level elements affect the document flow?
Block-level element always starts on a new line
HTML Block and Inline
How do inline elements affect the document flow?
Inline elements are those which only occupy the space bounded by the tags defining the element, instead of breaking the flow of the content.
HTML Block and Inline
What are the default width and height of a block-level element?
The default height of a block-level element is the height of the content
The default width of a block-level element is the length of the page
HTML Block and Inline
What are the default width and height of an inline element?
The height and width of an inline element are exactly the height and width of the content.
HTML Lists
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists use numbers and unordered lists use bullet points.
HTML Lists
Is an HTML list a block element or an inline element?
Block element
HTML Links
What HTML tag is used to link to another website?
a tag
HTML Links
What is an absolute URL?
- link to a different website
- An absolute URL starts with the domain name for that site, and can be followed by the path to a specific page.