HTML Flashcards
Where do you put non-visible content about the HTML Document?
In the Head element
Where do you put visible content about the HTML Document?
In the body
Where do Head and Body tags go in a valid HTML document?
between the HTML tags
What is the purpose of a doctype declaration
Tell a browser which version of HTML the page is using
5 examples of HTML element types
html, body, head, h1, p1, span
What is the purpose of HTML attributes
provide additional information about elements
example of an html entity
ampersand
How do block-level elements affect the document flow?
They will always appear on a new line, fill the entire space
How do inline-level elements affect the document flow?
They continue to appear on the same line as their neighboring elements
What are the default width and height of a block-level element?
width of the page
height: auto
What are the default width and height of an inline element?
height and width are auto
Is an HTML list a block element or an inline element?
block element, starts on new line, takes up width
How do you indicate the relative link to a parent directory?
use ../ followed by the file name eg: ../index.html
How do you indicate the relative link to a child directory?
name of the child folder, followed by a / then the file name eg: href= “music/listings.html”
How do you indicate the relative link to a grand parent directory?
repeat ../ to indicate going up 2 folders then follow it with the file name. eg: href=”../../index.html”