HTML Flashcards
Where do you put non-visible content about the HTML document?
Non-visible content goes in the head element.
Where do you put visible content about the HTML document?
Visible content goes in the body element.
Where do the head and body tags go in a valid HTML document?
Head elements go inside the html element. The body tag follows the head tag.
What is the purpose of a doctype declaration?
The doctype declaration lets the browser know what version of HTML is being used.
Give five examples of HTML element tags.
a, p, h1-h6, span, div, img, button
What is the purpose of HTML attributes?
HTML attributes tells more about the content of that element. Attributes contain a name and a value (two parts separated by an equal sign)
Give an example of an HTML entity (escape character).
Copyright symbols, Registered trademark, trademark.
How do block-level elements affect the document flow?
Block level elements take up a new line every time.
How do inline elements affect the document flow?
Inline elements can share the same line as long as the other elements allow it.
What are the default width and height of a block-level element?
The default width is 100 percent. The default height is auto.
What are the default width and height of an inline element?
The default width and height is auto.
What is the difference between an ordered list and an unordered list in HTML?
Ordered list have numbers for each list item. Unordered list just use bullet points (can be changed to other types of points)
Is an HTML list a block element or an inline element?
HTML List (ul,ol,li) are all block elements.
What HTML tag is used to link to another website?
Html a tag is used to link to another website
What is an absolute URL?
Absolute URL are used to link to a different website.