HTML Flashcards
Give 5 examples of html element types
H1
P
H2
Span
Section
Ul
Ol
What is the purpose of html attributes?
to tell us more about the content of that element
Give an example of an html entity
€ euro € €
© copyright © ©
® registered trademark ® ®
How do block-level elements affect the document flow?
Always take up a new line. Takes up the full width of the containing block.
How do inline elements affect the document flow?
they do not force a new line to begin a document flow
Where do you put non-visible content about the HTML document?
in the header
Where do you put visible content about the HTML document?
in the body
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?
It is an “information” to the browser about what document type to expect
What are the default width and height of a block-level element?
100% wide and takes height of its inner content
What are the default width and height of an inline element?
Both are the size of the content ;only occupy 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 is numbered while unordered is bulletin
Is an HTML list a block element or an inline element?
Block
They’ll be vertical not horizontal
What HTML tag is used to link to another website?
a; anchor tag
What is an absolute URL?
Https; protocol
An absolute URL starts with
the domain name for that site, and can be followed by the path to a specific page. If no page is specified, the site will display the homepage.