HTML Flashcards
Where do you put non-visible content about the HTML document?
(html-skeleton)
Within the Head tag.
Where do you put visible content about the HTML document?
html-skeleton
Within the Body tag.
Where do the head and body tags go in a valid HTML document?
html-skeleton
Within the HTML tag.
What is the purpose of a declaration?
html-skeleton
It declares that the rest of the document will be in HTML.
Give five examples of HTML element tags.
html-syntax
Div, Html, Body, Script, Head, Title.
What is the purpose of HTML attributes?
html-syntax
They provide more information about the elements; Like grouping them.
How do block-level elements affect the document flow?
html-block-and-inline
They take up all the space between the tags.
How do inline elements affect the document flow?
html-block-and-inline
They only take up as much space as needed between the tags.
What are the default width and height of a block-level element?
(html-block-and-inline)
Both are auto.
What are the default width and height of an inline element?
html-block-and-inline
Both are auto.
What is the difference between an ordered list and an unordered list in HTML?
(html-lists)
Ordered: The text-content is numbered
Unordered: The text-content isn’t numbered
What is the difference between an ordered list and an unordered list in HTML?
(html-lists)
Ordered: The text-content is numbered
Unordered: The text-content isn’t numbered.
Is an HTML list a block element or an inline element?
html-lists
Block element.
What HTML tag is used to link to another website?
html-links
Anchor tag (a).
What is an absolute URL?
html-links
a URL that typically links to a different webpage.
What is a relative URL?
html-links
A URL that links to other areas of your webpage.
How do you indicate the relative link to a parent directory?
html-relative-links
You use “../” to go back one directory.
How do you indicate the relative link to a child directory?
html-relative-links
You use current link’s name/link’s name
How do you indicate the relative link to the same directory?
html-relative-links
You use the file’s name.
How do you indicate the relative link to the same directory?
html-relative-links
You use the file’s name or a ‘./’
What is the purpose of an HTML form element?
html-forms
To say the code between the elements will be a form
Give five examples of form control elements.
html-forms
input, label, textarea, button, option, select.
Give three examples of type attributes for HTML form elements.
(html-forms)
Email, button, url, password, text, file.
Is an HTML input element a block element or an inline element?
(html-forms)
Inline.