Why does the browser need information about the type of raw text it will display?


#1

Question

Why does the browser need information about the type of raw text it will display?

Answer

The browser needs this information so that it can give text meaning within the larger context of the document. In other words, the browser uses this information not only for rendering purposes but also so that it can create a structure which other programs (screen readers for example) can interpret.


FAQ: Learn HTML Elements - Intro to HTML - What is HTML?