Css Intro2023
Css Intro2023
CasCaDInG STYle
SheeTs
What is CSS
• CSS or Cascading Style Sheet allows you to control the
styles for your web pages, including the design, layout
and variations in display for different devices and screen
sizes.
WHY CSS?
1. CSS saves time : You can write CSS once and reuse same sheet in multiple HTML
pages.
2. Easy Maintenance : To make a global change simply change the style, and all elements
in all the webpages will be updated automatically.
3. Search Engines : CSS is considered as clean coding technique, which means search
engines won’t have to struggle to “read” its content.
4. Superior styles to HTML : CSS has a much wider array of attributes than HTML, so you
can give a far better look to your HTML page in comparison to HTML attributes.
5. Offline Browsing : CSS can store web applications locally with the help of offline
catche.Using of this we can view offline websites.
W h o C r eaTes a n D
M a I n T a I n s CSS?
● CSS is created and maintained through a group of people within the W3C called the
CSS Working Group. The CSS Working Group creates documents called specifications.
When a specification has been discussed and officially ratified by the W3C members, it
becomes a recommendation.
● These ratified specifications are called recommendations because the W3C has no
control over the actual implementation of the language. Independent companies and
organizations create that software.
● NOTE − The World Wide Web Consortium, or W3C is a group that makes recommendations about
how the Internet works and how it should evolve.
✓ The SELECTOR points to the html element you want to
style.
✓ The DECLARATION BLOCK contains one or more
declarations separated by semicolons.
Each HTML page must include a reference to the external style sheet file inside
the <link> element, inside the head section.
All the styles in a page will "cascade" into a new "virtual" style sheet
by the following rules, where number one has the highest priority:
So, an inline style has the highest priority, and will override external
and internal styles and browser defaults.