HTML Flashcards
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?
between opening tag of html element and closing tag of html element
What is the purpose of a DOCTYPE declaration?
to tell which browser version of HTML the page is using
Give five examples of HTML element tags.
head element, title element, body element, h1 element, paragraph element,
What is the purpose of HTML attributes?
gives extra info about the element
Give an example of an HTML entity (escape character).
copyright symbol & registered trademark
How do block-level elements affect the document flow?
Elements will appear to start on a new line
How do inline elements affect the document flow?
Elements will always appear to continue on the same line as their 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?
an ordered list is where each item in the list is numbered and an unordered list is where each item in the list begins with a bullet point
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
anchor element
What is an absolute URL?
entire URL includes domain name of website
What is a relative URL?
navigation within the same domain
How do you indicate the relative link to a parent directory?
use ../
How do you indicate the relative link to a child directory?
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?
use ../../
How do you indicate the relative link to the same directory?
just use the file name
What is the purpose of an HTML form element?
represents a document section containing interactive controls for submitting information
Give five examples of form control elements
password input text input radio buttons submit button checkboxes
Give three examples of type attributes for HTML elements.
text
email
submit
Is an HTML input element a block element or an inline element?
inline