Header Ads

Working of CSS


You can embed the CSS code within the HTML code or link the HTML fie externally to the CSS fie. The browser will locate the style sheet irrespective of its location and will apply the style to the HTML page. There are certain steps involved in applying a style sheet to an HTML page. These steps are as follows:

  1. The user requests for a Web page from the browser using the URL.
  2. The server responds with the HTML fie and related files such as image files, audio files, and external .css files, if any.
  3. The browser executes the CSS code using the rendering engine and applies the styles to the HTML file.
  4. The Web page is then displayed in the browser.
The rendering engine is a software that applies the formatting instructions to the Web page and displays the formatted content on the screen.


    No comments:

    Powered by Blogger.