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 < body > and < head > tags go in a valid HTML document?
html element
What is the purpose of a declaration?
instruction to the web browser about what version of HTML the page is written in
Give five examples of HTML element tags.
html,head,body,h1,p
What is the purpose of HTML attributes?
provide additional information about HTML elements
Give an example of an HTML entity (escape character)
& / ®
How do block-level elements affect the document flow?
occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents,
How do inline elements affect the document flow?
only occupy the space bounded by the tags defining the element
What are the default width and height of a block-level element?
100%
What is the difference between an ordered list and an unordered list in HTML?
orders = numbers unordered = bullet points
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
a tag
What is an Absolute URL?
on a complete diff website.
What is a Relative URL?
will not change into new domain. opens internally
git push –set-upstream origin html-relative-links
.. /
How do you indicate the relative link to a child directory?
state folder name directly /
How do you indicate the relative link to a grand parent directory?
../ ../
How do you indicate the relative link to the same directory?
name of file or ./
What is the purpose of an HTML form element?
collect data from user
Give five examples of form control elements.
button, select, textarea, input, option
Give three examples of type attributes for HTML < input > elements.
hidden, radio, checkbox
Is an HTML < input > element a block element or an inline element?
inline
What are the six primary HTML elements for creating tables?
thead,tbody,trow,telement,table,