HTML Flashcards
Where do you put non-visible content about the HTML document?
Inside the < head > element
Where do you put visible content about the HTML document?
Inside the < body > element
Where do the < head > and < body > tags go in a valid HTML document?
Inside the < html > element
What is the purpose of a declaration?
To let the brownser know which version of html this document is written in
Give five examples of HTML element types.
< head >, < body >, < tittle >, < p >, < a >
What is the purpose of HTML attributes?
To give more information to the element: modifying it in cases; specifying types or sources in others; etc.
Give an example of an HTML entity (escape character).
© or © , the Copywright (©) symbol.
How do block-level elements affect the document flow?
They break lines and occupy the whole width of the page.
How do inline elements affect the document flow?
They do not break the line, so the flow of text continues.
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?
In a ordered list, the items sequence matter, and are usually denoted with a counting from 1. onwards.
In an unordered list, the items sequence don’t matter, and thus they’re usually denoted with a simple dot.
Is an HTML list a block element or an inline element?
a block element.
What HTML tag is used to link to another website?
< a > tag
What is an absolute URL?
the link to a file/web-page that includes its internet domain
What is a relative URL?
the path to a file from the current file’s directory.
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
child-directory/file.file-type
How do you indicate the relative link to a grand parent directory?
../../
How do you indicate the relative link to the same directory?
file.file-type
What is the purpose of an HTML form element?
To collect user’s input
Give five examples of form control elements.
< input >, < label >, < select >, < textarea >, < button >, < option >
Give three examples of type attribute values for HTML elements.
< input type="button" >, < input type="checkbox" >, < input type="email" >, < input type="file" >, < input type="password" >, < input type="text" >
Is an HTML list a block element or an inline element?
it’s a block-inline element
What are the six primary HTML elements for creating tables?
< table >, < th >, < tr >, < td >, < thead >, < tbody >, < tfoot >
What purpose do the thead and tbody elements serve?
differentiate regions of the table, but with simillar capabilities
Give two examples of data that would lend itself well to being displayed in a table.
Financial data, Populational Data (basically, any statistics based data)