HTML Flashcards
Where do you put non-visible content about the HTML document?
head element
Where do you put visible content about the HTML document?
body element
Where do the head and body tags go in a valid HTML document?
head goes at the top, body goes after head
What is the purpose of a !DOCTYPE declaration?
!DOCTYPE tells the browser which version of HTML the page is using
Give 5 Examples of HTML element tags
p body head h1 title
What is the purpose of HTML attributes?
they provide additional info about the contents of an element
Give an example of an HTML entity (escape character).
copyright: ©
registered: ®
ampersand: &
needs to end with a semicolon
How do block-level elements affect the document flow?
Will always appear on a new line
Take the entire width
How do inline elements affect the document flow?
Will always appear to continue the same line
Only take as much space as they need to
What are the default width and height of a block-level element?
width is 100% (the full width)
height is equal to the height of its contents
What are the default width and height of an inline element?
only takes up as much width as necessary
inherits the height from content that surrounds
What is the difference between an ordered list and an unordered list in HTML?
ordered lists show as numbers
unordered lists show as bullet points
Is an HTML list a block element or an inline element?
Block element
What HTML Tag is used to link to another Website?
a
the anchor tag
What is an absolute URL?
starts with the domain name for that site and can be followed by the path to a specific page