1. Compiling is necessary in HTML.
Answers
Answer:
There is difference between High level language and scripting language.
A high-level programming language that is interpreted by another program at runtime rather than compiled by the computer's processor as other programming languages (such as C and C++) are some are platform dependent and some independent (will not go in depth)
Whereas, Scripting languages, which can be embedded within HTML, commonly are used to add functionality to a Web page, These types of languages are client-side scripting languages, affecting the data that the end user sees in a browser window. Other scripting languages are server-side scripting languages that manipulate the data, usually in a database, on the server.
HTML has nothing to do with the Operating System, it renders by a “Rendering Engine” on web bowers.
Here’s the short rendering steps.
1 - Parsing HTML and creating the DOM Tree - All the HTML tags elements parsed and turned into a “DOM Tree” by rendering engine.
2 - Render Tree Construction - CSS attributes (style attribute) are also parsed and combined with the DOM tree to create a “Render Tree”. These are the visuals elements like height/width, font color, back color, animations etc.
3 - Layout Process - After construction of rendering tree the rendering engine recursively goes through HTML elements in the tree and figure out how it should visible/placed on the bower's screen.
4 - Painting - Each node of the render tree is drawn out on the screen. this is the step where you see the actual web site which you opened.