CSS.

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
Today CSS HTML A project.
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.
Links.  Styling Links  Links can be styled with any CSS property (e.g. color, font-family, background-color).  Special for links are that they can.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
Cascading Style Sheet CSS CS1520 Ali Alanjawi. 2 TA Information Ali Alanjawi Homepage: Office:
1 Dreamweaver CS5 intermediate class by Cookie Setton Build a CSS website WITHOUT TABLES Just when you thought you were starting to understand HTML coding,
กระบวนวิชา 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.
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
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,
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
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.
Lecture 2: Cascading Style Sheets (CSS) Instructor: Dr. M. Anwar Hossain.
Designing Web Pages The case for CSS. The Power of CSS css Zen Garden
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.
1 Cascading Style Sheets
WebD Introduction to CSS By Manik Rastogi.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
Cascading Style Sheet.
CSS Cascading Style Sheets
Html.
Style Sheets.
Creating Your Own Webpage
Cascading Style Sheets
CSS Rule Selector Declaration Block Value Attribute Name body {
>> Introduction to CSS
What is CSS.
Cascading Style Sheets
Madam Hazwani binti Rahmat
Web Developer & Design Foundations with XHTML
Cascading Style Sheets
Introduction to Web programming
Cascading Style Sheets (Layout)
Intro to CSS CS 1150 Fall 2016.
Cascading Style Sheets
Information Architecture and design
Cascading Style Sheets
CASCADING STYLE SHEET CSS.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
Introduction to Web programming
Intro to CSS CS 1150 Spring 2017.
Introduction to HTML Today we will look at:
Cascading Style Sheets
Software Engineering for Internet Applications
>> Dynamic CSS Selectors
DynamicHTML Cascading Style Sheet Internet Technology.
5.2.3 Be able to use HTML and CSS to construct web pages
Stylin’ with CSS.
The Internet 10/6/11 Cascading Style Sheets
DynamicHTML Cascading Style Sheet Internet Technology.
CSS: Cascading Style Sheets
HTML Basic Structure.
Web Design and Development
Part 1: Cascading Style Sheets
HTML / CSS Mai Moustafa Senior Web Designer eSpace eSpace.
Session 4: CSS Positioning
Stylin’ with CSS.
Web Client Side Technologies Raneem Qaddoura
Stylin’ with CSS.
Creating your website and learning HTML
Kanida Sinmai CSS – Cascading Style Sheets Kanida Sinmai
Introduction to Styling
Presentation transcript:

CSS

(Cascading Style Sheet) CSS (Cascading Style Sheet) List of rules

Each CSS rule has: Selector Property Value

<style type="text/css"> body { color: purple; background-color: #d8da3d } </style>

Selector <style type="text/css"> body { color: purple;} </style>

Property <style type="text/css"> body { color: purple;} </style>

Value <style type="text/css"> body { color: purple} </style>

Placed in the head “box” <!DOCTYPE html> <html> <head> <title>My First Code</title> <style type="text/css"> p{ style info for paragraphs} </style> </head> <body> <h1>My First Heading</h1> <p>My First Paragraph</p> </body> </html>

<style type="text/css"> p{ style info for paragraph} <!DOCTYPE html> <html> <head> <title>My First Page</title> <style type="text/css"> p{ style info for paragraph} </style> <head/> <body> <h1>My First Heading</h1> <p>My First Paragraph</p> </body> </html>

<style type="text/css"> h1{ font-family: Arial, Times, serif; <!DOCTYPE html> <html> <head> <title>My First Code</title> <style type="text/css"> h1{ font-family: Arial, Times, serif; background-color: #00FFFF; position: absolute; top: 50 px; left: 100px } </style> <head/> <body> (etc…)

Common Style Sheet tags: - h1, h2, h3, h4…. - p - body - a:link (before visiting the link) - a:visited (after visiting the link) - div

Class <head> <style type="text/css"> .something { color: purple; background-color: #00FFFF } </style> </head> <body> <p class=“something”>Your Text Here</p> </body>

ID (IDs are only used once) #somethingelse { width: 100px; background-color: #d63078} .something { color: purple; background-color: #00FFFF } …....................................... <div id=“somethingelse”> <p class=“something”>Your Text Here</p> <p class=“something”>Another Sentence</p> </div>