First you need to figure out 3 key concepts in the Web.
I. Http,html,url.
The HTML full name is Hypertext Markup Language, which is used to describe the language of a Web page. In other words, the language is used to describe the "looks" of a Web page.
As for what is shown, it is up to the browser to decide what to look like.
That is, the HTML is OK, for example: "This is a title", "Here need to emphasize" and so on.
HTML text is a descriptive text made up of HTML commands that describe text, graphics, animations, sounds, tables, links, and so on. The structure of the HTML consists of the head (head) and the body (body), where the head describes the information required by the browser, while the body contains the specific content to be described.
HTTP: Full name is hypertext Transfer Protocol. is a protocol that the WWW server transmits to the local browser. The content of the transfer is the text of the HTML description.
The original purpose of HTTP design is to send and accept HTML.
Url:uniform/universal Resource Locator is also known as the Web address. That is, tell the local browser how to find an address of the resource from the WWW server.
So through the URL to locate resources, through the HTTP protocol to download HTML text to the local browser, and then by the browser to display the HTML text.
Two. URI
Uri,url,urn.
Often see uri,url these things, especially Android inside, can also be seen.
The URI, which is the Uniform Resource identifier, is the Uniform Resource identifier used to uniquely identify a resource.
The URL is a Uniform Resource Locator, a Uniform Resource locator, which is a specific URI that the URL can use to identify a resource and also how to locate the resource.
URIs can be understood as a lower-level URL.
The URL is an abbreviation for the uniform resoure Locator (Uniform Resource Locator). Is the address of the WWW page.
Its URL address is arranged in the following format: Scheme://host:port/path
In the Java URI, a URI instance can represent absolute or relative, as long as it conforms to the syntax rules of the URI. The URL class not only conforms to semantics, but also contains information that locates the resource, so it cannot be relative, and the schema must be specified.
URLs & Urns are 2 different types of URIs.
Three. HTML & XML
XML is one of the most common JSON and XML2 of the network transmission language.
He has no grammatical rules such as <H1>,<p>, but it has the corresponding requirements for validation. Must not contain order reversal and so on.
XML is not an alternative to HTML, but rather a complement.
HTML is used to transfer browser text.
XML transmits network content, such as obtaining a student's list from a server.
Four. MIME Media type
MIME is a widely accepted way of expressing multimedia types, especially in Linux systems.
So this standard is used in Android to differentiate between file types.
MIME currently supports more than 100 pre-defined content types.
Content types are divided into 2 levels, types, and subtypes. such as Image/gif, Video/mpeg and so on.
In addition to the standard types, it is possible to define some non-standard type control self-use. Like what
Application/x-tif
Of course, because many MIME types are used extensively, these non-standard types, many of which are also known as a default form.
Java Network---Basic web concepts