How to check the html version that any web application uses?

How can I check which version of html my web application is using? I have a complete codebase, but I'm not sure where to check the html version? In jsp I don't see anything related to the html version.

EDIT: - On Google. most of the material says that the source of the page, the very first line tells the html version. When I do the same isee

<!doctype html> 

Now I'm not sure which version of html will be displayed from the above line?

+6
source share
1 answer

Check the DOCTYPE declaration in the html file.

HTML5

 <!DOCTYPE html> 

HTML 4.01 Strict

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
+16
source

Source: https://habr.com/ru/post/919517/


All Articles