HTML Flashcards
[HTML Skeleton]
Where do you put non-visible content about the HTML document?
Inside the head tags
[HTML Skeleton]
Where do you put visible content about the HTML document?
Inside the body tags.
[HTML Skeleton]
Where do theheadandbodytags go in a valid HTML document?
Inside the html tags.
[HTML Skeleton]
What is the purpose of aDOCTYPEdeclaration?
To declare the type of document to a browser
[HTML Syntax]
Give five examples of HTML element types.
h1, div, p, title, input, ul, li, span
[HTML Syntax]
What is the purpose of HTML attributes?
gives further description / details about an element
[HTML Syntax]
Give an example of an HTML entity (escape character).
copyright symbol = ampersand copy semicolon
[HTML Block and Inline]
How do block-level elements affect the document flow?
The block-level element will begin on a new line and will take up the whole width of the container, not allowing for other elements to be placed beside it.
[HTML Block and Inline]
How do inline elements affect the document flow?
The inline element will not begin in a new line (if possible) and will only take up the necessary width for it’s content allowing for other elements to be placed beside it if space is available.
[HTML Block and Inline]
What are the default width and height of a block-level element?
width: 100%;
height: auto;
[HTML Block and Inline]
What are the default width and height of an inline element?
width: auto;
height: auto;
(width and height of the content)
[HTML Lists]
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists uses numbers or letters for each list item.
Unordered lists uses the same symbol for each list item.
[HTML Lists]
Is an HTML list a block element or an inline element?
Block-level element
[HTML Links]
What HTML tag is used to link to another website?
An anchor tag with an href attribute and a link or URL as a value
Between the div and p elements, which one is preferable for text?
p elements