HTML Flashcards
Where do you put non-visible content about the HTML document?
Head element
Where do you put visible content about the HTML document?
Body element
Where do the and tags go in a valid HTML document?
Within the HTML element
What is the purpose of a declaration?
To tell the web browser about what version of HTML the page is written in
Give five examples of HTML element types
HTML, Head, Body, Meta, Img
What is the purpose of HTML attributes?
Provides additional information about the element
Give an example of an HTML entity (escape character)
© = copyright sign
How do block-level elements affect the document flow?
Block-level elements always start on a new line and takes up the full width available
How do inline elements affect the document flow?
Inline elements do not start on a new line and only take up as much width as necessary
What are the default width and height of a block-level element?
Width is 100% of the page, and height is of the content
What are the default width and height of an inline element?
0, 0
What is the difference between an ordered list and an unordered list in HTML?
Ordered list numbers the lists in order and unordered list is in bullet point format
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
<a></a>
What is an absolute URL?
Full URL of the web page that you link to
What is a relative URL?
Location following the domain
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
directory name
How do you indicate the relative link to a grand parent directory?
../../
How do you indicate the relative link to the same directory?
just the name of the file
What is the purpose of an HTML element?
Serves as a boundary for form controls
Give give examples of form control elements
inout, button, textarea, select, option
Give three examples of type attribute values for HTML elements.
text, password, submit
Is an HTML element a block element or an inline element?
inline