HTML Flashcards
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 theheadandbodytags go in a valid HTML document?
between the html tags
What is the purpose of adeclaration?
declare to the web browser the type of HTML that’s being used
Give five examples of HTML element types.
h1, p, img, a, span
What is the purpose of HTML attributes?
additional values that configure the elements or adjust their behavior
Give an example of an HTML entity (escape character).
& = ampersand © = copyright symbol ® = registered trademark symbol
How do block-level elements affect the document flow?
block-level elements always appear on a new line
How do inline elements affect the document flow?
inline elements continue on the same line as neighboring elements
What are the default width and height of a block-level element?
width = 100%, height = auto
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 lists use numbers, unordered lists use bullets
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 <a></a>
What is an absolute URL?
the full web address for the site
What is a relative URL?
URL that only includes the path
How do you indicate the relative link to a parent directory?
../filename
How do you indicate the relative link to a child directory?
child folder/filename
How do you indicate the relative link to a grand parent directory?
../../filename
How do you indicate the relative link to the same directory?
filename
What is the purpose of an HTMLformelement?
group all form control elements, collect user input
Give five examples of form control elements.
text input, password input, text area, checkbox, radio button
Give three examples oftypeattribute values for HTMLinput elements.
text, radio, checkbox
Is an HTML inputelement a block element or an inline element?
inline