HTML Flashcards
Where do you put non-visible content about the HTML document?
You put in the under the DOCTYPE Dec and before the opening body tag
(ie: this is where the meta data head and title are)
Where do you put visible content about the HTML document?
You put this between the opening body tag closing body tag
Where do the head and body tags go in a valid HTML document?
between html tags
What is the purpose of a !DOCTYPE declaration?
Is an instruction to the web browser about what version of HTML the page is written in. Helps browsers keep the page similar.
Give five examples of HTML element tags.
h1 p h2 span div img
What is the purpose of HTML attributes?
provide additional information about the contents of an element. Name = “value”
Give an example of an HTML entity (escape character).
© is the copywrite Html entity
How do block-level elements affect the document flow?
They will appear on a new line below the last one
How do inline elements affect the document flow?
Continue on the same line as their neighboring elements
What are the default width and height of a block-level element?
occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents, thereby creating a “block”.
What are the default width and height of an inline element?
Space bounded by the tags defining the element.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are lists where each item in the list is numbered. Are lists that begin with bullet points.
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?
the a anchor tag
What is an absolute URL?
It is a url that is to be posted to another website