ad

Wednesday, November 9, 2022

CSS introduction


       Introduction to CSS 




CSS stands for Cascading Style Sheets. It is used to format the layout's of web pages in the website. It is describes the HTML elements are to be displayed on screen, paper, or in other media. It takes care of the presentation and helps you determine how the pages and content that you make with HTML are going to look and display. It can control to css layout  multiple web pages all at once.


The name cascading comes from the specified priority scheme to determine which style rule applies more than one rule matches a particular element. The CSS specifications are maintained by the rld Wide Web Consortium. Before CSS, If we want to assign a typographic characteristics to say, all H2 headings had to repeat HTML presentational markup for each occurrence of that heading type. This made documents more complex, larger, more error-prone and is difficult to maintain.

To solve this problem to the World Wide Web Consortium created CSS. Its removed to the style formatting from  HTML page. It also Saves to the Lot of Work and Time. The style definitions are normally is save  external css files. With an external CSS file, you can change the look of an entire website by changing just one file at a time. (Cascading Style Sheet) CSS  is the describes  HTML elements which  display on screen, paper, or in other media. It saves a lot of time. It control the layout of multiple web pages at the one time.

CSS allows the separation of presentation from structure. CSS  define text alignment size, color, font,  borders, spacing, layout and many other typographic characteristics and can do independently for on-screen and printed views. CSS also defines non-visual styles such as speed reading .

         Cascading Style Sheets, fond referred to  CSS is a simply designed language intendded to simplify the process of making web pages presentable. CSS allow you to apply styles web pages. More importantlto the , CSS enables you independent of the HTML that makes up each web page. Its describes how a webpage look it prescribes fonts, spacing,colors and much more. In short, you create your website look however you want. CSS developers and designers define to how it behave including how elements  positioned in the browser.


While html uses tags, css uses rulesets. CSS  easy to learn or understand, but it provid powerful control over the presentation of an HTML document.

CSS saves the time :-

  You can write CSS once and reuse to same sheet in multiple HTML pages.

Easy to  Maintenance :-

 To make a global change simply change to the style, and all elements in the webpages will be updated automatically.

Search Engines: 

CSS is considered a clean coding technique, which means search engines won’t have to struggle to “read” its content.

Superior styles  HTML:-

 CSS has  much wider array of attributes than the HTML, so you can give a far better look  your HTML page and comparison to HTML attributes.

Offline Browsing: 

CSS can store in web applications locally with  help of and offline cache. Using and  view offline websites.


CSS Features 


Consistency :-

 With CSS, it is easy to make changes to the pages of your website. By making one change to your CSS stylesheet, you can consequently make it to each page of website. 


Appearance :-

With CSS, it is easy to improve the look-and-feel of the website from one place it allows you to use a wide array of extensive and expressive styles.


intainability :- 

Whenever a change is made to your website stylesheet, CSS allows you to omatically correct and change every page of your website.


Saves Time :-

CSS you only need to specify details of styling once or element it will automatically apply the specified styles whenever that particular element occurs Hence, it saves a lot of time by not forcing you to rewrite everything again and again.


Advantage of CSS 


Easy maintenance:-

 To makeeasy maintenance global change, simply change  style, and the all elements in  web pages will be updated automatically. 


Global web standards :- 

 HTML attributes are being deprecated and it is being recommended  use CSS. So its good idea to the start using CSS in all the HTML pages to make them compatible with future browsers.

 

Platform Independence :- 

The Script offer consistent platform independence in css and can support latest browsers as well. 


CSS saves time :- 

You  write CSS once and  reuse the same sheet in multiple HTML pages. You can define a style for each HTML element and apply many Web pages as you want.


Ways to write CSS:- 

 CSS write styles 3 way Inline element line, Internal style write in header section, or External style sheets enable you to change the elements and layout style of all the pages in a website, just by editing one single file



Related Post 

inline css style

CSS Class Selector

css-text-properties

External CSS

CSS button


No comments:

Post a Comment