"HTML" 1. What has been forgotten

Source: Internet
Author: User
Tags closing tag rfc

Concept

HTML (hypertext Mark-uplanguage), or Hypertext Markup Language, is the most widely used language on the web, and the main language that forms the document of Web pages. 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.

In short: HTML is a language designed to standardize the presentation of Web page information.

History

HTML, one of the basic rules for defining the World Wide Web, was originally developed by Tim Berners-lee in 1989 at CERN (Conseil europeen pour la recherche nucleaire). The designers of HTML consider this: HTML format will allow scientists to transparently share information on the web, even though the computers used by these scientists vary widely. Therefore, this format must have the following characteristics:

The ① is independent of the platform, which is independent of the computer hardware and operating system. This feature is essential for a variety of things, because in this feature, documents can display document content in a similar form on computers with different properties (that is, fonts, graphics, and color differences).

② hypertext, which allows any text or phrase in a document to refer to another document, this feature allows users to roam between documents in different computers and within documents.

③ precise, structured documentation. This feature will allow some advanced apps, such as HTML documents and other format documents, to convert to and from each other and to search text databases.

After more than 20 years of development, HTML has become the most important technology in the IT age! The HTML standard has undergone the following version change:

1. Hypertext Markup Language (first edition)-published in June 1993 as a draft work group on Internet Engineering (IETF) (not standard).

2. html2.0--1995 was released as RFC 1866 in November and was declared obsolete after the release of RFC 2854 in June 2000.

3. html3.2--1996 January 14, the recommended standard

4. html4.0--1997 December 18, the recommended standard

5. HTML4.01 (minor improvement)--December 24, 1999, the recommended standard

6. The predecessor of draft HTML5 was named Webapplications 1.0. It was introduced in 2004 by WHATWG and was accepted by the company in 2007, and a new HTML team was established. On January 22, 2008, the first formal draft was published and is expected to be formally recommended to the public in September 2010. Whatwg said that the norm was currently under way and that it still had to be years of work.

three cornerstones

The HTML language is known as one of the three cornerstones of the Internet (the remaining two cornerstones are: HTTP protocol, URL). It solves the problem of how to display data content with rich results. In the Internet, data is transmitted and executed between the server and the browser. The three cornerstones address the following issues:

HTTP protocol: Solves the problem of how data is transmitted and formatted between the server and the browser! The distributed information sharing is realized.

URL protocol: Solves the problem of resource locating in many servers. So that the browser can access different server resources, to achieve the precise positioning of global information.

HTML language: Solve the data in the browser how colorful display, and how to properly label information issues.

Demo

We access an Internet resource: http://www.baidu.com, the process is as follows:


First step: Address bar Input:


Step two: The server receives the request and passes the HTML source code to the client:

<!doctype html>

Note: For source part code

The third step: The browser explanation executes the above code, the following colorful effect appears:


Necessity

At present, the architecture of the software mostly adopts B/s architecture, here is browser browser. So, in order to display the data in the browser, it inevitably involves HTML. As a result, HTML is the basic skill that software engineers must master today!

For our Java engineers, we will pay more attention to the use of some common tags in HTML, especially the form label is the focus we need to grasp.

We do not need special attention, HTML tag display effect, page aesthetics. The art industry has specialized, these will be responsible for the company art.

Summary of Basic concepts:

HTML refers to Hypertext Markup Language (Hyper Text Markup Language)

HTML is not a programming language, but a markup language (markup language)

Markup language is a set of tag tags (markup tag)

HTML uses tag tags to describe web pages

HTML language is not case sensitive!

HTML tag tags are often referred to as HTML tags (html tag).

HTML tags are keywords surrounded by angle brackets, such as

HTML tags are usually paired up, such as <b> and </b>

The first label in the pair is the start tag, the second is the end tag

Some HTML elements do not have an end tag, such as <br/>

Note: The English translation of the start tag is starttag or opening tag, the end tag of the English translation is end tag or closing tag

HTML elements: Markup + intermediate content

call it an element!

HTML properties:

Attribute rates are label elements, and attributes are separated by spaces! Property values can use double quotes, single quotes, or no quotation marks.

<p align= "center" >bjsxt</p>

Recommendation: Be sure to use quotation marks on the attribute that indicates the resource path!

File Structure
Body of the 
element: Is the basic part of the HTML language. Each element typically has a start tag (such as <body>) and a closing tag (such as </body>). The markup for an element is enclosed in a pair of angle brackets, and the end tag always adds a slash before the start tag. Business Ideas

For the HTML summary is a more painful thing, because everyone is very familiar with the use of HTML, every day without it, to summarize its knowledge is very simple and difficult.

Write some basic knowledge about HTML, is an introductory phase of learning and use, a deeper summary in the later time, continue to join.


"HTML" 1. What has been forgotten

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.