Home >Web Front-end >HTML Tutorial >Detailed differences between html and HTML5
HTML and HTML5 are both HTML, but usually the HTML we are talking about is only the HTML4.0 version or the previous version, and HTML5 is the latest HTML version released by w3c, which means that HTML and HTML5 are different from HTML. Version.
First of all, let’s introduce what HTML is. The professional definition of HTML is hypertext markup language. The so-called hypertext means that it is not just text, but also pictures, audio, video, etc., which can be marked. HTML language It is executed by the browser and is used to tell the browser what to display and how to display it. In layman's terms, it tells the browser what format to use to display our hypertext content. Our usual web pages are HTML combined with some other languages. maded.
Give a simple example
<font color="red">百度知道</font>
This purchasing agent can make the content of the words "Baidu know" appear in red on the browser.
About the detailed differences between html5 and HTML.
Most of our current web pages are still developed using the html4.0 standard. The reason why there is HTML is because the current HTML version can no longer meet the needs of developers or users, so there is html5.
Compared to htm4.0, what new features has been added to HTML?
HTML5 is designed to support multimedia on mobile devices. New syntax features were introduced to support this, such as video, audio, and canvas tags. HTML5 also introduces new features that can truly change the way users interact with documents.
In addition to being more suitable for developing mobile terminals, html5 also has many new features such as:
Semantic features, HTML5 gives web pages better meaning and structure. Richer tags will come with support for RDFa, microdata and microformats, building a data-driven Web that is more valuable to both programs and users.
Local storage feature, web APP developed based on HTML5 has shorter startup time and faster network speed, all thanks to HTML5 APP Cache and local storage function. Indexed DB (one of the most important technologies for html5 local storage) and API documentation.
Device compatibility features, HTML5 provides web application developers with more functional optimization options and brings more experience function advantages. HTML5 provides an unprecedented open interface for data and application access. Allows external applications to be directly connected to the data inside the browser, for example, video and audio can be directly connected to microphones and cameras.
Three-dimensional, graphics and special effects features. Based on the 3D functions of SVG, Canvas, WebGL and CSS3, users will be amazed by the amazing visual effects presented in the browser.
CSS3 features, without sacrificing performance and semantic structure, CSS3 provides more styles and stronger effects. In addition, the Web's Open Font Format (WOFF) also provides greater flexibility and control than previous Web typography. etc.
In short, html5 is a version with cross-era significance. It makes html also have programming characteristics, and a large number of API interfaces allow html5 to do things that programming languages can do, such as webapps.
The above is the detailed content of Detailed differences between html and HTML5. For more information, please follow other related articles on the PHP Chinese website!