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 opening and closing tags. Head goes first and body goes after
What is the purpose of a declaration?
To let the browser know that it is HTML
Give five examples of HTML element tags.
doctype declaration, html, head, title, body, header
What is the purpose of HTML attributes?
to modify elements
Give an example of an HTML entity
an HTML entity is a character that would be interpreted one way by the code editor, so we substitute it with other characters and symbols.
What are the default width and height of an inline element?
Both auto
What are the default width and height of a block-level element?
Default width: 100%
Default height: auto
How do inline elements affect the document flow?
inline elements will occupy as much space as they need to
How do block-level elements affect the document flow?
block-level elements will take up the whole width and then start a new line
Is an HTML list a block element or an inline element?
block
What is the difference between an ordered list and an unordered list in HTML?
ordered has numbers while unordered will be bullet points
What HTML tag is used to link to another website?
anchor tag
What is an absolute URL?
an absolute URL is the full address of the path to a specific page