HTML Flashcards
Where do you put non-visible content about the HTML document?
In between the head opening and closing element tags
This will help describe the content of the web page
Where do you put the visible content about the HTML document?
In between the body opening and closing element tags
This will display in the web browser
Where do the head and body tags go in a valid HTML document?
In between the html opening and closing element tags
The html element tags will allow html code to be read by the browser
What is the purpose of a !DOCTYPE declaration?
This declaration tells the browser what html version is going to be used
Give five examples of HTML element types:
h1 h2 h3 p form span div button input
What is the purpose of HTML attributes?
Attributes provide additional information about, and adds functionality to, the contents of an element.
Give an example of an HTML entity (escape character):
Angled brackets < (& lt ;)
ampersand & (& amp ;)
These characters are reserved for HTML Code because these entities can be used as scripts
How do block-level elements affect the document flow?
It affects the document by starting on a new line and takes up the full width available
How do inline elements affect the document flow?
Inline elements do not affect the document flow
It only takes up as much space as the content inside of the inline element
What are the default width and height of a block-level element?
The height takes up as much space as the content inside of the block-level element
The width will use the full space available
What are the default width and height of an inline element?
The default width and height of an inline element is how much space the content inside of the inline element uses
What is the difference between an ordered list and an unordered list in HTML?
An ordered list will label li elements with order. Such as numbers, letters, or roman numerals.
An unordered list will label li elements without order. Such as bullet points, squares, or diamonds.
Is an HTML list a block element or an inline element?
A list is a block element
What HTML tag is used to link to another website?
An anchor tag is used with an href attribute with a value of an absolute URL
What is an absolute URL?
An absolute URL is a link to an outside resource
What is a relative URL?
A relative URL is a link to a webpage from the same website, from one file to another
A link to a local directory.
How do you indicate the relative link to a parent directory?
../link.file-type
How do you indicate the relative link to a child directory?
folder/link.file-type
How do you indicate the relative link to a grand parent directory?
../../link.file-type
How do you indicate the relative link to the same directory?
link.file-type
What is the purpose of an HTML form element?
Allows you to collect information from the user
Allows the user to interact with the webpage
Allows the user to perform other functions online
Give five examples of form control elements.
Label Input Textarea Select Option Button
Give three examples of type attribute values for HTML input elements.
text, radio, checkbox, submit, e-mail, number, password
Is an HTML input element a block element or an inline element?
Inline-block element, you can set the width