CSSMR.Mostafa badr1. Lesson 3 Creating an Style Sheet Lesson 2 Structure of the Style Lesson 1: What Cascading Style Sheets are?

Slides:



Advertisements
Similar presentations
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Advertisements

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 External Style.
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.
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.
กระบวนวิชา 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.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Prepared by ackoo Styli n g your page (font type, font size, colors, text decoration, alignment, set margin, table padding, etc.) References: W3Schools.
Controlling Page Style: Cascading Style Sheets (CSS) References: 1.Wang, P.S & Katila, S. (2004). A Introduction to Web Design and Programming. CA: Thomson.
Cascading style sheets - CSS
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.
© 2007 D. J. Foreman CSS-1 Cascading Style Sheets Styles.
1 Web Developer Foundations: Using XHTML Chapter 9 Cascading Style Sheet Concepts.
Cascading Style Sheets Example
STYLING THE WEBSITE - EXTERNAL CSS BY JORGE MARTINEZ.
CSS Dvijesh Bhatt.
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.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
CSS Introduction Cascading Style Sheets Provides a great deal of control over the presentation of the document HTML indicates both semantics of a document.
 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.
Doman’s Sections Information in this presentation includes text and images from
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 2 Cascading Style Sheets (CSS)
To Proudly supported by ferrycake.com. We will be printing Cash for your Community tokens every week in the Carmarthen Journal and Llanelli Star. The.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit E Formatting with Cascading Style Sheets.
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
Introduction To CSS.. HTML Review What is HTML used for? Give some examples of formatting tags in HTML? HTML is the most widely used language on the Web.
What is 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 External.
Tutorial #4 Formatting Text and Links. Tutorial #3 Review - CSS CSS format Selector { property1: value1; /* Comments */ } Embedded, In-Line, and External.
CO1552 – Web Application Development Cascading Style Sheets.
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.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
CSS Font CSS font properties define the font family, boldness, size, and the style of a text. CSS Font Families Generic family Font familyDescription Serif.
Cascading Style Sheets in.NET Lilian Kiilu, Client/Server & Web Applications, Coms 463/563, Section 1pm, Fall 2005, November 16 th 2005.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
Softsmith Infotech CSS. Softsmith Infotech CSS Cascading Style sheets Enhances look and feel of the site Adds more features to plain HTML Can define properties.
Introduction to Cascading Style-sheets (CSS) Basharat Mahm ood, Department of Computer Science, CIIT,Islamabad, Pakistan 1.
HTML - Quiz #2 Attendance CODE:
More CSS.
Web Design and Development for Business Lecture 4 Cascading Style Sheet (CSS)
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
The Web Wizard’s Guide To DHTML and CSS Chapter 1 A Review of CSS1.
DIV, Span, CSS.
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
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
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.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
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.
IS1825 Multimedia Development for Internet Applications Lecture 12: IDs, Classes and Internal CSS Rob Gleasure
1 CSS محمد احمدی نیا 2 Of 21 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements 
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.
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. What is 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 External.
1 Cascading Style Sheets
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.
WebD Introduction to CSS By Manik Rastogi.
Cascading Style Sheets (CSS)
Introduction to web design discussing which languages is used for website designing
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Introduction to Cascading Style Sheets (CSS)
محمد احمدی نیا CSS محمد احمدی نیا
What are Cascading Stylesheets (CSS)?
Presentation transcript:

CSSMR.Mostafa badr1

Lesson 3 Creating an Style Sheet Lesson 2 Structure of the Style Lesson 1: What Cascading Style Sheets are?

3CSSMR.Mostafa badr

CSS vs HTML  HTML: Originally intended to markup structure of a document ( محتويات الموقع ),...,,,  CSS Originally intended to markup Style sheet ( شكل الموقع ) Markup presentation, i.e. formats and layout CSSMR.Mostafa badr4

What Cascading Style Sheets are?  styles define how to display HTML elements;  Determine how the HTML code will display  styles are stored in Style Sheets;  multiple style definitions will cascade into one; CSS1 (1996); CSS2 (1998); CSS3 (2001) 5 CSSMR.Mostafa badr

Why?  to save a lot of work and our time;  easier to handle and edit web documents;  easier to control content and layout of the multiple web sites. 6 CSSMR.Mostafa badr

Advantages of Style Sheets  Saves time  Easy to change  Keep consistency  Give you more control over layout  Make it easy to create a common format for all the Web pages CSSMR.Mostafa badr7

Applying a single style sheet to multiple documents CSSMR.Mostafa badr8

Structure of the Style Syntax HTML Tag { Attribute : value ; }  The Attribute and value are separated by a colon : and surrounded by curly braces{}.  if there are more than one property, each property should be separated with a semi- colon; p{text-align: center; color: maroon}. 9 CSSMR.Mostafa badr

Where?  External CSS  Internal CSS  Inline CSS 10 CSSMR.Mostafa badr

Inline Style Add styles to each tag within the HTML file Use it when you need to format just a single section in a web page Very similar to regular HTML styles  used inside the HTML tags: First Paragraph 11 CSSMR.Mostafa badr

Internal Style Sheet A style is applied to the entire HTML file Use it when you need to modify all instances of particular element (e.g., h1) in a web page  is inside of the HTML tag H1 {color: maroon} Body {background-image: url(”examples/saule.gif")} 12 CSSMR.Mostafa badr

External Style Sheet  allow you to control and change layout of the whole document by the editing one single page!  is the additional web page saved in format.css;  each document must have a link to the file saved as.css: 13 CSSMR.Mostafa badr

Creating an External Style Sheet  Open a new blank document in Notepad  Type style Tag h1 {color:red; font-family:sans-serif;}  Save the document as filename.css  link to the HTML File. CSSMR.Mostafa badr14

Linking to Style Sheets OOpen an HTML file BBetween <head> and </head> add <link href=URL rel=“relation_type” type=“link_type”> ○U○URL is the file.css ○R○Relation_type=“stylesheet” ○L○Link_type=“text/css” SSave this file and the.css file in the same web server directory CSSMR.Mostafa badr15

An example of an external style sheet with an original html file Getting Started h1 {font-family: sans- serif; color: orange} b {color: blue} html file Text file of css named “stylesheet” CSSMR.Mostafa badr16

CSS Background  Background Color body { background-color:Red ;}  Background Image body {background-image: url ('bgdesert.jpg');}  Background Image - Repeat Horizontally or Vertically body { background-image:url('gradient2.png'); background-repeat : repeat-x; Repeat-y No-repeat } CSSMR.Mostafa badr17

CSS Text  Text Alignment h1 {text-align: center ;}  Text Decoration h1 {text-decoration:overline;} h2 {text-decoration:line-through;} h3 {text-decoration:underline;} H4 {text-decoration:none;} CSSMR.Mostafa badr18

CSS Font  Font Size h1 {font-size:40;}  Font Style p {font-style:italic;}  Font Weight p {font-weight:Bold;}  Font Family P { font-family : Times New Roman,Times,serif;}  Font Color h1 {color:Red;} CSSMR.Mostafa badr19

CSS Lists  Different List Item Markers Ul {list-style-type: circle;} Ul {list-style-type: square;}  An Image as The List Item Marker Ul {list-style-image: url ('sqpurple.gif') ;} CSSMR.Mostafa badr20

Formatting Hypertext Links TTo remove the style of underlining hypertext, use: A {text-decoration:none} 44 types of hyperlinks can be modified: A:visited {styles for previously visited links} A:link {styles for links that have never visited} A:active {styles for links that are currently being clicked} A:hover {styles when the mouse cursor is hovering over the link} CSSMR.Mostafa badr21