HTML (HyperText Markup Language) Flashcards
HyperText markup language (HTML)
is the standard markup language for web documents.
Hypertext is text that has links to other text (and today to images, videos, and more). Document markup is special markings in the document that provide additional information about links, formatting, and images. HTML also permits adding metadata like search engine keywords, author information, and language.
The language used for a text file that describes a webpage
HTML
The HyperText Markup Language has text with links (hypertext) to other files on the web.
Web document that is viewed in a web browser.
Webpage
A webpage may link to other webpages.
Collection of related webpages.
Website
A website may be composed of any number of webpages.
A program that serves webpages to browsers.
Web Server
Popular web servers today include Apache, IIS, and nginx.
The protocol for transferring files among computers via the web.
HTTP
Short for HyperText Transfer Protocol. A protocol is a set of rules.
A program for viewing webpages.
Browser
A browser displays HTML files in a formatted way.
Specifies document structure
HTML is used to specify the purpose of each part of a document. Each web browser has a default stylesheet that controls how the page is displayed, but HTML does not specify how the document parts are displayed.
Manages document presentation
CSS consists of a set of style rules about how to display the parts of a document.
Enables document interaction
JavaScript is a programming language that can manage any part of the document and interact with external servers to send and receive information. JavaScript sometimes also runs on web servers.
top-level domains (TLD)
.com
.net
.org
.gov
.edu
country code top-level domain (ccTLD)
.ru(Russia)
.uk(United Kingdom)
.de(Germany)
second-level domain
A second-level domain is commonly an organization’s name as in Stanford.edu, or indicates the purpose of a website as in DoPython.org
Third-level domain
A common third-or-www refers to the organization’s web server. deeper-level domain is www, short for World Wide Web, usually referring to an organization’s web server. Many organizations use www optionally, so stanford.edu by default goes to www.stanford.edu
Third-level and further level domains refer to sub-computer systems local to an organization, as in cs.stanford.edu where the cs is for Stanford’s Computer Science department
URL (Uniform Resource Locator)
is the location of a web resource on the web, such as http://www.cdc.gov/alcohol/faqs.htm
web resource
is any retrievable item, like an HTML file, image, video, CSS stylesheet, etc
Scheme
Characters at the beginning of a URL followed by a colon “:” or a colon and double slashes “://”. Common URL schemes include http, https, mailto, and file.
Ex: In https://www.cdc.gov/alcohol, the scheme is “https”.
Hostname
The complete domain name following the scheme in a URL.
Ex: In https://www.cdc.gov/alcohol, the hostname is “www.cdc.gov”.
Path
The characters to the right of the hostname in a URL.
Ex: In https://www.cdc.gov/alcohol, the path is “/alcohol”.
Query string
Optional characters to the right of the question mark (?) in a URL that provide data for the web server.
Ex: In https://www.youtube.com/watch?v=uu7XCEMdSHg, the characters after the ? tells YouTube’s server to play a video having code uu7XCEMdSHg
Fragment
Optional characters at the end of a URL that start with a hash character (#) and refer to a certain location within a webpage.
Ex: In https://en.wikipedia.org/wiki/#History, the fragment “#History” refers to the webpage’s History section.
404
means that the website was reached (the domain name is valid and the web server is working), but the web server could not find the requested page, often due to a misspelling or out-of-date page link.
HyperText Transfer Protocol (HTTP)
is a networking protocol that runs over TCP/IP and governs communication between web browsers and web servers
Transmission Control Protocol/Internet Protocol (TCP/IP)
is a protocol suite that governs how data packets are transferred over the Internet from one machine to another
HTTP/1.1
is the HTTP standard used for most of the web’s lifetime
HTTP/2
a relatively new HTTP standard that speeds-up the transfer of information between web browsers and web servers. HTTP/2 maintains most of HTTP/1.1’s semantics
HTTP/3
currently in development, improves the speed of HTTP/2 by using UDP to transport data packets instead of TCP
HTTP request
is a message sent from the web browser to the web server. Often the request asks the web server to send back a web resource like an HTML file, image, CSS style sheet, JavaScript file, or video
HTTP response
is a message sent from the web server back to the web browser in response to an HTTP request. Often the response contains the requested web resource
Content-length
Number of bytes in the response’s message body
Content-type
Media type of the response’s message body
Date
Datetime the response was generated by the web server
Last-Modified
Datetime the requested resource was last modified on the web server
Server
Identifies the web server software that generated the response
Host
The domain name for the requested path
User-Agent
Identifies the browser making the request
Internet Assigned Numbers Authority (IANA)
is a standards organization that manages various internet numbers and symbols, like global IP address allocation, root zone management in DNS, and media types. IANA maintains a list of HTTP headers that are currently active, obsolete, or experimental
GET (request method)
Request a representation of the specified resource
HEAD (request method)
Request a response identical to GET but without the response body
POST (request method)
Request the web server to accept the message body enclosed in the request as a new resource
PUT (request method)
Request the web server to accept the message body enclosed in the request as a modification of an existing resource
DELETE (request method)
Request the web server to delete the existing resource
200
OK
Standard response for a successful request
301
Moved Permanently
The resource should always be requested at a different URL
302
Found
The resource should temporarily be requested at a different URL
304
Not Modified
The resource has not been modified since the last time the resource was requested
403
Forbidden
The web browser does not have permission to access the resource
404
Not Found
The resource could not be located
500
Internal Server Error
Something unexpected happened on the web server
Transport Layer Security (TLS)
HTTPS uses TLS, which uses asymmetric public keys to encrypt data between the browser and web server
A web design approach that creates webpages that automatically move and resize parts depending on the display size and orientation
Responsive web design
requires careful design and typically uses software frameworks to simplify development
Visual clues that guide the user in figuring out how to use an app
Affordances
a term invented by usability expert Donald Norman, are harder to implement for mobile devices. For instance, few mobile devices support a touch screen equivalent of hovering with a mouse. So, hovering-based interfaces like tooltips are unavailable on touch based devices.
A web development approach that advocates first creating a reduced-feature version of a website for mobile users. Then, the developer creates a full-featured website for visitors using desktop computers
Mobile First
Internet of Things (abbreviated as IoT)
is the global collection of communicating devices that sense and control technology on behalf of humans
h1, h2, h3
Headers. h1 is largest.
Ex: <h2>Puppies are cute</h2>
p
Paragraph
Ex: <p>Humans seem designed to see puppies as cute.</p>
em, strong
Emphasis, strong emphasis
<p>"When in <strong>doubt</strong>, tell the <em>truth</em>" -Mark Twain.</p>
img
Image
Ex: <img></img>
Note: src is the image’s URL source, and alt describes the image.
a
Link
Ex: <a>Click Here</a>