HTML Flashcards
(199 cards)
Where do you put non-visible content about the HTML document?
Head
Where do you put visible content about the HTML document?
Body
Where do the and tags go in a valid HTML document?
between closing and opening html tag element
What is the purpose of a declaration?
let us know that this is an html document
give 5 examples of html element tags
head tag, body tag, p tag, h1 tag, title tag
What is the purpose of HTML attributes?
provide more information for the html element.
Give an example of an HTML entity (escape character).
® = registered trademark
How do block-level elements affect the document flow?
block starts on new line and takes up the whole width.
How do inline elements affect the document flow?
inline continues and takes as much space as needed.
What are the default width and height of a block-level element?
100% width and the height is based on the html element content.
What are the default width and height of an inline element?
width is based on content as well as height
What is the difference between an ordered list and an unordered list in HTML?
ordered list are numbers and unordered are bullets
Is an HTML list a block element or an inline element?
block
How do you indicate the relative link to a parent directory?
../ to indicate the folder above the currentone, then follow it with the file name.
How do you indicate the relative link to a child directory?
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?
../../ indicate that you want to go up two folders rather than one follow it up with the file name.
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?
To collect information from visitors using different types of form control.
Give five examples of form control elements.
Text input, radio, button, password input, text area,
Checkboxes, drop down boxes, submit buttons.
Give three examples of type attributes for HTML elements.
button, radio
Is an HTML element a block element or an inline element?
INLINE
name 3 different types of values you can use to specify colors in css.
HEX, NAME AND RGB.
what are the names of the individual pieces of a CSS rule?
CSS RULE SET:
SELECTOR {DECLARATION BLOCK
PROPERTY AND VALUE}
In CSS how do you select elements by their class attribute?
using a period followed by the name