HTML Flashcards
How do you indicate the relative link to a parent directory?
../filename - parent directory (../)
How do you indicate the relative link to a child directory?
parentname/childname/filename
How do you indicate the relative link to a grandparent directory?
../../filename
How do you indicate the relative link to the same directory?
Filename
What is the purpose of an HTML form element?
Hold the content of the form, to set out the boundaries for the form element
Give five examples of form control elements.
Input, textarea, select, option, button
Give three examples of type attributes for HTML elements.
checkbox,radio,submit
Is an HTML element a block element or an inline element?
Inline element
What are the six primary HTML elements for creating tables?
Table, thead,tbody,td,tr,th
What purpose do the thead and tbody elements serve?
To separate the body and head of the tables, so the title of the main row titles would go on the thead and everything else in tbody
Give two examples of data that would lend itself well to being displayed in a table.
Numbers, text, string
Give five examples of HTML element tags.
Head, body HTML, title, and paragraph.
What is the purpose of HTML attributes?
To give more information about the elements and tags.
Give an example of an HTML entity (the escape character).
Trademark character
What is the difference between an ordered list and an unordered list in HTML?
An ordered list must be followed in the right order like a series of steps and numbered to follow it by. An unordered list is one where the order doesn’t matter like a list of grocery items.
Is an HTML list a block element or an inline element?
Block element
What is the purpose of a declaration?
To declare the HTML version
Where do the and tags go in a valid HTML document?
The head tag goes before the body tag
Where do you put visible content about the HTML document?
Between the body tag
What HTML tag is used to link to another website?
The anchor a tag
What is an absolute URL?
The absolute URL contains all the information to locate a resource
What is a relative URL?
A relative URL uses an absolute URL to locate a source
What are the default width and height of a block-level element?
width: 100% height: auto
How do inline elements affect the document flow?
They don’t affect the document flow
How do block-level elements affect the document flow?
They make the text or content start in a new line
What are the default width and height of an inline element?
It takes as much width and height as it needs