CASCADING STYLE SHEET.

Slides:



Advertisements
Similar presentations
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
Advertisements

CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
CSS The basics { }. CSS Cascading Style Sheets - language used to – describe html appearance & formatting Style Sheet - file that describes – how html.
/k/k 1212 Cascading Style Sheets Part one Marko Boon
Cascading Style Sheets (CSS) “Styles” for short. Pg. 418.
Cascading Style Sheets
Today CSS HTML A project.
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
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.
CSS. CSS, or Cascading Styles Sheets, is a way to style HTML. Whereas the HTML is the content, the style sheet is the presentation of that document.
Today’s Goals What is HTML?
“Cascading Style Sheets” for styling WWW information DSC340 Mike Pangburn.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
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,
Computing Concepts: CSS. Aims  To understand the uses of css  To understand the different types of css  To be able to create a css file  To be able.
JMD2144 – Lesson 5 Web Design & New Media. ‘Div’ide and conquer One of the most versatile structure tags available is the.. tag Short for ision, it allows.
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.
Basics of HTML.
STYLING THE WEBSITE - EXTERNAL CSS BY JORGE MARTINEZ.
Cascading Style Sheets (CSS) 1.  What is CSS?  Why CSS?  How to write a CSS? 2.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 2 Cascading Style Sheets (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.
Working with Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 5.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
Cascading Style Sheets Creating a Uniform Site. Style Sheets  Style sheets are used for conformity on a web page or web site.  Style sheets eliminate.
Cascading Style Sheets
DYNAMIC HTML What is Dynamic HTML: HTML code that allow you to change/ specify the style of your web pages. Example: specify style sheet, object model.
Cascading Style Sheets August 25-26, What is CSS? a means for web authors to separate the appearance of web pages from the content of web pages.
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company.
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.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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 HTML and website development.
Style Sheets.
>> Introduction to CSS
Introduction to CSS.
Key concepts of Computing
CX Introduction to Web Programming
Web Developer & Design Foundations with XHTML
Unit 2 Style sheets- CSS.
Introduction to Web programming
Intro to CSS CS 1150 Fall 2016.
Cascading Style Sheets
Website Design 3
Cascading Style Sheets - Building a stylesheet
Introduction to CSS.
Intro to CSS CS 1150 Spring 2017.
Software Engineering for Internet Applications
Introduction to Cascading Style Sheets (CSS)
Working with Cascading Style Sheets (CSS)
Working with Cascading Style Sheets (CSS)
What are Cascading Stylesheets (CSS)?
Cascading Style Sheets™ (CSS)
Tutorial 3 Working with Cascading Style Sheets
CSS Styles Introduction.
Web Design and Development
Made By : Lavish Chauhan & Abhay Verma
Johan Ng and Muhammad Hazzry
Cascading Style Sheets - Building a stylesheet
Presentation transcript:

CASCADING STYLE SHEET

Brief History of Web content Web started to exchange information. Text without structure rapidly became unmangeable. HTML – Gave Structure to the text. Up until 1996, the standard method for creating and distributing information via a website.

HTML Formatting Plain text is dull ! HTML allows formatting of text. Red Text <p> <font color = “red” > Red Text </font> </p> Blue Centered Text <p align=“center”> <font color=“blue”> Blue Centered Text </font> </p>

Problem with HTML Clumsy Code Changes become difficult Problem with <basefont> tag. Presentation tags are deprecated in HTML.

Separating Styles from Web Content Solution Separating Styles from Web Content

Placement of Styles Inline Styles – One time Style – High Priority Internal Styles / Embedded Styles External Styles – First Choice – Least Priority

SAME DISADVANTAGES – BETTER INT/EXT Inline Styles Individual elements can have the styles applied within the HTML tag itself. Red Text <p style = “color: Red”> Red Text </p> Blue Centered Text <p style = “color: Blue;text-align:center”> Blue Centered Text </p> SAME DISADVANTAGES – BETTER INT/EXT

Internal / External Style - Syntax Selector { property1: value1; property2: value2; . . . }

Internal Styles <html> <head> <style> p Html Selector { text-align : center; color : Blue; } </style> </head> <body> <p> Blue Centered Text </p> </body> </html>

Internal Styles <body> <h1> <font face = “sans-serif” color = “#3366CC> First Title </font> </h1> <p> …. </p> <h2> <font face = “sans-serif” color = “#3366CC> Second Title </font> </h2> <h2> <font face = “sans-serif” color = “#3366CC> Third Title </body>

Internal Styles <head> <style> h1,h2 { font-family: sans-serif; color: #3366CC; } </style> </head>

External Style Disadvantages of Internal Styles – Placing the set of codes in all webpages. Saved as .css <link rel = “stylesheet” type = “text/css” href = “ styles.css” />

Class Selector Disadvantage of HTML Selector Advantage of Class Selector Syntax: .classname { property : value; . . . } <p class = classname> .. </p>

Examples Changing the Cursor Changing the Scrollbar color Pseudocode Pseudoline Pseudoletter Layers window Scripts

Thank you