HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head element.
Where do you put visible content about the HTML document?
In the body element.
Where do the head andbodytags go in a valid HTML document?
In the html tag.
The content within the head tag will appear in the title bar at the top of the browser.
The content within the body tag will appear in the main browser window.
What is the purpose of a DOCTYPEdeclaration?
The DOCTYPE element declares which version of HTML the page is using.
Give five examples of HTML element tags.
<p>, </p>
<h1>-<h6>, <div>, <img></img>, <span></span></div></h6></h1>
What is the purpose of HTML attributes?
It provides additional information about the contents of an element.
Give an example of an HTML entity (escape character).
© < ®
How do block-level elements affect the document flow?
The block-level element takes up the entire horizontal space.
How do inline elements affect the document flow?
stay in the same line.
What are the default width and height of a block-level element?
The entire width of the parent element. The height of the content.
What are the default width and height of an inline element?
It takes as much as space it needed.
What is the difference between an ordered list and an unordered list in HTML?
The ordered list is the items in the list are numbered.
The unordered list is the items that begin with a bullet point.
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
a tag
What is an absolute URL?
The href attribute is full web address.