HTML Flashcards
Where do you put non-visible content about the HTML document?
Inside the title tags
Where do you put visible content about the HTML document?
Inside the body tags
Where do the and tags go in a valid HTML document?
Inside the HTML tag
What is the purpose of a declaration?
to inform a website visitor’s browser that the document being rendered is an HTML document
Give five examples of HTML element tags.
anchor tag: <a> image tag: <img> body tag: title tag: h1 tag: <h1></h1></a>
What is the purpose of HTML attributes?
Modify/enhance tags
Give an example of an HTML entity (escape character).
< : <
How do block-level elements affect the document flow?
A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).
How do inline elements affect the document flow?
An inline element does not start on a new line and only takes up as much width as necessary.
What is the difference between an ordered list and an unordered list in HTML?
Ordered: has numbers
Unordered: no numbers
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
Anchor tags: <a></a>
What is an absolute URL?
A URL to a different page, the exact URL address
What is a relative URL?
A URL on the same site, usually just redirects to the folder directory
How do you indicate the relative link to a parent directory?
../parentName.html