HTML Flashcards
Where do you put non-visible content about the HTML document?
Non-visible content goes in head element
Where do you put visible content about the HTML document?
Visible content goes into the body element
Where do the head and body tags go in a valid HTML document?
in the HTML element
The head and body tags are children of the html element
What is the purpose of a !DOCTYPE declaration?
Tells the browser what version of HTML the page is using
Uses the most recent version
Give five examples of HTML element types
body, head, img, h1, span…
What is the purpose of HTML attributes?
Provide additional info about contents of an element
Give an example of an HTML entity (escape character).
® ALSO ™
Registered trademark
How do block-level elements affect the document flow?
Make text appear on a new line in browser window
How do inline elements affect the document flow?
Continue on the same line as other neighboring elements
What are the default width and height of a block-level element?
Entire horizontal space of its parent element (container)
Vertical space = the height of its contents - auto
What are the default width and height of an inline element?
Only occupy space bounded by the tags defining the element
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists - each item is numbered ol
Unordered- begins with bullet point ul
Is an HTML list a block element or an inline element?
block element
Starts a new line for the list
What HTML tag is used to link to another website?
a ;
will be taken to the page specified in the href attribute
What is an absolute URL?
Stands for Uniform Resource Locator
starts with
the domain name for that site, and can be followed by the path to a specific page