HTML WORKING

 

HTML Working

  • You must have heard of frontend and backend.
  • Frontend refers to the visible part of a website or app that users interact with, like the tables, images, and buttons. 
  • It's built using languages like HTML, CSS, and JavaScript. 

How do websites work?

  • When we want to access any information on the internet, we search for it using a web browser. 
  • The web browser retrieves the content from web servers, where it is stored in the form of HTML documents.
  • An HTML document is created by writing code with specific tags in a code editor of your choice. 
  • The document is then saved with the '.html' extension. Once saved, the browser interprets the HTML document, reads it, and renders the web page.



What is a Web Browser?


  • A web browser is a program that understands HTML tags and renders them in a human-readable format that is easily viewable by people visiting the website. 
  • Developers write code in HTML because it's a straightforward way to instruct the web browser on what to display.


What is an HTML Document?

  • An HTML document is a text document saved with the '.html' or '.htm' extension, containing text and specific tags enclosed in '< >'. 
  • These tags provide the necessary instructions for configuring the web page.



What is a Rendered Page:

  • The rendered page is the output screen of our HTML Document which is the page displayed on the browser.  


How does a browser work?

A web browser plays a crucial role in parsing and rendering HTML code to the client. A web browser is a complex program that performs many tasks behind the scenes. Here's a summary of how it works:


  • A browser is an application that reads HTML documents and displays them as web pages. Browsers can't access the content directly from where it's stored; this is where servers come into play.
  • A server acts as an intermediary, listening to browser requests and fulfilling them by delivering the HTML document to the browser.
  • Web browsers perform two main tasks: parsing and rendering.
  • During the parsing stage, the browser receives raw bytes, which are converted into characters. These characters are then converted into tokens, which in turn are transformed into nodes. These nodes are organized into a tree-like data structure known as the DOM (Document Object Model). 
  • Once the DOM tree is constructed, the browser moves on to the rendering stage. At this point, each node in the DOM tree is rendered and displayed on the screen.









Comments

Popular posts from this blog

HTML PAGE STRUCTURE