HTML Flashcards
Where do you put non-visible content about the HTML document?
in the head element
Where do you put visible content about the HTML document?
In the body element
Where do the head and body tags go in a valid HTML document?
In the HTML element
What is the purpose of a declaration?
Tells the browser what version of HTML the page is written in.
Give five examples of HTML element tags.
Head Body Footer Title HTML
What is the purpose of HTML attributes?
To modify the default functionality of an element type
Give an example of an HTML entity (escape character).
Semicolon copyright ampersand
How do block-level elements affect the document flow?
It changes the layout of a page and is read from top to bottom
How do inline elements affect the document flow?
renders a single unbroken text flow and is read from left to right
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 bulletin point and have no specific order
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
“A” tag
What is an absolute URL?
Contains all the information necessary to locate a resource
What is a relative URL?
Locates a resource using an absolute URL as a starting point
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
Use the name of the child folder followed by a forward slash then file name
How do you indicate the relative link to a grand parent directory?
../../
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?
Hold contents of the form
Give five examples of form control elements.
Input textarea option select button
Give three examples of type attributes for HTML input elements.
Checkbox radio submit
Is an HTML input element a block element or an inline element?
Inline
What are the six primary HTML elements for creating tables?
thead tbody tr td th table
What purpose do the thead and tbody elements serve?
contained block to organize text
Give two examples of data that would lend itself well to being displayed in a table.
list of employees , financial listings
What are the default width and height of a block-level element?
height: auto width: 100%
What are the default width and height of an inline element?
auto