HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head
Where do you put visible content about the HTML document?
In the body
Where do the and tags go in a valid HTML document?
Head goes after opening html tag and Body goes after closing head tag.
What is the purpose of a declaration?
To let the browser know which version of HTML is being used.
Give five examples of HTML element tags.
H1, P, Span, Div, Body
What is the purpose of HTML attributes?
To give additional information about the contents of an element.
Give an example of an HTML entity (escape character).
©
How do block-level elements affect the document flow?
Block level elements occupy the entire horizontal space of its parent element.
How do inline elements affect the document flow?
The only occupy the space bounded by the tags containing the element, not breaking the document flow.
What are the default width and height of a block-level element?
Width 100% of its parent element and height is auto (height containing the content)
What are the default width and height of an inline element?
Width auto Height auto
What is the difference between an ordered list and an unordered list in HTML?
Ordered list is numbered and unordered list has bullet points.
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
anchor tag
What is an absolute URL?
A full web adress.
What is a relative URL?
Link to other pages within the same site.
How do you indicate the relative link to a parent directory?
../filename
How do you indicate the relative link to a child directory?
child directory name / file name
How do you indicate the relative link to a grand parent directory?
../../ file name
How do you indicate the relative link to the same directory?
file name.
What is the purpose of an HTML form element?
Boundaries of where user will be inputting data.
Give five examples of form control elements.
input, buttons, select, option, text area.
Give three examples of type attributes for HTML elements.
text, radio, checkbox, file, submit,
Is an HTML element a block element or an inline element?
Inline