HTML 1 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 element
Where do the < head > and < body > tags go in a valid HTML document?
in the html element
What is the purpose of a < !DOCTYPE > declaration?
says that the document type is HTML5
What is the purpose of HTML attributes?
to provide additional information about elements
How do block-level elements affect the document flow?
They have a new line and take up full width
How do inline elements affect the document flow?
They take up only as much space as their element needs
What are the default width and height of a block-level element?
100% for width, height depends on element needs
What are the default width and height of an inline element?
As much height and width as is needed for the element
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are ordered by number. Unordered lists just have 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?
anchor tag
What is an absolute URL?
An entire web address
What is a relative URL?
The path following the domain, referring to a resource at the same root domain.
How do you indicate the relative link to a parent directory?
../
dot dot forward slash
How do you indicate the relative link to a child directory?
child folder name, forward slash, followed by filename
How do you indicate the relative link to a grand parent directory?
../../
dot dot forward slash followed by dot dot forward slash
How do you indicate the relative link to the same directory?
filename only
What is the purpose of an HTML form element?
HTML form element encloses the form and is a document section for submitting information
Is an HTML < input > element a block element or an inline element?
Inline element
What are the six primary HTML elements for creating tables?
table, tr, thead, th, td, tbody
What purpose do the thead and tbody elements serve?
to encapsulate < th > and < tr > elements