Made By : Lavish Chauhan & Abhay Verma

Slides:



Advertisements
Similar presentations
Intro To Cascading Style Sheets By Mario Yannakakis.
Advertisements

Cascading Style Sheets (CSS). Cascading Style Sheets With the explosive growth of the World Wide Web, designers and programmers quickly explored and reached.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
It’s All About Style The Basics of Style Sheets Presented by Barry Diehl.
Introduction to CSS.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
“Cascading Style Sheets” for styling WWW information DSC340 Mike Pangburn.
CM143 Week 4 Introducing CSS. Cascading Style Sheets A definition for the style in which an element of the webpage will be displayed Border width, colour,
Using Cascading Style Sheets (CSS) Dept. of Computer Science and Computer Information CSCI N-100.
Understanding HTML Style Sheets. What is a style?  A style is a rule that defines the appearance and position of text and graphics. It may define the.
STYLING THE WEBSITE - EXTERNAL CSS BY JORGE MARTINEZ.
Different ways to implement CSS. There are four different ways to use CSS in your web pages: – Inline CSS – Embedded CSS/Internal CSS – Linked CSS/External.
Cascading Style Sheets (CSS) 1.  What is CSS?  Why CSS?  How to write a CSS? 2.
The Characteristics of CSS
Css. Definition Cascading style sheet (CSS) Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
INTRODUCTION TO CSS. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features of CSS Features of CSS  Creating Style Sheet Creating Style Sheet.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
What is CSS? A set of style rules that tell the web browser how to present a web page or document. – In earlier versions of HTML, style characteristics,
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
CSS Cascading Style Sheets. Session Checklist ► Learn why style sheets are needed and their advantages and disadvantages ► Learn the format of a style.
Cascading Style Sheets Using HTML. What are they? A set of style rules that tell the web browser how to present a web page or document. In earlier versions.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
WEB FOUNDATIONS CSS Overview. Outline  What is CSS  What does it do  Where are styles stored  Why use them  What is the cascade effect  CSS Syntax.
CSS.
The Basics of Style Sheets Presented by Barry Diehl
HTML WITH CSS.
Web Development & Design Foundations with XHTML
4.01 Cascading Style Sheets
An Introduction to Cascading Style Sheets
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
HTML WITH CSS.
Introduction to CSS.
Cascading Style Sheets
Cascading Style Sheets
Madam Hazwani binti Rahmat
CX Introduction to Web Programming
Web Developer & Design Foundations with XHTML
Cascading Style Sheets (CSS)
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Introduction to Web programming
Dynamic HTML.
CASCADING STYLE SHEET CSS.
Cascading Style Sheets - Building a stylesheet
Introduction to CSS.
Introduction to Web programming
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Software Engineering for Internet Applications
DynamicHTML Cascading Style Sheet Internet Technology.
Introduction to Cascading Style Sheets (CSS)
Working with Text and Cascading Style Sheets
Web Programming– UFCFB Lecture 11
What are Cascading Stylesheets (CSS)?
Cascading Style Sheets™ (CSS)
DynamicHTML Cascading Style Sheet Internet Technology.
Tutorial 3 Working with Cascading Style Sheets
Part 1: Cascading Style Sheets
Introduction to CSS.
CS3220 Web and Internet Programming CSS Basics
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2016 Terry Ann Morris, Ed.D.
Stylin’ with CSS.
4.01 Cascading Style Sheets
Cascading Style Sheets III B. Com (Paper - VI) & III B
INTERNATIONAL INSTITUTE OF IFORMATION TECHNOLOGY, (I²IT)
CS332A Advanced HTML Programming
Presentation transcript:

Made By : Lavish Chauhan & Abhay Verma PHP ASSIGNMENT CSS PPT Made By : Lavish Chauhan & Abhay Verma

Cascading Style Sheets (CSS) Describes the appearance, layout, and presentation of information on a web page HTML describes the content of the page Describes how information is to be displayed, not what is being displayed Can be embedded in HTML document or placed into separate .css file Controls the presentation layers in a web document by which developer gains more degree of control of website appearance . It can be cached after the first request and be re-used for every page on the same website, it does not have to be downloaded with every webpage so faster loading. CS380

Basic CSS rule syntax selector { property: value; ... } p { font-family: sans-serif; color: red; } A CSS file consists of one or more rules Each rule starts with a selector A selector specifies an HTML element(s) and then applies style properties to them a selector of * selects all elements

Advantages of CSS Better layout control. Reduce work. Faster download & Web Page loading. Easy maintenance. Search Engine Friendly. Absolute Positioning.

Disadvantages of CSS Cross browser Issues - Implementing initial CSS changes on a website is easy on the developer’s end. However, after the changes have been made, you will have to confirm the compatibility if the CSS is displaying similar change effects on all the browsers. This is simply due to the fact that CSS works differently on different browsers.  Vulnerable - if you have worked with CSS, you probably know that it is easily accessible because of its open text-based system. An accident or a mere act of mischief with the files can end up disrupting the display and formatting of your entire website. It would only require a read/write access to the intended website to override the changes. 

CSS properties for fonts Property Description font-family which font will be used font-size how large the letters will be drawn font-style used to enable/disable italic style font-weight used to enable/disable bold style CS380

Ways of inserting Style sheet in Html Including style information within HTML (INLINE) Embedding a style sheet (INTERNAL) Linking to an external style sheet (EXTERNAL) Importing a style sheet (IMPORTING)

Embedding style sheets: <style> <head> <style type="text/css"> p { font-family: sans-serif; color: red; } h2 { background-color: yellow; } </style> </head> HTML CSS code can be embedded within the head of an HTML page Bad style and should be avoided when possible CS380

Advantages Disadvantages Style must be downloaded every time someone visits the page which cause a slightly slower browsing experience It can be useful for sending the page via email or if is used as a template

Attaching a CSS file <link> <head> ... <link href="filename" type="text/css" rel="stylesheet" /> </head> HTML <link href="style.css" type="text/css" rel="stylesheet" /> <link href="http://www.google.com/uds/css/gsearch.css" rel="stylesheet" type="text/css" /> HTML a conflict (two sheets define a style for the same HTML element A page can link to multiple style sheet files In case of a conflict (two sheets define a style for the same HTML element), the latter sheet's properties will be used CS380

Advantages Disadvantages  It can be created once and the rules applied to multiple web pages. Should you need to make widespread changes to your site design, you can make a single change in the stylesheet and it will be applied to all linked pages, saving time and effort. - In order to import style information for each document, an extra download is needed.   Until the external style sheet is loaded, it may not be possible to render the document.  For small number of style definitions, it is not viable.

Inline styles: The style attribute <p style="font-family: sans-serif; color: red;"> This is a paragraph</p> HTML This is a paragraph output Higher precedence than embedded or linked styles Used for one-time overrides and styling a particular element  They’re useful for quick, permanent changes, but are less flexible than external and internal stylesheets as each inline style you create must be separately edited should you decide to make a design change. CS380

Importing CSS file within a CSS @ import “new style.css” CSS e.g. : body { background-color : blue } h1 { color: white; text align: center; Import the “new style.css" style sheet ONLY if the media is print

Advantages Disadvantages By importing your style sheets, you would essentially be making them available to more modern, standards compliant browsers while "hiding" them from the older browser versions. Another use for the @import method is to use multiple style sheets on a page, while only including a single link in your document's . There are no performance problems, although we’ll see it could result in JavaScript errors due to race conditions. The two stylesheets are downloaded in parallel. The problems arise when @import is embedded in other stylesheets or is used in combination with LINK.

THE END