CASCADING STYLE SHEET WEB TECHNOLOGY

Slides:



Advertisements
Similar presentations
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
Advertisements

1 Styles and CSS David Douglas Sam M. Walton College of Business, University of Arkansas “Connecting scholarship and research with business practice”
Part 2 Introduction to CSS. CSS Syntax – class selector 1 With the class selector you can define different styles for the same type of HTML element. You.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
Technologies for web publishing Ing. Václav Freylich Lecture 5.
 ult.htm ult.htm  This website illustrates the use of CCS (style sheets)
CSS Style Rules Guang Tong, Zhan L;lo’p[ Css Style Rule Guang Tong Zhan Three ways to insert CSS 1 External style sheet 2 Internal style sheet 3 Inline.
Cascading Style Sheets
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Designing Web Pages The case for CSS. The Power of CSS css Zen Garden
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
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 SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
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.
Fall 2016 CSULA Saloni Chacha
CSS.
Cascading Style Sheets
IS1500: Introduction to Web Development
Cascading Style Sheet.
CSS Cascading Style Sheets
INTRO TO WEB DEVELOPMENT html
Getting Started with CSS
4.01 Cascading Style Sheets
>> Introduction to CSS
Cascading Style Sheets
Introduction to the Internet
Lecture 9. Cascading Style Sheets
Concepts of HTML, CSS and Javascript
Madam Hazwani binti Rahmat
>> CSS Rules Selection
CX Introduction to Web Programming
Cascading Style Sheets (CSS)
Introduction to Web programming
Intro to CSS CS 1150 Fall 2016.
CASCADING STYLE SHEET CSS.
Website Design 3
Introduction to CSS.
Intro to CSS CS 1150 Spring 2017.
Software Engineering for Internet Applications
Cascading Style Sheets
DynamicHTML Cascading Style Sheet Internet Technology.
Stylin’ with CSS.
Cascading Style Sheets
Web Programming– UFCFB Lecture 11
What are Cascading Stylesheets (CSS)?
DynamicHTML Cascading Style Sheet Internet Technology.
CSS: Cascading Style Sheets
Training & Development
Tutorial 3 Working with Cascading Style Sheets
Apply procedures to create cascading style sheets.
EQUIVALENCE CALCULATIONS UNDER INFLATION
Made By : Lavish Chauhan & Abhay Verma
INTERNATIONAL INSTITUTE OF IFORMATION TECHNOLOGY, (I²IT)
Cascading Style Sheet.
Newton’s Laws of Motion
Differential Equation
BINARY HEAP Prof ajitkumar shitole Assistant Professor Department of computer engineering Hope Foundation’s International Institute of Information.
Hope Foundation’s International Institute of Information.
Stylin’ with CSS.
4.01 Cascading Style Sheets
Web Client Side Technologies Raneem Qaddoura
Stylin’ with CSS.
Tel Hope Foundation’s International Institute of Information Technology, (I²IT). Tel
Web Programming and Design
INTERNATIONAL INSTITUTE OF IFORMATION TECHNOLOGY, (I²IT)
Introduction to Cascading Style Sheets (CSS)
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

CASCADING STYLE SHEET WEB TECHNOLOGY PREPARED BY: PROF. KIMI B. RAMTEKE HOPE FOUNDATION’S INTERNATIONAL INSTITUTE OF IFORMATION TECHNOLOGY, (I²IT) www.isquareit.edu.in +91 20 22933441 / 2

Web Technology UNIT 1 Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

Contents Introduction to CSS Use of CSS Syntax of CSS Types of CSS External CSS Internal CSS Inline CSS Exercise Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

CSS Introduction CSS stands for Cascading Style Sheets CSS depicts about how HTML elements are to be displayed on screen, different media devices CSS saves a lot of time for styling many pages of a big website just at once with single control file(.css). Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

Why to Use CSS? CSS is helps you to give design, layout for your web pages and variations in display for various devices and sizes of the screen.  Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

CSS Syntax Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

CSS Syntax Description The selector helps to style the HTML element you want. The declaration block can contains one or many declarations which need to be separated by semicolons. Each declaration has two parts: 1. property name 2. a value and both are separated by a colon(:). Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

How to apply CSS to HTML 3 Ways: External style sheet External style sheet helps to change style of multiple pages of a website at once by making changes in just one file. Internal style sheet An internal style sheet is helpful if one single page has to give a different style. Inline style An inline style is helpful if element need to be styled differently. Website Level style Page Level Style Element level Style Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

External style sheet HTML file <!DOCTYPE html> <html> Separate HTML file Separate CSS File HTML file <!DOCTYPE html> <html> <head> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html> CSS File <style> body {background-color: powderblue;} h1 {color: blue;} p {color: red;} </style> Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

External style sheet Test.html <!DOCTYPE html> <html> <head> <link rel="stylesheet" type=“text/css” href=“Demo.css"> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html> Demo.css <style> body {background-color: powderblue;} h1 {color: blue;} p {color: red;} </style> Linking CSS with HTML Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

Internal style sheet CSS embedded in HTML <html> <head> ......This is example of Internal CSS, style is written inside head element only......... <style> body {background-color: powderblue;} h1 {color: blue;} p {color: red;} </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html> CSS embedded in HTML Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

Inline style <!DOCTYPE html> <html> <body> <h1 style="color:Red;">This is a Blue Heading</h1> </body>ss </html> Inline CSS Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

Exercise Set "background-color: linen" for the page, using an internal style sheet. Set "background-color: blue" for the page, using an inline style sheet. Set <p> with "background-color: green" and <h1> with “color : green” using external style sheet. Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

Guess the Output? <!DOCTYPE html> <html> <head> <style> h1 { color: orange; } </style> <link rel="stylesheet" type="text/css" href=“Demo.css"> </head> <body> <h1>This is a heading</h1> <p>The style of this document is a combination of an external style sheet, and internal style</p> </body> </html> Hope Foundation’s International Institute of Information Technology, I²IT, P-14 Rajiv Gandhi Infotech Park, Hinjawadi, Pune - 411 057 Tel - +91 20 22933441 / 2 / 3 | Website - www.isquareit.edu.in ; Email - info@isquareit.edu.in

References Ivan Bayross, “Web enabled commercial applications developments using HTML,JavaScript, DHTML,PHP” BPB. https://www.w3schools.com/css/

THANK YOU For further information please contact Prof. Kimi Ramteke Department of Computer Engineering Hope Foundation’s International Institute of Information Technology, I²IT Hinjawadi, Pune – 411 057 Phone - +91 20 22933441 www.isquareit.edu.in | kimir@isquareit.edu.in