Home >Web Front-end >HTML Tutorial >What was the version of HTML before HTML5
What is the HTML version before HTML5
The version before HTML5 is HTML 4.01, and the HTML5 version is the latest HTML version.
The difference between HTML4.01 and HTML5: 1a309583e26acea4f04ca31122d8c535 Declaration difference
HTML has multiple different versions, only Only by accurately specifying the exact HTML version in the page can the browser display the HTML page correctly. That's what 1a309583e26acea4f04ca31122d8c535 is for.
1a309583e26acea4f04ca31122d8c535 is not an HTML tag, it just provides a declaration to the browser, so it has no closing/ending tag!
HTML 5
<!DOCTYPE html>
HTML 4.01
Specifies three document types: Strict, Transitional, and Frameset. Medium Translated as: strict version, transitional version, and framework-based version!
Strict:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
Transitional:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Frameset:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
Recommended learning: html tutorial
The above is the detailed content of What was the version of HTML before HTML5. For more information, please follow other related articles on the PHP Chinese website!