HTML Flashcards
Where do you put non-visible content about the HTML document?
Non-visible content goes in the head element.
Where do you put visible content about the HTML document?
visible content goes within the body of of the document.
Where do the head and body tags go in a valid HTML document?
The head and body element are children of the html element.
What is the purpose of a declaration?
The purpose of a declaration is to show the user what type of document you are using.
Give five examples of HTML element types.
Head, body, title, html, p.
What is the purpose of HTML attributes?
The purpose of html attributes are to adjust the display and behavior of an html element.
Give an example of an HTML entity (escape character).
An example of a html entity is the ampersand copy ©
ampersand reg ®
How do block-level elements affect the document flow?
Block level element start a new line and take up as much space as needed horizontally.
How do inline elements affect the document flow?
Inline element only take up the space that they need (size of element).
What are the default width and height of a block-level element?
The default height and width of a block-level element are
height: auto
width: 100%
What are the default width and height of an inline element?
The default width and height of an inline is that it only takes up the space necessary.
height: auto
width: auto
What is the difference between an ordered list and an unordered list in HTML?
An unordered list is with bullet points and an Ordered list is numbered.
Is an HTML list a block element or an inline element?
HTML list is a block element.
How do you indicate the relative link to a parent directory?
../ then directory
How do you indicate the relative link to a child directory?
name of the child folder followed by a forward slash then the file name