HTML Flashcards
What was the purpose of HTLM in the past and what’s now?
In the past it was used as research documents, linking documents, reports, pictures and graphs;
Now it enables applications, fully featured.
What is the most common client for HTML?
Browsers.
What the difference between URI and URL?
URIs identify and URLs locate; however, locators are also identifiers, so every URL is also a URI, but there are URIs which are not URLs.
e.g: your name is your URI and your address is your URL.
What does the HTML element do?
Is the root of the document.
What does the HEAD element do?
Hold document metadata. Including title.
Where can the HTML be validated?
validator.w3.org
What’s traverse?
To move or travel in an area.
What’s a HREF?
It’s a reference to another document via some URI/URL.
What are the common child elements of HEAD?
key information used to index the pages - not so used nowadays once google and bing optmize their searches via actual page content.
import external scripts
import styles.. via files or inline
<link></link>
link to resources
<base></base>
define a base address (relative paths)
What’s the most common main page name of a website?
index.html
What is a ! mark in the html?
An instruction for the browser. e.g doctype and comment
What are common attributes?
Name, rel and class
What are the main child elements of BODY?
Text --- duh Lists Links Tables Images
Can ID and name attributes repeat?
No, they need to be unique. Id is document-wide unique and name need to be element-specific.
How many headings exists? (Hn)
- The number one should appear only once.
What’s the difference between block and inline elements?
Block elements are containers to text or other block and inline elements. Inline elements are containers for text or other inline elements.
What’s a div?
General-purpose element to identify a section of the page.
What’s a <pre> element?</pre>
Text in a pre element is displayed in a fixed-width font, and it preserves both spaces and line breaks.
What’s a <br></br> element?
It’s a line break.
What’s a <hr> element?
Horizontal line. not much used. people usually use borders.
What is and what are the most character entity?
represent a character that is special.
 : non-breaking space.
< and >: less and greater than. to not break html structure.
What does reference text elements do?
They help to cite other jobs/documents, to define abbreviations and even code and sample snippets.
What elements were introduced in HTML 5 that gives more semantic meaning for specific structures? note: they replace the generic divs.
Header, article, footer and section.
What are the different lists on HTML?
Ordered, unordered and definition.