As seen in numerous articles about webpage rendering. What is the difference between the two?
CodePudding user response:
This is a common term when working with Single Page Applications (SPAs) built on React, Angular, Vue, etc. These frameworks render out Typescript/Javascript into browser-readable HTML. This is different then just making a raw .html file because these framework scripts are being 'rendered' as HTML.
CodePudding user response:
Based on my understanding, HTML is a markup language that can be used to make web pages. Content wise, rendered or not, it will have the same tags <html></html>
, <body></body>
, and so on.
The only different I see as a user is that for a static HTML page, the id tags (e.g. <div id="myID"></div>
) and class tags will likely be same for each visit.
However for rendered HTML page, the ids and classes might be different each time. (e.g. <div id="myID12"></div>
for 1st time, but <div id="myID34"></div>
for the second).
One possible incentive for using rendered HTML is to prevent other people from using web crawlers or automated programs on the website. I hope this answers your question.