Cascading Style Sheets. What is CSS? Short for Cascading Style Sheets, a new feature being added to HTML that gives more control over how pages are displayed.

Slides:



Advertisements
Similar presentations
Intro to HTML. HTML HTML = HyperText Markup Language Used to define the content of a webpage HTML is made up of tags and attributes Content.
Advertisements

CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
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.
CSS CSS Precise Aesthetic Control. Cascading Style Sheets Though they can be put in HTML header, usually a separate page that the HTML links to Contains.
XP Introducing Cascading Style Sheets With Cascading Style Sheets (CSS), you can create one or more documents that control the appearance of some or all.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Cascading Style Sheets. Slide 2 Lecture Overview Overview of Cascading Style Sheets (CSS) Ways to declare a CSS CSS formatting capabilities New features.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
4.01 Cascading Style Sheets
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.
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.
© 2012 Adobe Systems Incorporated. All Rights Reserved. LEARNING THE LANGUAGE OF THE WEB INTRODUCTION TO HTML AND CSS.
IT Introduction to Website Development Welcome!
Principles of Web Design 6 th Edition Chapter 4 – Cascading Style Sheets.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
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.
HTML & CSS.
Today’s objectives  Presentational | Inline | Block | Validate  CSS | Rules | Declarations.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
I NTRO TO CSS IAT100 Spring I NTRO TO CSS Covered in this lesson: Overview What is CSS? Why to use CSS? CSS for Skinning your Website Structure.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 2 Cascading Style Sheets (CSS)
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Click to begin Click to begin Mr. Thomas CSS Multiple Multiple Choice Fill-In The Fill-In The Blank Fill-In The Fill-In The Blank 10 Points 20 Points.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Cascading Style SHEETS for formatting and layout control CSS HTML HTML HTML HTML HTML.
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.
CO1552 – Web Application Development Cascading Style Sheets.
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.
CSS Basic (cascading style sheets)
WRT235: Writing in Electronic Environments Basic CSS.
IS 360 Declaring CSS Styles. Slide 2 Introduction Learn about the three ways to declare a style Inline / embedded / external Learn about the effect of.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
IS1825: Developing Multimedia Applications for Business Lecture 1: Introduction to CSS Rob Gleasure
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
Web Design and Development for Business Lecture 4 Cascading Style Sheet (CSS)
Definition CSS “Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how.
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.
October 21, Learn about Cascading Style Sheets LACUNY Web Management Roundtable October 21, 2005
Cascading Style Sheets
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 8: Working with Style Sheets.
Introduction to CSS. Why CSS? CSS Provides Efficiency in Design and Updates CSS relatively easy to use Can give you more flexibility and control Faster.
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.
Cascading Style Sheets
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.
Designing Web Pages The case for CSS. The Power of CSS css Zen Garden
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
Style Sheets. Coding Style Sheets  Style sheets use RULES to create the style  A selector (a tag or user-defined style name)  and then declarations.
Intro to CSS Christy. What is CSS?  Cascading Style Sheets  Separates content from presentation  Defines how to display HTML elements  Provides control.
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.
Basic HTML Page 1. First Open Windows Notepad to type your HTML code 2.
Chapter 4 Frames and Cascading Style Sheets. Frames Frames divide a browser window into two or more separate pieces or panes, with each pane containing.
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…
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.
CSS Cascading Style Sheets
4.01 Cascading Style Sheets
IS 360 Declaring CSS Styles
Madam Hazwani binti Rahmat
Intro to CSS CS 1150 Fall 2016.
Website Design 3
Cascading Style Sheets - Building a stylesheet
Intro to CSS CS 1150 Spring 2017.
What are Cascading Stylesheets (CSS)?
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Cascading Style Sheets - Building a stylesheet
4.01 Cascading Style Sheets
External Style Sheets.
Presentation transcript:

Cascading Style Sheets

What is CSS? Short for Cascading Style Sheets, a new feature being added to HTML that gives more control over how pages are displayed. With CSS, you can create style sheets that define how different elements, such as headers and links, appear. These style sheets can then be applied to any Web page. –a means for web authors to separate the appearance of web pages from the content of web pages is a recommendation of the World Wide Web Consortium (the W3C).World Wide Web Consortium

History of CSS CSS 1 became a recommendation in late 1996 CSS 2 became a recommendation in May of CSS 2, revision 1 was released in January 2003

Basic HTML Page My Page Here’s my page.

A Style Sheet A style sheet is a simple concept: it's a page of style definitions or specifications that tell the browser how to display the various elements on a page. You can build our style sheet into the head element of your web page: My Page media=“all”> <!-- -- >

External Style Sheet You can also use an external style file by placing the following in the head element of your page: “basicstyle” is a text file with a.css extension located in the same directory as your html document. My Page <link rel="stylesheet" type="text/css" href=“basicstyle.css" media=“screen”/>

Rules Correspond to elements in an HTML document. Elements are deliniated by tags such as, … Rules correspond to HTML elements. A Rule which selects the body is called a body selector An example of a p selector: p {font-family: verdana; color: red}

Syntax <!-- body { background-color: #e8eae8; color: #5d665b; margin: 50px; font-family: Verdana, Geneva, Arial, sans-serif; font-size: small; line-height: 180% } -->

Syntax Every CSS statement must have a selector and a declaration. The declaration is one or more properties separated by semicolons. Each property has a property name followed by a colon and then the value for that property. Sometimes a property can take a number of values. The values in the list should be separated by a comma and a space. White space can be used to make your style sheet easier to read and write.

Comments /* This is a style sheet comment */ What is the syntax of an HTML comment?

Why Shouldn’t Your bgcolor=“ffffff”?

Download a Web Page Create a working directory ( playpen ) Download ( Right click the link/ Save target as ) the starting web page to the playpen directory.starting web page

Link To An External CSS Using Notepad to edit startingPage, insert the following line in the head section (between and tags) of the html document. Select File / Save to save the change to startingPage.html

Create CSS Create a new file with Notepad. Save it as basicss.css in your playpen directory Verify that the.css extension is correct in Windows Explorer.

Work Tutorial Display startingPage in a browser on your desktop. Open a new browser window and select the hyperlink at the beginning of the webpage to access the CSS tutorial. Use basicss.css and startingPage.html to experiment with CSS as you read through the tutorial, CSS From the Ground Up.CSS From the Ground Up

Note Stop when you finish Section 10. your.css and.html to me: Copy yourself.