HTML Flashcards
Where do you put non-visible content about the HTML document?
head element
Where do the head and body tags go in a valid HTML document?
html element
What is the purpose of a !DOCTYPE declaration?
Tell browser what version of HTML the page is using.
Give five examples of HTML element tags.
head, body, html, p, h1, title, etc
What is the purpose of HTML attributes?
Provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
greater than sign, less than sign, &, “, ‘
How do block-level elements affect the document flow?
Start a new line in the browser window.
How do inline elements affect the document flow?
Continue on the same line as their neighbor elements.
What are the default width and height of a block-level element?
Takes up the full width available and as tall as the content.
What are the default width and height of an inline element?
Takes up only as much width as necessary and as tall as the content.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists uses numbers and unordered lists uses bullets.
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
<a> anchor element with the href attribute. </a>
What is an absolute URL?
When linking to a different website, href value is the full web address. (look for https:)
What is a relative URL?
When linking to another page within the same site, href value does not need to specify domain name in URL.