CSS (Cascading Style Sheets)
§ In This tutorial we will discuss CSS stands for Cascading Style Sheets.
§ This
tutorial covers both the versions CSS1, CSS2 and CSS3, and gives a complete
understanding of CSS, starting from its basics to advanced concepts.
Introduction of CSS
§ CSS
stands for Cascading Style Sheets. CSS is a standard style sheet language used
for describing the presentation (i.e. the layout and formatting) of the web
pages.
§ CSS
stands for Cascading Style Sheets. Styles define how to looks like the HTML
elements.
§ When
we are working with development of the large websites became a long and
expensive process, since the style information was repeatedly added to every
single page of the website.
§ To
writing style information to every page which are repeatedly required makes
complex
§ To
resolve this problem CSS was introduced in 1996 by the World Wide Web
Consortium (W3C).
§ Using
Html we can design a web page.
§ Now
CSS was designed to enable the separation of presentation and content.
§ Now web designers can move the formatting information of the web pages to a separate style sheet which results in considerably simpler HTML markup, and better maintainability.
Definition of CSS
§ Cascading
Style Sheets (CSS) is a rule based language that applies styling to HTML
elements.
§ CSS
is used to design HTML tags.
§ CSS
is a widely used language on the web.
§ We write CSS rules in Html elements (<p>, <img>), and modify properties of those elements such as color, background color, width, border thickness, font size, etc.
§ The
biggest advantage of CSS is that content and style can be kept separately.i.e
CSS allows the separation of style and layout from the content of the document.
Easy Maintenance
§ With
the help of CSS, we can update the formatting of the document in a very simple way.
And manage consistency in multiple documents because we can control the style
of the entire web page by maintaining one or two CSS files.
Superior Styles to HTML
§ CSS
has more capability of the presentation than the HTML and provide much better
control over the layout of your web pages, i.e. that you can prepare the
presentation of your web pages in better look comparison to the HTML
presentational elements and attributes.
Saves a lot of time
§ Using
CSS we can save a lot of time by saving CSS in external file so it is possible
to change the entire website by changing just one file.
Post a Comment