search
HomeWeb Front-endJS TutorialFront-end HTML and HTML5 basic content

Front-end HTML and HTML5 basic content

Oct 17, 2017 am 09:48 AM
htmlhtml5Basic

The previous chapter introduced the development of the front-end. This chapter briefly introduces the development of html and basic tags.

1. The development history of HTML

1. Concept

HyperText Markup Language (HTML for short) ) is a markup language designed for [web page creation and other information that can be seen in a browser].

2. Related development history:
* Hypertext Markup Language (First Edition) --- In June 1993, as the Internet Engineering Group ( IETF) working draft release (not a standard)

    * HTML2.0 --- Released as RFC 1866 in November 1995, it was announced after the release of RFC 2854 in June 2000 Obsolete

##   * HTML3.2 --- January 14, 1996, W3C Recommended Standard

   * HTML4.0 --- 1997 December 18, 1999, W3C recommended standard

   * ISO/IEC 15445:2000 ("ISO HTML") --- Released on May 15, 2000, based on strict HTML 4.01 syntax, it is a standard of the International Organization for Standardization and the International Electrotechnical Commission

  * # * XHTML 1.1 --- Released on May 31, 2001

-- On October 29, 2014, the World Wide Web Consortium tearfully announced that after almost eight years of hard work, the HTML5 standard specification has finally been finalized and has been publicly released.

3. The arduous development process of HTML5

The predecessor of the HTML5 draft was called Web Applications 1.0, which was proposed by WHATWG in 2004 and published in 2007. It was accepted by W3C and a new HTML working team was established.

The first official draft of HTML 5 was announced on January 22, 2008. HTML5 is still a work in progress. However, most modern browsers already have some HTML5 support.

On December 17, 2012, the World Wide Web Consortium (W3C) officially announced that the HTML5 specification, which has condensed the efforts of a large number of network workers, has been officially finalized. According to the W3C's speech: "HTML5 is the cornerstone of the open Web network platform."

On May 6, 2013, the official draft of HTML 5.1 was announced. The specification defines the fifth major version, the first to revise the core language of the World Wide Web: Hypertext Markup Language (HTML). In this version, new features are continuously introduced to help web application authors in an effort to improve interoperability of new elements.

On October 29, 2014, the World Wide Web Consortium tearfully announced that after almost 8 years of hard work, the HTML5 standard specification has finally been finalized and has been publicly released.

Browsers that support Html5 include Firefox (Firefox browser), IE9 and higher versions, Chrome (Google browser), Safari, Opera, etc.; domestic Aoyou browser ( Maxthon), and domestic browsers such as 360 Browser, Sogou Browser, QQ Browser, and Cheetah Browser based on IE or Chromium (the engineering version or experimental version of Chrome) also have the ability to support HTML5.

  4. XML, xhtml, html, the relationship and difference between the three

  HTML (HyperText Markup Language), hypertext markup language. "Hypertext" means that the page can contain pictures, links, and even non-text elements such as music and programs. "Marking" refers to using specific marking symbols to mark various parts of the content to be displayed. Hypertext Markup Language is an application under Standard Universal Markup Language, a specification, and a standard that is designed to display data. HTML text is what we usually call a web page, and the extension can be html or htm.

  XML (Extensible Markup Language), extensible markup language. XML is a subset of the Standard Universal Markup Language. It is a markup language used to mark electronic documents to make them structural. It is designed to transmit and store data and is a supplement to Hypertext Markup Language. Extensible Markup Language is a meta-markup language that defines a structured markup language that is used to define other domain-specific semantics. These markup languages ​​divide documents into many parts and identify these parts. It enables more precise declarations of content, facilitating more meaningful search results across multiple platforms. It provides a format for describing structured data, simplifies data exchange and representation in the network, separates code, data and representation, and serves as a standard format for data exchange, so it is often called an intelligent data document, and the file extension is xml.

  XHTML (Extensible HyperText Markup Language), extensible hypertext markup language. XHTML is based on Extensible Markup Language (XML). XHTML is an extensible markup language (XML) that plays a role similar to HTML. XHTML is an enhanced version of HTML, and XHTML is a more rigorous and purer version of HTML. Its scalability and flexibility will adapt to more needs of future network applications. Although XML has powerful data conversion capabilities and can completely replace HTML, it is still too early to directly adopt XML in the face of thousands of existing websites designed based on HTML language. Therefore, on the basis of HTML4.0, we extended it with XML rules and obtained XHTML. Therefore, the purpose of establishing XHTML is to realize the transition from HTML to XML. XHTML became W3C (World Wide Web Consortium, World Wide Web Consortium) on January 26, 2000, and the file extension is xhtml.

Summary: HTML, XML and XHTML are all subsets of standard universal markup language. HTML is designed to display data, and its focus is the appearance of the data; XML is designed to transmit and store data, and its focus is the content of the data; Defined HTML is designed to replace HTML to adapt to more needs of the future network. They can all be used to develop web pages, but for now, HTML is still the absolute mainstream in web development, and now the latest version, HTML5, is also highly regarded. Extensible Markup Language XML is widely used in the storage of data in various applications (such as various configuration files) and the transmission of data between applications. It can be said to be a technology that must be mastered. As for the Extensible Hypertext Markup Language XHTML, in 2009 the W3C announced that it would stop the development of XHTML2 and instead vigorously support HTML5.

2. HTML4.01 (the new chapter of HTML5 will be introduced in the next chapter)

 1. Basic structure


<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title></title>
    </head>
    <body>
        
    </body>
</html>

2. Specific descriptions of basic elements are available on w3school, so I won’t explain them in detail.

Commonly used: html, head, meta, title, link, style, body, h1-h6, p, a, p , span, ul, li, dl, dt, dd, ol, img, table, thead, tbody, tfoot, tr, td, caption, i, b, form, label, input, button, textarea, selected, option, optgroup ,script,frame,br,hr,em,strong.

Not commonly used: The above are mostly used in work, and there are many style tags that are no longer recommended, so I won’t introduce them here.

3. Standard attributes

id, class, title, style, dir, lang

4. Event attributes

onclick, ondblclick, onmousedown, onmouseup , onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

Summary: HTML is a universal markup language used on the Web. HTML allows you to format text, add images, create links, input forms, frames and tables, etc., and save it as a text file, which the browser can read and display. (html is relatively simple as well as css. As long as you know basic html and css, you can start cutting static pages, so it is very easy to get started with the front end, but js is the difficult part)

The above is the detailed content of Front-end HTML and HTML5 basic content. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
JavaScript and the Web: Core Functionality and Use CasesJavaScript and the Web: Core Functionality and Use CasesApr 18, 2025 am 12:19 AM

The main uses of JavaScript in web development include client interaction, form verification and asynchronous communication. 1) Dynamic content update and user interaction through DOM operations; 2) Client verification is carried out before the user submits data to improve the user experience; 3) Refreshless communication with the server is achieved through AJAX technology.

Understanding the JavaScript Engine: Implementation DetailsUnderstanding the JavaScript Engine: Implementation DetailsApr 17, 2025 am 12:05 AM

Understanding how JavaScript engine works internally is important to developers because it helps write more efficient code and understand performance bottlenecks and optimization strategies. 1) The engine's workflow includes three stages: parsing, compiling and execution; 2) During the execution process, the engine will perform dynamic optimization, such as inline cache and hidden classes; 3) Best practices include avoiding global variables, optimizing loops, using const and lets, and avoiding excessive use of closures.

Python vs. JavaScript: The Learning Curve and Ease of UsePython vs. JavaScript: The Learning Curve and Ease of UseApr 16, 2025 am 12:12 AM

Python is more suitable for beginners, with a smooth learning curve and concise syntax; JavaScript is suitable for front-end development, with a steep learning curve and flexible syntax. 1. Python syntax is intuitive and suitable for data science and back-end development. 2. JavaScript is flexible and widely used in front-end and server-side programming.

Python vs. JavaScript: Community, Libraries, and ResourcesPython vs. JavaScript: Community, Libraries, and ResourcesApr 15, 2025 am 12:16 AM

Python and JavaScript have their own advantages and disadvantages in terms of community, libraries and resources. 1) The Python community is friendly and suitable for beginners, but the front-end development resources are not as rich as JavaScript. 2) Python is powerful in data science and machine learning libraries, while JavaScript is better in front-end development libraries and frameworks. 3) Both have rich learning resources, but Python is suitable for starting with official documents, while JavaScript is better with MDNWebDocs. The choice should be based on project needs and personal interests.

From C/C   to JavaScript: How It All WorksFrom C/C to JavaScript: How It All WorksApr 14, 2025 am 12:05 AM

The shift from C/C to JavaScript requires adapting to dynamic typing, garbage collection and asynchronous programming. 1) C/C is a statically typed language that requires manual memory management, while JavaScript is dynamically typed and garbage collection is automatically processed. 2) C/C needs to be compiled into machine code, while JavaScript is an interpreted language. 3) JavaScript introduces concepts such as closures, prototype chains and Promise, which enhances flexibility and asynchronous programming capabilities.

JavaScript Engines: Comparing ImplementationsJavaScript Engines: Comparing ImplementationsApr 13, 2025 am 12:05 AM

Different JavaScript engines have different effects when parsing and executing JavaScript code, because the implementation principles and optimization strategies of each engine differ. 1. Lexical analysis: convert source code into lexical unit. 2. Grammar analysis: Generate an abstract syntax tree. 3. Optimization and compilation: Generate machine code through the JIT compiler. 4. Execute: Run the machine code. V8 engine optimizes through instant compilation and hidden class, SpiderMonkey uses a type inference system, resulting in different performance performance on the same code.

Beyond the Browser: JavaScript in the Real WorldBeyond the Browser: JavaScript in the Real WorldApr 12, 2025 am 12:06 AM

JavaScript's applications in the real world include server-side programming, mobile application development and Internet of Things control: 1. Server-side programming is realized through Node.js, suitable for high concurrent request processing. 2. Mobile application development is carried out through ReactNative and supports cross-platform deployment. 3. Used for IoT device control through Johnny-Five library, suitable for hardware interaction.

Building a Multi-Tenant SaaS Application with Next.js (Backend Integration)Building a Multi-Tenant SaaS Application with Next.js (Backend Integration)Apr 11, 2025 am 08:23 AM

I built a functional multi-tenant SaaS application (an EdTech app) with your everyday tech tool and you can do the same. First, what’s a multi-tenant SaaS application? Multi-tenant SaaS applications let you serve multiple customers from a sing

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor