Spring 2009 Kevin Cole Gallaudet University

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 The basics { }. CSS Cascading Style Sheets - language used to – describe html appearance & formatting Style Sheet - file that describes – how html.
Today’s objectives  Element relations – tree structure  Pseudo classes  Pseudo elements.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
กระบวนวิชา 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.
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.
Cascading Style Sheets (CSS) 1.  What is CSS?  Why CSS?  How to write a CSS? 2.
Web Design I Spring 2009 Kevin Cole Gallaudet University
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
Today’s objectives  Review  CSS | Rules | Declarations  HTML Structure document  Class asignment.
Web Design I Spring 2009 Kevin Cole Gallaudet University
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.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
CASCADING STYLE SHEET 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.
1 Cascading Style Sheets
Spring 2009 Kevin Cole Gallaudet University
WebD Introduction to CSS By Manik Rastogi.
Cascading Style Sheets
IS1500: Introduction to Web Development
HTML.
CSS Cascading Style Sheets
INTRO TO WEB DEVELOPMENT html
CS3220 Web and Internet Programming CSS Basics
4.01 Cascading Style Sheets
Site Organization.
Creating Your Own Webpage
CSS Rule Selector Declaration Block Value Attribute Name body {
Spring 2009 Kevin Cole Gallaudet University
Introduction to the Internet
Chapter 6 Cascading Style Sheets™ (CSS)
IS 360 Declaring CSS Styles
>> CSS Rules Selection
Web Design & Development
Cascading Style Sheets contd: Embedded Styles
Cascading Style Sheets (CSS)
Introduction to Web programming
Dynamic HTML.
Intro to CSS CS 1150 Fall 2016.
Relative Paths.
Introduction to Web Page Design
Cascading Style Sheets
CASCADING STYLE SHEET CSS.
Filezilla problems continuing
Introduction to CSS.
Introduction to Web programming
Intro to CSS CS 1150 Spring 2017.
CSS.
CS134 Web Design & Development
Site Organization.
Software Engineering for Internet Applications
Cascading Style Sheets
Cascading Style Sheets
What are Cascading Stylesheets (CSS)?
The Internet 10/6/11 Cascading Style Sheets
Cascading Style Sheets™ (CSS)
HTML and CSS MIS 2402 Jeremy Shafer Department of MIS
Pertemuan 1b
Training & Development
CS3220 Web and Internet Programming CSS Basics
Part 1: Cascading Style Sheets
CSS.
Creating a simple web page
CS3220 Web and Internet Programming CSS Basics
Made By : Lavish Chauhan & Abhay Verma
HTML & CSS 7 Languages in 7 Days.
Johan Ng and Muhammad Hazzry
Images in HTML PowerPoint How images are used in HTML
4.01 Cascading Style Sheets
Introduction to Styling
Presentation transcript:

Spring 2009 Kevin Cole Gallaudet University 2009.02.17 Web Design I Spring 2009 Kevin Cole Gallaudet University 2009.02.17

Style External (separate) stylesheet file: <link rel="stylesheet" type="text/css" href="...css" /> Internal (in <head>...</head>) style sheet: <style>...</style> Style attribute: <element style="...">

Internal style sheet ... <head> <style> body {background-color: #fbc75a;} p {margin: 1em 5em 1em 5em; font-weight: bold;} </style> </head> page1.html is in the Desktop folder. The first <img .../> uses a file in Pictures The second <img.../> uses a file that is on a remote web server. The link to page3.html must specify the folder name also. If the src="..." or href="..." does not start with http:// or /, then the file location is relative to the location of the file that has the src= or href=.

"quick" styles ... <h1 style="font-size: 50px;">Styled H1</h1> <p style="color: red; border: thin solid black;">This style only works on this paragraph</p> <p>This paragraph has no special style applied to it</p> page1.html is in the Desktop folder. The first <img .../> uses a file in Pictures The second <img.../> uses a file that is on a remote web server. The link to page3.html must specify the folder name also. If the src="..." or href="..." does not start with http:// or /, then the file location is relative to the location of the file that has the src= or href=.

Don't overuse quick styles Styles within a tag can be hard for a designer to remember and organize. Often, the style will be applied to more than one tag. Results: Lots of repeated style properties. A better way: class attribute

class attribute ... <head> <style> .biblio {background-color: #fbc75a;} .intro {font-size: 20%;} </style> </head> <body> <p class="intro">This paper is about blah.</p> <p>Some more information.</p> ... <p class="biblio">Books and authors.</p> page1.html is in the Desktop folder. The first <img .../> uses a file in Pictures The second <img.../> uses a file that is on a remote web server. The link to page3.html must specify the folder name also. If the src="..." or href="..." does not start with http:// or /, then the file location is relative to the location of the file that has the src= or href=.