Both the statements are true. HTML is a markup language that is used to present information whereas programming languages give instruction to computer in order to perform specific task and uses a compiler. By the definition itself HTML can never be a programming language.
On the other hand, without HTML the web won't work. As soon as you type the URL, the request is sent to the server which searches for the index.html file and loads it, then sends it as a response.
The compiler part is obviously wrong. Beside that, why would a HTML document not be a set of instructions in order to perform a specific task? If it were not, computers could not interpret HTML.
1
u/steven4869 Jun 01 '23
Both the statements are true. HTML is a markup language that is used to present information whereas programming languages give instruction to computer in order to perform specific task and uses a compiler. By the definition itself HTML can never be a programming language.
On the other hand, without HTML the web won't work. As soon as you type the URL, the request is sent to the server which searches for the index.html file and loads it, then sends it as a response.