Why HTML is used for World Wide Web? Why doc file or txt file is not used?

I searching for answers for my students - Why .doc file or .txt file is not used for WWW? Why HTML is required to invent for WWW?

I have searched google few times but failed to get the answer. Please help me with some resources.

Thank you.
10 answers 10