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 and tags go in a valid HTML document?
inside the HTML tags or element
What is the purpose of a declaration?
to inform the web browser about the type and version of HTML used in building the web document
Give five examples of HTML element tags.
header, body, a, footer, div
What is the purpose of HTML attributes?
to provide more information for the HTML elements
Give an example of an HTML entity
< is < > is > copyright is ©
What is the difference between an ordered list and an unordered list?
ordered list is in order usually numerical and unordered list are in bullet points
What three HTML elements do you use to build a description?
description list<dl> , description term <dt>, description definition </dt><dd></dd></dl>
How do you indicate the parent folder in a path?
by typing ../ to locate one level up from the current folder
How do you indicate the child folder in a path?
by typing /
How do you indicate the grand parent folder in a path?
by typing ../../
How do you indicate the current folder in a path?
by typing the full URL to a file
What are the six primary HTML elements for creating tables?
table tag, tablerow, tabledata, table body, thead, table, th=table header
What purpose do the thead and tbody elements serve?
to describe the document and separate chunks of code
Give two examples of data that would lend itself well to being displayed in a table.
sports results, stock market data
What is an absolute URL?
all URL from beginning to end. Contains all the information necessary to locate a resource
What is a relative URL?
typically consists only of the path, and optionally the resource, but no server.
What other ways can we use an anchor tag?
movement to a specific point in a page using the id attribute.
Why are forms useful?
to receive specific information
What attribute do you have to match between a label and an input?
for attribute in the label and the id attribute in the input
What type of input allows you to select multiple items in a dropdown?
select element
What is the action of a form?
action attribute specifies where to send the form-data when a form is submitted.
What is the purpose of an HTML form element?
to submit information
Give 5 examples of form control elements
select, textarea, label, input, button
Give 3 examples of type attributes for HTML elements.
email, text, radio
Why would we choose specific element types when we have elements such as div and span which can be used for anything?
for Search Engine Optimization SEO. Makes it easier for both people and machines to read
What factors contribute to a well-designed HTML document?
indentation, readability, using html semantics