LFZ Flashcards
(196 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 and tags go in a valid HTML document?
inside the html element
What is the purpose of a declaration?
to tell a browser which version of HTML the page is using
Give five examples of HTML element types.
html, head, title, body, h1, h2, h3, h4, h5, h6, p, div, span, a
What is the purpose of HTML attributes?
Attributes provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
Less-than sign - & lt; Greater-than sign - & gt; Ampersand - & amp; Quotation mark - & quot; Cent-sign - & cent; Pound sign - & pound; Yen sign - & yen; Euro sign - & euro; Copyright symbol - & copy; Registered trademark - & reg; Trademark - & trade; Left single quote - & lsquo; Right single quote - & rsquo; Left double quotes - & ldquo; Right double quotes - & rdquo; Multiplication sign - & times; Division sign - & divide;
How do block-level elements affect the document flow?
A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).
How do inline elements affect the document flow?
An inline element does not start on a new line and only takes up as much width as necessary.
What are the default width and height of a block-level element?
The default height of a block-level element is the height of the content.
The default width of a block-level element is the length of the page.
What are the default width and height of an inline element?
The height of an inline element is the height of the content.
The width of an inline element is the width of the content.
What is the difference between an ordered list and an unordered list in HTML?
Ordered list displays numbered list. Unordered list displays bullet point list.
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
<a> (anchor element)</a>
What is an absolute URL?
the full web address for the site
What is a relative URL?
link to other pages within the same site
How do you indicate the relative link to a parent directory?
Use ../ to indicate the folder above the current one, then follow it with the file name.
How do you indicate the relative link to a child directory?
For a child folder, use the name of the child folder, followed by a forward slash, then the file name.
How do you indicate the relative link to a grand parent directory?
Repeat the ../ to indicate that you want to go up two folders (rather than one), then follow it with the file name.
How do you indicate the relative link to the same directory?
To link to a file in the same folder, just use the file name. (Nothing else is needed.)
What is the purpose of an HTML form element?
An HTML form is used to collect user input.
Give five examples of form control elements.
input label select textarea button fieldset legend datalist output option optgroup
Give three examples of type attribute values for HTML input elements.
text, password, radio, checkbox, file, submit, image, hidden
Is an HTML element a block element or an inline element?
inline element