HTML Flashcards
Where do you put non-visible content about the HTML document?
in between the head tags
Where do you put visible content about the HTML document?
in between the body tags
Where do the head and body tags go in a valid HTML document?
in between the html tags
What is the purpose of a !DOCTYPE declaration?
an instruction to the web browser about what version of HTML the page is written in
Give five examples of HTML element types
p, h1, div, span, img
What is the purpose of HTML attributes?
additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want
Give an example of an HTML entity (escape character).
& c ; (copy)
How do block-level elements affect the document flow?
they force the following elements to the next line.
How do inline elements affect the document flow?
they share space on the same line as their neighboring elements if possible.
What are the default width and height of a block-level element?
default width: 100%
default height: auto
What are the default width and height of an inline element?
default width: auto
default height: auto
What is the difference between an ordered list and an unordered list in HTML?
unordered list: has bullet points/ does not have numbers listing the items on the list
ordered list: has numbers representing each item on the list
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
a href = “ “ (anchor tag / element)
What is an absolute URL?
An absolute URL is the full URL, including protocol ( http / https )