An Introduction to HTML
The process by which a user opens a Web page by using a browser to see the result: The browser downloads the content of the server's text file (that is, the Web page file) to local, and then opens the displayed process.
and the document structure of the text file is only space and line wrapping two kinds of organization, so, when the text file opens the display, the effect will be very very very single,
In order to make the display less monotonous, we tend to use word-like text editing tools to compose text content, the principle is: in the editing of the file will be selected parts of the content, and then a different tag for the content, such as what is the title, what is the paragraph, and then stored on the hard disk, and the next time you open, Word recognizes the previous tag and then displays it as a pre-programmed result
Stand in the view of the text content, the browser and word principle, we can use the browser as a web-based read-only word, the browser must have a set of its own recognizable markup text specification, which is known as html,html full name is the Hypertext Markup Language (hypertext Markup Language)
"Hypertext" refers to the use of hyperlinks in a variety of different spaces to organize text information together with the mesh text
"Mark" refers to the editing of text with a special notation to mark the contents of each part of the meaning of the mark, which is called a label, such as labeled H1 Tag title, labeled P Label paragraph, so we mark a Tang Dynasty has become the following format:
In this way, after receiving the text content, the browser can display the contents of each part according to the pre-defined mark, showing the result as
So we learn HTML is learning a series of tags
HTML Considerations!!!
# 1, the mark/tag is not displayed. #2, although the text marked with #3, HTML is the main part of a Web page and is the basis of a Web page. Because a Web page can have no style, there can be no interaction, but there must be content that the page needs to render. So the HTML section is the basis for the entire front end.
Two HTML historyHypertext Markup Language (first edition): Published as a draft of the Internet Engineering Working Group (IETF) in June 1993 (not a standard), and subsequently set standards
About IETF
- The IETF is an abbreviation for the English Internet Engineering Task Force, which translates to "Internet Engineering tasks".
- The IETF is responsible for defining and managing all aspects of Internet technology. Includes the IP protocol for data transfer, the domain Name System (DNS) that matches the domain name to the IP address, the Simple Mail Transfer Protocol (SMTP) for sending mail, and so on
About Us
- The World Wide WEB Consortium is an abbreviation for the global Internet, which is the most authoritative technology standardization Organization worldwide, which is the Universal Network Alliance.
- The company was founded in October 1994 at the MIT Computer Science Laboratory. Created by the inventor of the World Wide Web Tim Berners-lee
- The web is responsible for the development of standards, such as HTML, XHTML, CSS, XML standards are customized by the website.
Tim Berners-lee (Tim Berners-Lee), father of the World Wide Web, HTML Designer, founder
In the early development of HTML, most of the standards are called retro-spec, that is, there are standards before implementation. In this case, the HTML standard is not very normative, the browser is also very tolerant of errors in the HTML page. This, in turn, resulted in HTML developers writing a large number of HTML pages that contain errors (for example: content and form cannot be separated; labels are single; Data cannot be reused, etc.), and as the rise of XML people want XML to compensate for the lack of HTML, But now there are thousands of pages are written in HTML, so it is too early to use XML instead of HTML, so the Web site in 2000 launched the xhtml1.0, the purpose of building XHTML is to achieve from HTML to XML over the specification of HTML, Together with XML, the XHTML is developed1.0 standard, this standard does not add any new tags, just according to the requirements of XML specification HTML, and defines a new MIME type Application/xhtml+xml. The purpose of the web is to ask the browser to enforce a strong error check on this MIME type, and if the page has HTML errors, it will display an error message. However, due to the large number of errors already in the existing Web pages, many developers refuse to use the new MIME type. The web was forced to add an Appendix C to the XHTML 1.0 standard, allowing developers to write pages using XHTML syntax while using the old MIME type,application/HTML, to distribute the pages of the web and then in XHTMLAppendix C, which uses XHTML 1, was canceled in 1.1the. 1 standard page must be distributed with a new MIME type. So this standard does not have a lot of people to use the XHTML lesson, in the development of the next generation of HTML Standard (HTML5), the backward compatibility as a very important principle. HTML5 does introduce many new features, but one of its most important features is that it does not break the existing Web page. You can change the first line of any existing page to<! DOCTYPE html>, it becomes also a HTML5 page, and can still be displayed in the browser normally. In short1, HTML syntax is very loose fault-tolerant;2, XHTML is stricter, it requires that the label must be lowercase, must be tightly closed, the attributes in the tag must be quoted, and so on;3, HTML5 is the next version of HTML so in addition to very loose fault tolerance, but also add a lot of new features
HTML and XHTML, HTML5 differences
Front End Tutorials (4) HTML introduction