HTML Flashcards
(317 cards)
Where do you put non-visible content about the HTML document?
head element
Where do you put visible content about the HTML document?
body element
Where do the head and body tags go in a valid HTML document?
Within the html element
What is the purpose of a doctype declaration?
To let the browser know which version of HTML you are using.
Give five examples of HTML element tags.
head, title, body, h1, p
What is the purpose of HTML attributes?
To give more information about HTML elements
Give an example of an HTML entity (escape character).
® which is the registered trademark symbol
How do block-level elements affect the document flow?
They take up all the space and force neighboring elements to be moved to the next line
How do inline elements affect the document flow?
They allow elements to be right up against them and only take up as much space as they need
What are the default width and height of a block-level element?
height is auto and width is until the end of the page
What are the default width and height of an inline element?
width and height are determined by as much content as there is
What is the difference between an ordered list and an unordered list in HTML?
ordered lists are meaningful lists that are numbered. Unordered lists are bulleted lists where the order doesn’t matter
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 or <a></a>
What is an absolute URL?
A URL that links to an external website from your own
What is a relative URL?
A shorthand URL that links to another page or part of your website internally
How do you indicate the relative link to a parent directory?
../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?
../../
How do you indicate the relative link to the same directory?
file name
What is the purpose of an HTML form element?
To collect information from users
Give five examples of form control elements.
textinput, checkbox, submit buttons, file upload, select options
Give three examples of type attributes for HTML elements.
submit, text and radio
Is an HTML form element a block element or an inline element?
Inline