Module 1 Flashcards
Give five examples of HTML element tags.
<p>, <img></img>, </p>
,<span> ,</span>, h1, h2
What is the purpose of HTML attributes?
allow you to add functionality to an HTML element
Give an example of an HTML entity (escape character).
Copyright symbol (©)
Where do you put visible content about the HTML document?
inside of the body element
Where do the body and head tags go in a valid HTML document?
inside of the main html element
Where do you put non-visible content about the HTML document?
head element
What is the purpose of the DOCTYPE element
to declare the version of HTML that the webpage uses
How do block-level elements affect the document flow?
they are shown on a new line; can add individual CSS styling using CLASS or ID attributes
How do inline elements affect the document flow?
are shown on the same line as elements before or after; can add CSS styling
What are the default width and height of a block-level element?
width: 100% of the parent element
height: height of content
What are the default width and height of an inline element?
only take as much space as needed (even if you set height and width attributes)
What is the difference between an ordered list and an unordered list in HTML?
ordered lists = numbered
unordered = bullet points
Is an HTML list a block element or an inline element?
block
What HTML tag is used to link to another website?
anchor (a) tag (usually w/ href attribute)
What is an absolute URL?
URL that referneces a different website
What is a relative URL?
URL of another page of same website
How do you indicate the relative link to a parent directory?
two dots and a forward-slash (../)
How do you indicate the relative link to a child directory?
a forward-slash and the name of the directory (/__CHILD NAME__)
How do you indicate the relative link to a grand parent directory?
two dots, back-slash, two dots, forward-slash (../../_file name__)
How do you indicate the relative link to the same directory?
just the file name or a dot and forward-slash (./)
What is the purpose of an HTML form element?
to allow the user to enter data and the webpage to collect that data
Give five examples of form control elements.
text, textarea, radio buttons, checkbox, select (dropdown list), submit button, file upload
Give three examples of “type” attributes for HTML input elements
“radio” (radio buttons), “text” (simple text), “submit” (submit button), “checkbox” (check box), “file” (upload a file), “hidden” (adds functionality to other element w/out alerting user), “password”, “email”
Is an HTML input element a block element or an inline element?
inline