Cascading Style Sheets (CSS) EXPLORING COMPUTER SCIENCE – LESSON 3-5.

Slides:



Advertisements
Similar presentations
Layouts Using Tables Web Design – Section 4-5 Part or all of this lesson was adapted from the University of Washingtons Web Design & Development I Course.
Advertisements

Introduction to HTML & CSS
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
Cascading Style Sheets
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.
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.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Chapter 8 Creating Style Sheets.
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.
Using Cascading Style Sheets (CSS) Dept. of Computer Science and Computer Information CSCI N-100.
Basics of HTML.
Creating Tables in a Web Site Using an External Style Sheet
Cascading Style Sheet. What is CSS? CSS stands for Cascading Style Sheets. CSS are a series of instruction that specify how markup elements should appear.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
STYLING THE WEBSITE - EXTERNAL CSS BY JORGE MARTINEZ.
 ult.htm ult.htm  This website illustrates the use of CCS (style sheets)
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.
 a style language that defines layout & appearance of HTML documents  CSS covers fonts, colours, margins, lines, height, width, background images and.
Cascading Style Sheets (CSS) 1.  What is CSS?  Why CSS?  How to write a CSS? 2.
The Characteristics of CSS
Styles with Cascading Style Sheets (CSS) Web Design – Section 4-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design.
INTERNAL CSS Casey Ames Different types of CSS There are three different types of CSS: ◦ External CSS ◦ Internal CSS ◦ Inline CSS In this presentation.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Lesson 2 Adding more content to your web page. Thanks to Richard Hudnutt, Luella HS.
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.
INTRODUCTION TO CSS. OBJECTIVES: D EFINE WHAT CSS IS. K NOW THE HISTORY OF CSS. K NOW THE REASON WHY CSS IS USED. CSS SYNTAX. CSS ID AND CLASS.
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.
 cascade Style Sheets (CSS) is a mark-up language that was first proposed in 1994 by Håkon Wium Lie. CSS works in conjunction with HTML to greatly increase.
Essentials of HTML Class 4 Instructor: Jeanne Hart
Professor Waterman Cascading Style Sheets (CSS) is a language that works with HTML documents to define the way content is presented. The presentation.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
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
Quick Questions 1. What does HTML stand for? 2. What are the three main languages of the Web? 3. What is the purpose of the tags? 4. Why do we indent different.
1 © Netskills Quality Internet Training, University of Newcastle Using Style Sheets in Dreamweaver CS © Netskills, Quality Internet Training, University.
Cascading Style Sheets CSS. Source W3Schools
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
Are You Smarter Than a 5 th Grader? 1,000,000 5th Grade HTML 5th Grade Syntax 4th Grade HTML 4th Grade Syntax 3rd Grade HTML 3rd Grade Syntax 2nd Grade.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
External Style Sheets Exploring Computer Science – Lesson 3-6.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
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.
Cascading Style Sheets (CSS)
CSS Nick Sims.
Web Basics: HTML/CSS/JavaScript What are they?
4.01 Cascading Style Sheets
>> Introduction to CSS
Styles with Cascading Style Sheets (CSS)
Madam Hazwani binti Rahmat
CX Introduction to Web Programming
Styles with Cascading Style Sheets (CSS)
Website Design 3
Introduction to CSS.
What are Cascading Stylesheets (CSS)?
Training & Development
Web Design and Development
4.01 Cascading Style Sheets
Presentation transcript:

Cascading Style Sheets (CSS) EXPLORING COMPUTER SCIENCE – LESSON 3-5

Objectives The student will be able to: Create inline styles with CSS. Create a web page that uses inline styles. Create an internal style sheet with CSS. Create a web page that uses an internal style sheet.

Cascading Style Sheets (CSS)  CSS is a markup language  It is used to define the style of the page (such things as font type, size and many other attributes) as well as to control the overall page layout.

Benefits of CSS  CSS allows a single style to be used across an entire site, which makes site maintenance easy  With CSS, HTML documents are kept cleaner, and easier for developers to update and maintain  CSS is efficient, and can result in pages that download quickly.  CSS allows separation of web content from presentation, which means the content can be delivered to users across all web-enabled devices (including browsers, cell phones, PDAs, etc.) in a way that best meets the needs of the users of those devices. This translates to a more accessible web for all users.

General CSS Format – Internal Style Sheet  When using internal CSS, you must add a new tag,, inside the section.  The HTML code below contains an example of 's usage: Your page's content!

CSS  CSS is a different language than HTML with very different syntax.  It does NOT use angle brackets around element names, etc.  CSS is not HTML, but rather a way of manipulating existing HTML  Like HTML, it is important with CSS to be careful to use correct syntax, and to use indentation to keep the document well organized.

Example of CSS – Internal Style Sheet p {color: white; } body {background-color: black; } White text on a black background! Result:

General CSS Format  HTML_tag { "CSS Property" : "Value" ; }  Back in our code example, we manipulated and tags  In the first line of CSS code changed the "p“ tag.  We chose the HTML element we wanted to manipulate. - p{ : ; }  Then we chose the CSS attribute “color”. - p { color: ; }  Next we choose the font color to be white. - p { color: white ; }  Now all text within a paragraph tag will show up as white.

General CSS Format  In the second line we changed the body tag.  We choose the HTML element Body - body { : ; }  Then we chose the CSS attribute. - body { background-color: ; }  Next we chose the background color to be black. - body { background-color: black ; }  Now background for the body section of our document is black.

Inline Styles  If the style you desire is only for a certain instance of a tag (e.g. for a single paragraph) then you can apply the style within the tag.  You simply add a “style=“ attribute and put the styles with no { } in the tag itself  Example:  I want my first paragraph to be indented and with a white border. I can change my tag to

Summary  Place your CSS Code between and  Be sure you know the correct format (syntax) of CSS code.  The 3 parts of a CSS: HTML_tag { "CSS Property" : "Value" ; }

Where to find help on CSS  General CSS:   Common CSS Properties:  cheat-sheet/ cheat-sheet/  Colors:  

Rest of Today  Look at (html/css-­ ‐ -­ ‐ basic markup)  Step through his examples and understand the CSS code.  Add a style section to the head part of your HTML file.  Add CSS code to set the styles for:  body  h1  h2  p  ol or ul  li

Friday  On Friday we will walk around and look at each other’s web pages.  You will vote on the best 3 web pages in the room.  The 3 students with the highest votes will get extra credit.