HTML Flashcards
Where do you put non-visible content about the HTML document?
Between the head element tags.
Where do you put visible content about the HTML document?
Between the body element tags.
Where do the head and body tags go in a valid HTML document?
Between the html tags, with the head tags coming first and the body tags after.
What is the purpose of a DOCTYPE! declaration?
Tells the browser what type.of document it is reading.
What is the purpose of HTML attributes?
Attributes give more information about the content of the element.
Give five examples of HTML element tags.
Give an example of an HTML entity (escape character).
h1, ul, p, em, li
& amp; - ampersand
How do block-level elements affect the document flow?
What are the default width and height of a block-level element?
Block-level elements start on new lines. Default width is 100% and height is auto.
How do inline elements affect the document flow?
What are the default width and height of an inline element?
Inline elements stay in the same line, do not start a new line. Default width and height is auto.
What is the difference between an ordered list and an unordered list in HTML?
Ordered list items are numbered while unordered list items are bulleted.
Is an HTML list a block element or an inline element?
List items are block elements.
What HTML tag is used to link to another website?
The anchor tag.
What is an absolute URL?
A full URL link to a web page including the domain name.
What is a relative URL?
A relative URL is a link to other pages on the same site.
How do you indicate the relative link to a parent directory?
How do you indicate the relative link to a grand parent directory?
../ - link to a parent directory
../../ - link to grand parent directory
How do you indicate the relative link to a child directory?
child-directory/target-file