Query

How to write different html version other than HTML5 in ?

<!DOCTYPE> indicates the document type and version, so html4 would look like:

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

although i wouldn’t use it if you make something new, but you might see it in older websites