0

What is the meaning of extension in html

I was give that the extension of HTML is .html or .htm and why it need to be added in any Html file

9th Aug 2020, 7:32 AM
Iron Man
Iron Man - avatar
2 Antworten
+ 2
audio file saved as audioname.mp3 Video file saved as videoname.mp4 or video name.ogg Similarly html file is saved as filename.html or filename.htm to ease the browser to recognise the filetype of file. Here .mp3 .mp4 .off .html .htm these are called extension.
9th Aug 2020, 7:38 AM
Divya Mohan
Divya Mohan - avatar
+ 1
So the browser knows, that it is a markup file that it can translate into graphical webpage by reading the HTML inside.
9th Aug 2020, 7:34 AM
Jan Štěch
Jan Štěch - avatar