HTML Flashcards
What is the purpose of a declaration?
Tell the browser which version is using.
Where do you put non-visible content about the HTML document?
In the head element.
Where do the head and body tags go in a valid HTML document?
Inside the html element.
Give five examples of HTML element types.
p, h1, div, br, span
What is the purpose of HTML attributes?
Provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
Ampersand (&): &
How do block-level elements affect the document flow?
It always appear to start on a new line.
How do inline elements affect the document flow?
Does not break the flow of the content. Only takes the up as much width as neccesary.
What is the difference between an ordered list and an unordered list in HTML?
Ordered list is numbered and unordered list begin with a bullet point.
Is an HTML list a block element or an inline element?
Block element.
What HTML tag is used to link to another website?
anchor element
What is an absolute URL?
Contains all the information necessary to locate a resource.
What is a relative URL?
Locates a resource using an absolute URL as a starting point.
How do you indicate the relative link to a parent directory?
Using (../) followed by the file name.
How do you indicate the relative link to a child directory?
Use the name of the child folder followed by a forward slash, then the file name.