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 and/or in the title element
Where do the head and body tags go in a valid HTML document?
head goes first and then the body . They will be in between the opening and closing tags in the html element.
What is the purpose of a declaration?
It tells the web browser which version of html document is going to be written in
Give five examples of HTML element types.
html, head, title, body, p, span, etc…
What is the purpose of HTML attributes?
They provide additional information and functionality about the contents of an element
Give an example of an HTML entity (escape character).
ampersand copy;
ampersand trade;
How do block-level elements affect the document flow?
They take up the horizontal and vertical space of its content
How do inline elements affect the document flow?
They only occupy the space bounded by the tags that are defining the element.
What are the default width and height of a block-level element?
Width is the horizontal space of the parent element.
Height is however much the content is contained in
What are the default width and height of an inline element?
The space bounded by the tags defining the element.
What is the difference between an ordered list and an unordered list in HTML?
Ordered list would be a numbered list <ol>
Unordered list would be a list with bullet points </ol><ul></ul>
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
Anchor href tag
<a></a>
** target=”_blank” would open up a new tab **
What is an absolute URL?
Its the direct URL to a specific website