HTML Flashcards
Where do you put non-visible content about the HTML document?
head
Where do you put visible content about the HTML document?
body
Where do the head tags go in a valid HTML document?
head tag occurs after html tag and before the body tag
What is the purpose of a doctype declaration?
tells browser that itβs an html document π
Give five examples of HTML element tags.
html, head, title, body, div, p, h1-h6, span
What is the purpose of HTML attributes?
provide additional info about contents of the element. comprised of a name and value
Give an example of an HTML entity (escape character).
& copy; = copyright
& lsquo; = β
& rsquo; = β
& divide; = division sign
How do block-level elements affect the document flow?
block elements start on a new line and take all the space as the parent container
How do inline elements affect the document flow?
inline elements do NOT start on a new line and only take up as much space as necessary
What are the default width and height of a block-level element?
default width is 100% of the viewport, height is auto
What are the default width and height of an inline element?
cannot be resized, default is auto. width is size of the content
What HTML tag is used to link to another website?
anchor tag (a)
What is an absolute URL?
linking to a different website (full web address)
What is a relative URL?
linking pages within the same site
How do you indicate the relative link to a parent directory?
../file name