Style Sheets.

Slides:



Advertisements
Similar presentations
CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
Advertisements

Intro To Cascading Style Sheets By Mario Yannakakis.
Learn about Cascading Style Sheets LACUNY Web Management Roundtable October 21, 2005
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
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.
Introduction to CSS. What is CSS? A CSS (cascading style sheet) file allows you to separate your web sites (X)HTML content from it’s style. Use your (X)HTML.
Adding styles. Three alternatives HIT151 Web 'n' Net Web Page Basics /*stylesheet*/ h1,h2,h3 { font-family: verdana, arial, 'sans serif'; } p,table,li.
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.
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.
Cascading Style Sheets Based on Castro, HTML for the WWW, 6 th edition Ron Gerton, Fall 2007.
Cascade Style Sheet Demo. Cascading Style Sheets Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
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 Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
STYLING THE WEBSITE - EXTERNAL CSS BY JORGE MARTINEZ.
 ult.htm ult.htm  This website illustrates the use of CCS (style sheets)
 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.
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.
ALBERT WAVERING BOBBY SENG. Week 2: HTML + CSS  Quiz  Announcements/questions/etc  Some functional HTML elements.
October 21, Learn about Cascading Style Sheets LACUNY Web Management Roundtable October 21, 2005
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.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
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.
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.
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 for Styling Text.
CSS Cascading Style Sheets
Web Development & Design Foundations with XHTML
CS3220 Web and Internet Programming CSS Basics
The Internet 10/11/11 Fonts and Colors
An Introduction to Cascading Style Sheets
CSS Rule Selector Declaration Block Value Attribute Name body {
>> Introduction to CSS
Web Development & Design Foundations with HTML5
INTRODUCTION TO HTML AND CSS
CX Introduction to Web Programming
Cascading Style Sheets (CSS)
Introduction to Web programming
Intro to CSS CS 1150 Fall 2016.
Introduction to web design discussing which languages is used for website designing
CASCADING STYLE SHEET CSS.
Website Design 3
Introduction to CSS.
Intro to CSS CS 1150 Spring 2017.
Stylin’ with CSS.
Web Development & Design Foundations with H T M L 5
Web Programming– UFCFB Lecture 11
Working with Cascading Style Sheets (CSS)
Working with Cascading Style Sheets (CSS)
What are Cascading Stylesheets (CSS)?
INTRODUCTION TO HTML AND CSS
Web Development & Design Foundations with H T M L 5
Tutorial 3 Working with Cascading Style Sheets
Web Design and Development
CS3220 Web and Internet Programming CSS Basics
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.
Creating your own Styles
Stylin’ with CSS.
External Style Sheets.
Stylin’ with CSS.
One Set of Styles Connected to As Many Pages as You Want!!!
Presentation transcript:

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 contained within { } and separated by ; declarations consist of properties and values separated by a .

External Style Sheets External style sheets (just simple text files with a .css extension) keep the rules in a separate file. They ensuree consistency in a website and making it very easy to make global changes/updates.

To access them use the <link> in the head section: <link rel="stylesheet" href="stylesheetname.css"> where stylesheetname.css refers to the name of your file, and an appropriate path, if needed.

Type this on your computer body { font-family: Verdana, Geneva, Arial, helvetica, sans-serif; background-color: #00FFFF; } td { th {

And this… h1 { color: #333333; } h2 { color: #666699; h3 {

Add this to your stylesheet .specialfont { font-family: font-family: "Times New Roman", Times, serif; color: green }

To use special font you must <p class="specialfont"> The text you want special </p> in your html code

Modify your style sheet body { font-family: Arial, Helvetica, sans-serif; background-color: #FF0000; }

Add a table to each of your pages 2 columns by 2 rows Check your web pages now Name Age Bob 16

Add the following to the web pages Page 1 Part A Page 1 Heading 2 Page 1 Heading 3 Page 1 Heading 6 Do the same for each of your pages.. Check your web page now…