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?
inside html element
What is the purpose of a !DOCTYPE declaration?
It lets the web browser know what version of HTML it is running
Give five examples of HTML element tags.
- head
- body
- p
- img
- html
What is the purpose of HTML attributes?
HTML attributes provide additional information about the contents of an element
Give an example of an HTML entity (escape character).
© - copyright
How do block-level elements affect the document flow?
They are structural markups that always starts on a new line. Any content on the left or right side gets pushed up or down
How do inline elements affect the document flow?
inline elements do not force a new line to begin in the document flow
What are the default width and height of a block-level element?
The height is dictated by the content and the width takes up 100% of is parent container
What are the default width and height of an inline element?
Width and height are dictated by its content
What is the difference between an ordered list and an unordered list in HTML?
ordered list: numbered
unordered list: 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?
An <a> (anchor) tag with attribute href=”(website URL)”</a>
What is an absolute URL?
The full web address of the page that you want to link to