HTML Flashcards
(351 cards)
Where do you put non-visible content about the HTML document?
In the Head tag
Where do you put visible content about the HTML document?
Body tag
Where do the and tags go in a valid HTML document?
Inbetween and
What is the purpose of a declaration?
State the kind of document it is
Give five examples of HTML element tags.
h1 p br body h2
What is the purpose of HTML attributes?
To define actions and parameters with in the elements.
Give an example of an HTML entity (escape character).
& is used to create an ampersand.
How do block-level elements affect the document flow?
Create sections for different content vertically
How do inline elements affect the document flow?
Create sections for different content horizontally
What are the default width and height of a block-level element?
Default width is the view port. Default height is bound by the above and below block.
What are the default width and height of an inline element?
Width is bound my the neighboring inline elements. Height is defined by the space it content takes.
What is the difference between an ordered list and an unordered list in HTML?
Number and bullet points
Is an HTML list a block element or an inline element?
Block. It creates a space that is effected by element below and above.
How do you indicate the relative link to a parent directory?
parent_dir/file.html
How do you indicate the relative link to a child directory?
/child_dir
How do you indicate the relative link to a grand parent directory?
../dir/file.html
What is the purpose of an HTML form element?
“Input!”
-Number 5 from Shortcircuit
Give five examples of form control elements.
Form, input, select, textarea, button
Give three examples of type attributes for HTML elements.
phone, text. email
Is an HTML element a block element or an inline element?
Inline, because it operates in horizontal space
What are the six primary HTML elements for creating tables?
thead, td, tr, tbody, th, tfoot
What purpose do the thead and tbody elements serve?
thead designates the top of the row for titles.
tbody contains all the data, rows, etc. of table
Give two examples of data that would lend itself well to being displayed in a table.
Financial information.
A restaurant menu.
Name three different types of values you can use to specify colors in CSS.
Names, rbg, hex