What is the purpose of<! DOCTYPE> declaration
Answers
Answered by
3
Answer:
The DOCTYPE declaration is an instruction to the web browser about what version of HTML the page is written in. This ensures that the web page is parsed the same way by different web browsers. In HTML 4.01, the DOCTYPE declaration refers to a document type definition (DTD)
Answered by
26
ᴛʜᴇ ᴅᴏᴄᴛʏᴘᴇ ᴅᴇᴄʟᴀʀᴀᴛɪᴏɴ ɪꜱ ᴀɴ ɪɴꜱᴛʀᴜᴄᴛɪᴏɴ ᴛᴏ ᴛʜᴇ ᴡᴇʙ ʙʀᴏᴡꜱᴇʀ ᴀʙᴏᴜᴛ ᴡʜᴀᴛ ᴠᴇʀꜱɪᴏɴ ᴏғ ʜᴛᴍʟ ᴛʜᴇ ᴘᴀɢᴇ ɪꜱ ᴡʀɪᴛᴛᴇɴ ɪɴ. ᴛʜɪꜱ ᴇɴꜱᴜʀᴇꜱ ᴛʜᴀᴛ ᴛʜᴇ ᴡᴇʙ ᴘᴀɢᴇ ɪꜱ ᴘᴀʀꜱᴇᴅ ᴛʜᴇ ꜱᴀᴍᴇ ᴡᴀʏ ʙʏ ᴅɪғғᴇʀᴇɴᴛ ᴡᴇʙ ʙʀᴏᴡꜱᴇʀꜱ. ɪɴ ʜᴛᴍʟ 4.01, ᴛʜᴇ ᴅᴏᴄᴛʏᴘᴇ ᴅᴇᴄʟᴀʀᴀᴛɪᴏɴ ʀᴇғᴇʀꜱ ᴛᴏ ᴀ ᴅᴏᴄᴜᴍᴇɴᴛ ᴛʏᴘᴇ ᴅᴇғɪɴɪᴛɪᴏɴ (ᴅᴛᴅ).
Similar questions