HTML Flashcards
Where do you put non-visible content about the HTML document?
Between the Head element tag eg head non-visible content /head
Where do you put visible content about the HTML document?
Between the Body element tag eg body visible content /body
Where do the and tags go in a valid HTML document?
Between the Html element tag
tag should be above tag and must be close before opening tag
What is the purpose of a declaration?
declaration defines what version of HTML the page is written in.
Give five examples of HTML element tags.
div, h1, a, p & img
What is the purpose of HTML attributes?
to provide additional information about the element
Give an example of an HTML entity (escape character).
©
®
<
&rt;
How do block-level elements affect the document flow?
Anything after the block-level element is added to new line
How do inline elements affect the document flow?
Anything after the inline element is added to same line
What are the default width and height of a block-level element?
width 100% and height auto
What are the default width and height of an inline element?
width auto and heigh auto
What is the difference between an ordered list and an unordered list in HTML?
Ordered list Used to create a list in a specific order.
Unordered list Used to create a list in no particular order.
Is an HTML list a block element or an inline element?
HTML list a block element
What HTML tag is used to link to another website?
Anchor tag is used to link another webpage
eg “<a>text content </a>
What is an absolute URL?
Contains all the information including domain name