Creating Web Documents CSS examples (do more later) Lab/Homework: Read chapters 15 & 16. Work on Project 3, do postings.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Cascading Style Sheets
Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
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.
CSS. Intro to CSS Cascading Style Sheets – styles and enhances appearance of webpage.css extension.
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 By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
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.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
กระบวนวิชา 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.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
4.01 Cascading Style Sheets
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
 Missing (or duplicate) semicolons can make the browser completely ignore the style rule.  You may add extra spaces between the properties/values to.
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Web Design I Spring 2009 Kevin Cole Gallaudet University
18 People Surveyed HTML (HyperText Markup Language) HTML “tags” Describes structure Building blocks Headings, paragraphs, lists, links, images, quotes,
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.
CSS Netcentric. What is CSS O CSS stands for Cascading Style Sheets O Styles define how to display HTML elements O Styles were added to HTML 4.0 to solve.
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Working with Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 5.
CO1552 – Web Application Development Cascading Style Sheets.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 7.
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 Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
Web Design and Development for Business Lecture 4 Cascading Style Sheet (CSS)
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.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Lecture 2: Cascading Style Sheets (CSS) Instructor: Dr. M. Anwar Hossain.
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.
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.
What is CSS? A set of style rules that tell the web browser how to present a web page or document. – In earlier versions of HTML, style characteristics,
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.
CSS (Cascading Style Sheets). CSS CSS – Cascading Style Sheets – Cascade because of the way CSS rules can stack on top of each other. Allows you to add.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
CSS Cascading Style Sheets
Objective % Select and utilize tools to design and develop websites.
4.01 Cascading Style Sheets
( Cascading style sheet )
CSS Layouts: Grouping Elements
Madam Hazwani binti Rahmat
Objective % Select and utilize tools to design and develop websites.
CSS Applications to XML 19-Sep-18.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
Cascading Style Sheets
Styles and the Box Model
The Internet 10/13/11 The Box Model
Second CSS Lecture Applications to XML
MORE Cascading Style Sheets (The Positioning Model)
DynamicHTML Cascading Style Sheet Internet Technology.
What are Cascading Stylesheets (CSS)?
Cascading Style Sheets™ (CSS)
DynamicHTML Cascading Style Sheet Internet Technology.
4.01 Cascading Style Sheets
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
CSS Applications to XML 20-May-19.
Web Programming and Design
CSS Applications to XML 3-Jul-19.
Cascading Style Sheets™ (CSS)
Presentation transcript:

Creating Web Documents CSS examples (do more later) Lab/Homework: Read chapters 15 & 16. Work on Project 3, do postings

Cascading Style sheets The focus on HTML is/was structure & content, not presentation. –Web originated as medium for communication among researchers, not artists or advertisers –Very, very difficult to control display across different platforms, different window sizes, different computers. Cascading Style Sheets is attempt to improve presentation –separate structure & content from display –Specify display for multiple instances of tags, multiple pages Evolving technologies: XML, XSL, ?

Styles specify aspects of the formatting of tags in addition or to change current formatting. Aspects can include fonts NOTE: font tag sets specific attributes in fixed order. Can also use font-family, font-size, etc. color and background color position, indenting, action of overlap borders

CSS examples p {background: yellow; font-family: arial; color: red} p.intro {text-indent: 200pt; background: gray; font-family: impact; color: red} …. …

CSS rules can be in… External file. Save as basestyles.css. – Internal: in head section – rules In-line: applies to just one section of HTML – Cascading refers to which rules apply: the one closest to the code ‘wins’.

CSS test H1 {font: times; font-size: 20pt} img {border: groove} P {font-size: 10pt; color: red; text- align: justified} p.intro {font-size: 11pt; background: yellow; text-align: left} Here is text outside any tag. here is a heading 1 Here is an introductory paragraph here is a regular paragraph.

CSS Layout concepts is a new block type tag with no default characteristics to be used as you define it. Tags are ‘in’ parent tags: – … … … … … … The body tag is parent to the h1 and the second p tag. The h1 tag is parent to the first p tag. The div tag is parent to the 3 rd p tag. –Certain style calculations are based on the tag’s parent.

div Can have id or class to identify it for a style Div can also be used to divide portions of the HTML document AD/Preview: Creating Dynamic Web Documents goes more into styles. See also examples from my home page.

CSS layout concepts relative positioning is from where the element would otherwise be. Absolute positioning from the parent. Offsets are the top and left position values. Top is from the top so higher numbers mean further down the page. Default unit is pixels. –IMG {position: absolute; top: 100; left: 0}

Challenge(s) Use styles to specify absolute location of 3 images on page. –give each image its unique id. –specify style for each img id to be in specific location. –can also specify border, padding, margin.

CSS layout concepts Images are surrounded by –padding –border. Can specify which edge (top, left, bottom, right), type (double, ridge, others), thickness (thin, medium, thick or value: 10px) and color. – margin IMG {padding: 30; border: groove red; margin: 40} The rule can be –in head section: applies to all –in parent: applies to all tags in parent –in tag itself

image has transparent background padding border margin

External file Create set of rules (copy and paste what you just did) and save as base.css Find/create HTML file (copy what you just did) CSS test … … Caution: textbook examples in chapter 16 refer to styles defined in chapter 15 using an external style sheet. add additional or overriding rules

Meta tags Go in head section. Various types. One use is for browsers and search engines.

Project 3 requirements At least one use of CSS Put keyword meta tag in the head section of the index.html file. –This may be a frameset file. –You could include keyword & description meta tags for all the pages. Frames, tables, lists, image map, animated gif, mailto, YOUR NAME, biblio/works cited page if you use other sources, JavaScript, form(s)

Homework Postings: –Do searches using 'your' keywords, use at least 2 search sites, comment on results. Work on Project 3 (due May 6) Get Project 1 & Project 2 up on TA's class site. –If you are continuing your project 2, you still need a link from both lists.