HTML Flashcards
How do you indicate the parent folder in a path?
../fileName.file – two dots, forward slash, name of file.
How do you indicate the child folder in a path?
childFolder/fileName.file – name of folder, forward slash, name of file
How do you indicate the grand parent folder in a path?
../../fileName.file – two dots, forward slash, two dots, forward slash, fileName.file
How do you indicate the current folder in a path?
FileName.file – Just type the filename. No dots or forward slashes needed.
What are the six primary HTML elements for creating tables?
table, thead, tbody, tr, th, td
What purpose do thetheadandtbodyelements serve?
Thead defines a set of rows defining the head of columns of the table. Tbody like, thead and tfoot, provide useful semantic info that can be used when rendering for either screen or printer as well as for accessibility purposes.
Give two examples of data that would lend itself well to being displayed in a table.
stocks and sports stats.
What is an absolute URL?
The web address to a specific page.
What is a relative URL?
A path to other pages within the same site.
What other ways can we use an anchor tag?
Linking to another part of the same page, links that open in a new browser/tab, links that start up your email program and address a new email to someone.
- Where do you put non-visible content about the HTML document?
the head
- Where do you put visible content about the HTML document?
the body
- Where do the headand bodytags go in a valid HTML document?
in html tag
- What is the purpose of a doctypedeclaration?
- To tell the browser which version of HTML your page is using.
Give five examples of HTML element tags.
a, img, li, div, p, br, etc
What is the purpose of HTML attributes?
They give additional information about the contents of an element. Made up of a name=”value”.
Give an example of an HTML entity (escape character).
Ampersand - & a m p ;. Left bracket - < or < // you need the semi-colon. It will worth without it, but html has to work harder to find out that its an entity.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are numbered. Good for recipes or instructions or legal contract. Unordered lists have a bullet point – good for maybe ingredients list on a recipe.
What three HTML elements do you use to build a description list?
< dl > - initializing the definition list //description list
< dt > - where the term being defined is placed // description term
< /dt >
< dd > - where the definition of the term is placed. // description definition
*NOTE- It’s now called a description, instead of definition. < /dd >< /dl >
Why are forms useful?
It allows interaction between a user and a website/app by providing the ability to enter data which is sent to a web server for processing and storage, or used to update the interface in some way (to-do list, hiding or showing UI features) on the client side. Let’s use receive data from a user.
What attribute do you have to match between alabeland aninput?
Label for and input id
What type of input allows you to select multiple items in a dropdown?
input tag attribute < select multiple >
What is theactionof a form?
Defines the location(url) where the form’s collected data should be sent when submitted.
What is the purpose of an HTML form element?
To provide interaction between the client and server. Collecting data.