GRADED A+
What is HTML? – answer HTML, which stands for Hypertext Markup Language, is the
most basic building block of a webpage and used for creating and visually representing
a webpage. It determines the content of a webpage, but not its functionality. HTML is
the standard markup language for creating web pages and web applications. With
Cascading Style Sheets (CSS), and JavaScript, it forms a triad of cornerstone
technologies for the World Wide Web. Web browsers receive HTML documents from a
webserver or from local storage and render them into multimedia web pages. HTML
describes the structure of a web page semantically and originally included cues for the
appearance of the document.
HTML adds "markup" to standard English text. Hyper Text refers to links that connect
Web pages to one another, making the World Wide Web what it is today. By creating
and uploading Web pages to the Internet, you become an active participant in the World
Wide Web once your site is online. HTML supports visual images and other media as
well. With the help of HTML everyone can make static as well as dynamic web sites.
HTML is the language that describes the structure and the semantic content of a web
document.
Content within a web page is tagged with HTML elements such as <head>, <title>,
<body>, <article>, <section>, <p>, <div>, <span>, <img>, <picture>, and so forth.
These elements form the building blocks of a website. Once again, HTML separates
"content" (words, images, audio, video, and so on) from "presentation" (instructions for
displaying each type of content).
Who invented HTML? - answerTim Berners-Lee, then a contractor at CERN (the
European Organization for Nuclear Research), devised a way in 1989 for scientists to
share documents over the Internet. Before that, Internet communication had been
limited to plain text, using technologies such as email, FTP (File Transfer Protocol), and
Usenet-based discussion boards. HTML used a content model stored on a central
server but transferrable to a local workstation and viewable in a browser, simplifying
access to content and making "rich" content possible (such as sophisticated text
formatting and images).
What is "the Web"? - answerThe World Wide Web (abbreviated WWW or the Web) is
an information space where documents and other web resources are identified by
Uniform Resource Locators (URLs), interlinked by hypertext links, and can be accessed
via the Internet.
, What is the DOM? - answerThe DOM (Document Object Model) is a cross-platform and
language-independent API that represents and interacts with any HTML or XML
document. The DOM is a document model loaded in the browser that treats an HTML,
XHTML, or XML document as a node tree, wherein each node is an object representing
a part of the document where each node represents part of the document (e.g. an
element, text string, or comment). The DOM is one of the most-used APIs on the Web
because it allows code running in a browser to access and interact with every node in
the document. Nodes can be manipulated programmatically and any visible changes
occurring as a result may then be reflected in the display of the document.
IMAGE EXAMPLE BELOW
https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/DOM-model.svg/440px-
DOM-model.svg.png
What is an API? - answerAn API (Application Programming Interface) is a set of
features and rules that exist inside a software program enabling interaction between the
software and other items, such as other software or hardware.
In Web development, an API is generally a set of code features (e.g. methods,
properties, events, and URLs) that a developer can use in their apps for interacting with
components of a user's web browser, or other software/hardware on the user's
computer, or third party websites and services.
For example:
The Geolocation API - can be used to retrieve location information from whatever
service the user has available on their device (e.g. GPS), which can then be used in
conjunction with the Google Maps APIs to for example plot the user's location on a
custom map and show them what tourist attractions are in their area.
The Twitter APIs - can be used to retrieve data from a user's twitter accounts, for exaple
to display their latest tweets on a web page.
What is an Element? - answerAn element is a part of a webpage. In XML and HTML, an
element may contain a data item or a chunk of text or an image, or perhaps nothing. A
typical element includes an opening tag with some attributes, a content, and a closing
tag.
ANATOMY OF AN HTML ELEMENT BELOW
https://mdn.mozillademos.org/files/7659/anatomy-of-an-html-element.png
What is a Tag? - answerIn HTML a tag is used for creating an element. The name of an
HTML element is the name used in angle brackets such as <p> for paragraph. Note that
the end tag's name is preceded by a slash character, "</p>", and that in empty elements
the end tag is neither required nor allowed. If attributes are not mentioned, default
values are used in each case.