HTML Flashcards
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?
head comes after the html and the body comes right after
What is the purpose of a declaration?
tells the browser which version the document is using
Give five examples of HTML element tags.
html head title p div
What is the purpose of HTML attributes?
provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
- © creates Copyright
- &excl always ends with ;
How do block-level elements affect the document flow?
A block-level element always starts on a new line and takes up the full width available
How do inline elements affect the document flow?
An inline element does not start on a new line and only takes up as much width as necessary
What are the default width and height of a block-level element?
width is 100% and height is equal to the height of the contents
What are the default width and height of an inline element?
width and height the content uses
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are lists where each item in the list is numbered. Unordered lists are lists that begin 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?
<a></a>
What is an absolute URL?
An absolute URL starts with the domain name for that site, and can be followed by the path to a specific page. If no page is specified, the site will display the homepage.
What is a relative URL?
A relative file path points to a file relative to the current page.
How do you indicate the relative link to a parent directory?
Use ../ to indicate the folder above the current one,then follow it with the file name.
How do you indicate the relative link to a child directory?
For a child folder, 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?
Repeat the ../ to indicate that you want to go up two folders (rather than one), then follow it with the file name.
How do you indicate the relative link to the same directory?
To link to a file in the same folder, just use the filename.
What is the purpose of an HTML form element?
document section containing interactive controls for submitting information.
Give five examples of form control elements.
input text , input type radio , input type checkbox , input type drop down list, input type color
Give three examples of type attributes for HTML elements.
type, size,name,maxlength,password
Is an HTML element a block element or an inline element?
inline
What are the six primary HTML elements for creating tables?
Table, table data ,table row ,table headers, table head , table body, table foot
What purpose do the thead and tbody elements serve?
help distinguish between the main content of the table and the first and last rows These elements help people who use screen readers and also allow you to style these sections in a different manner than the rest of the table
Give two examples of data that would lend itself well to being displayed in a table.
financial reports, TV schedules, and sports results