Study Cards Flashcards
(321 cards)
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?
To instruct the web browser what document type to expect.
What is the purpose of HTML attributes?
To provide additional information about the contents of an element.
How do block-level elements affect the document flow?
Always appear on a new line, and take up the entire horizontal space of their parent element.
How do inline elements affect the document flow?
Continue on the same line as neighboring elements.
What are the default width and height of a block-level element?
Width: Entire horizontal space of its parent element.
Height: Height of its contents.
What are the default width and height of an inline element?
The width and height of its contents.
What is the difference between an ordered list and an unordered list in HTML?
Ordered list items are numbered, unordered list items are not.
Is an HTML list a block element or an inline element?
Block.
What HTML tag is used to link to another website?
a tag
What is an absolute URL?
The full web address.
What is a relative URL?
A shorthand link address for a page within the same site.
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
The name of the directory.
How do you indicate the relative link to a grand parent directory?
../../
How do you indicate the link to the same directory?
Simply use the name of the target file.
What is the purpose of an HTML form element?
To allow users to submit data.
Give five examples of form control elements.
buttons, checkboxes, radio buttons, text input, select lists
Give three examples of type attributes for HTML < input > elements.
text, email, password, radio, checkbox, submit
Is an HTML < input > element a block or inline element?
inline
What are the six primary HTML elements for creating tables?
< table >, < thead >, < tbody >, < tr >, < th >, < td >
What purpose do the thead and tbody elements serve?
Differentiate between the headers and the general table data.