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 tags go in a valid HTML document?
Html element
What is the purpose of a declaration?
Tells the webpage the type of document they will be working with, typically html
Give five examples of HTML element types.
html, body, head, h1, h2, h3, h4, h5, h6, p, br
What is the purpose of HTML attributes?
Gives more direction and information on what and where the attribute will go on the webpage
Give an example of an HTML entity (escape character).
© (copyright), ® (registered trademark)
How do block-level elements affect the document flow?
They start on a new line and take up the whole length of the block. They do not allow anything on their sides. Anything left gets pushed up and anything right gets pushed down.
How do inline elements affect the document flow?
They only affect the text content that is contained within the element
General <span> used if you want text content in the same element.
</span>
What is the default width and height of a block-level element?
Same as the full width of its parent container. Height is dictated by the content.
What is the default width and height of an inline element?
The width and height are dependent on its content.
What is the difference between an ordered list and an unordered list in HTML?
Ordered list is numbered, starting from 1. Unordered lists are just listed with 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?
Anchor<a> tag element with href attribute </a>
What is an absolute URL?
The URL is a full web address that’ll link to a different website.