HTML Flashcards
(212 cards)
Where do you put non-visible content about the HTML document?
head
Where do you put visible content about the HTML document?
body
Where do the head and body tags go in a valid HTML document?
html
What is the purpose of a declaration?
The declaration tells the web browser what html version the document is written in.
Give 5 examples of HTML element tags.
- head
- body
- img
- div
- p
What is the purpose of HTML attributes?
to give each element its own additional/unique information
Give an example of an HTML entity (escape character)
copyright, trademark
How do block-level elements affect the document flow?
block-level elements take up the whole line
How do inline elements affect the document flow?
inline elements only take up space they only need
What are the default width and height of a block-level element?
width is 100% of the viewport and height is the height of the content
What are the default width and height of an inline element?
width is width of the content and height is also the height of the content
What is the difference between an ordered list and an unordered list in HTML?
ordered lists with numbers while unordered lists with dots
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?
points to an external application / location
What is a relative URL?
relative URLs’ path generally refers to a resource on the same machine as the current document.
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
/
How do you indicate the relative link to a grand parent directory?
../../
How do you indicate the relative link to the same directory?
the file name
What is the purpose of an HTML form element?
it represents a document section containing interactive controls for submitting information
Give 5 examples of form control elements.
input, label, select, button, textarea
Give 3 examples of type attributes for HTML input elements
text, radio, checkbox
Is an HTML input element a block element or an inline element?
inline