HTML Flashcards
Where do you put non-visible content about the HTML document?
Inside the head element
Where do you put visible content about the HTML document?
Inside the body element
Where do the head and body tags go in a valid HTML document?
Inside the html element
What is the purpose of the !DOCTYPE declaration?
To tell the browser which version of HTML to use
Five examples of HTML element tags
html, head, body, p, div
What is the purpose of HTML attributes?
Gives you more information about the content of that element
Give an example of an HTML entity (escape character)
Copyright symbol, Registered Trademark, & (ampersand), < > (less/greater than)
How do block-level elements affect the document flow?
They start a new line
How do inline elements affect the document flow?
They continue on the same line
What are the default width and height of a block-level element?
Width is 100% of the page, height is automatic
What are the default width and height of an inline element?
Width and height are both auto (content width and content height)
What is the difference between an ordered list and an unordered list in HTML?
Ordered list items are numbered, unordered list items are bulleted
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
a element tag
What is an absolute URL?
URL that points to the direct location on the web (with a domain name)