Principles of Software Development

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

CSS The basics { }. CSS Cascading Style Sheets - language used to – describe html appearance & formatting Style Sheet - file that describes – how html.
Cascading Style Sheets: Basics I450 Technology Seminar Copyright 2003, Matt Hottell.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
MSc. Publishing on WWW Tables and Style Sheets. Tables Tables are used to: Organize and display tabular data To create a layout for web pages.
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,
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.
18 People Surveyed HTML (HyperText Markup Language) HTML “tags” Describes structure Building blocks Headings, paragraphs, lists, links, images, quotes,
Cascading Style Sheets
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.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Cascading Style Sheets Chris Vollmer IT 5610 Chatfield Senior High School.
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company.
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…
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.
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
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
External Style Sheets.
IS1500: Introduction to Web Development
CSS Cascading Style Sheets
INTRO TO WEB DEVELOPMENT html
CSS Nick Sims.
Web Basics: HTML/CSS/JavaScript What are they?
Internal Style Sheets External Style Sheets
4.01 Cascading Style Sheets
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Bare boned notes.
HyperText Markup Language
>> Introduction to CSS
Cascading Style Sheets
Cascading Style Sheets
Cao Yuewen SEEM4570 Tutorial 03: CSS Cao Yuewen
Introduction to the Internet
Lecture 9. Cascading Style Sheets
CSS.
IS 360 Declaring CSS Styles
Madam Hazwani binti Rahmat
>> CSS Rules Selection
Cascading Style Sheets (CSS)
Intro to CSS CS 1150 Fall 2016.
Introduction to web design discussing which languages is used for website designing
CASCADING STYLE SHEET CSS.
Cascading Style Sheets: Basics
Website Design 3
Cascading Style Sheets - Building a stylesheet
Intro to CSS CS 1150 Spring 2017.
TOPICS Chrome Dev Tools Process for Building a Static Website
Software Engineering for Internet Applications
5.2.3 Be able to use HTML and CSS to construct web pages
CS134 Web Design & Development
Cascading Style Sheets
Working with Cascading Style Sheets (CSS)
Working with Cascading Style Sheets (CSS)
What are Cascading Stylesheets (CSS)?
Cascading Style Sheets™ (CSS)
CSS: Cascading Style Sheets
Tutorial 3 Working with Cascading Style Sheets
Web Design and Development
Part 1: Cascading Style Sheets
Made By : Lavish Chauhan & Abhay Verma
Web Design & Development
Session 3: Basic CSS Spring 2009
Cascading Style Sheets - Building a stylesheet
4.01 Cascading Style Sheets
Cascading Style Sheets III B. Com (Paper - VI) & III B
INTERNATIONAL INSTITUTE OF IFORMATION TECHNOLOGY, (I²IT)
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

Principles of Software Development CSS CSCI 201 Principles of Software Development Jeffrey Miller, Ph.D. jeffrey.miller@usc.edu

Outline CSS Program USC CSCI 201L

CSS Cascading Style Sheets (CSS) are used in conjunction with HTML to describe how HTML elements should be displayed CSS can be included in three ways Inline in an HTML element through the style attribute In the <style> tag in an HTML document In an external file that is included in an HTML document in the <link> tag In the <head> tag, include <link rel=“stylesheet” type=“text/css” href=“test.css” /> USC CSCI 201L

HTML Page <!DOCTYPE html> <html> <head> <title>My First CSS</title> </head> <body> <h2>CSCI 201</h2> <h4>This class is learning about HTML and CSS.</h4> <table> <tr> <th>Prefix</th> <th>Number</th> </tr> <td>CSCI</td> <td>104</td> <td>201</td> <td>EE</td> <td>101</td> </table> </body> </html> USC CSCI 201L

style Tag USC CSCI 201L 5 <style> 6 h2 { 7 color: blue; 8 } 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>My First CSS</title> 5 <style> 6 h2 { 7 color: blue; 8 } 9 </style> 10 </head> 11 <body> 12 <h2>CSCI 201</h2> 13 <h4>This class is learning about HTML and CSS.</h4> 14 <table> 15 <tr> 16 <th>Prefix</th> 17 <th>Number</th> 18 </tr> 19 <tr> 20 <td>CSCI</td> 21 <td>104</td> 22 </tr> 23 <tr> 24 <td>CSCI</td> 25 <td>201</td> 26 </tr> 27 <tr> 28 <td>EE</td> 29 <td>101</td> 30 </tr> 31 </table> 32 </body> 33 </html> USC CSCI 201L

id Attribute No point12 id With point12 id USC CSCI 201L 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>My First CSS</title> 5 <style> 6 h2 { 7 color: blue; 8 } 9 #point12 { 10 font-size: 12pt; 11 } 12 </style> 13 </head> 14 <body> 15 <h2 id=“point12”>CSCI 201</h2> 16 <h4>This class is learning about HTML and CSS.</h4> 17 <table> 18 <tr> 19 <th>Prefix</th> 20 <th>Number</th> 21 </tr> 22 <tr> 23 <td>CSCI</td> 24 <td>104</td> 25 </tr> 26 <tr> 27 <td>CSCI</td> 28 <td>201</td> 29 </tr> 30 <tr> 31 <td>EE</td> 32 <td>101</td> 33 </tr> 34 </table> 35 </body> 36 </html> No point12 id With point12 id USC CSCI 201L

class Attribute No center class With center class USC CSCI 201L 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>My First CSS</title> 5 <style> 6 h2 { 7 color: blue; 8 } 9 #point12 { 10 font-size: 12pt; 11 } 12 .center { 13 text-align: center; 14 } 15 </style> 16 </head> 17 <body> 18 <h2 id=“point12”>CSCI 201</h2> 19 <h4 class=“center”>This class is learning about HTML and CSS.</h4> 20 <table> 21 <tr> 22 <th>Prefix</th> 23 <th>Number</th> 24 </tr> 25 <tr> 26 <td>CSCI</td> 27 <td>104</td> 28 </tr> 29 <tr> 30 <td>CSCI</td> 31 <td>201</td> 32 </tr> 33 <tr> 34 <td>EE</td> 35 <td>101</td> 36 </tr> 37 </table> 38 </body> 39 </html> No center class With center class USC CSCI 201L

HTML Block Tags div and span tags are often used with the style or class attribute div is a block-level element span is an inline element <!DOCTYPE html> <html> <head> <title>My First CSS</title> </head> <body> <h2>CSCI <span style="color:red">201</span></h2> <div style="background-color:blue; color:white"> This class is learning about HTML and CSS.<br /> Hopefully it will be fun. </body> </html> The div will automatically go to a new line since it represents blocks of text USC CSCI 201L

More CSS For more information on CSS Go to http://www.w3schools.com/css Go to any web page and view the source (though you may need to find the stylesheet if it is external)

Outline CSS Program USC CSCI 201L

Program Create one HTML page that is formatted in the following ways with different stylesheets.

Program Go to http://www.w3schools.com/css/css_form.asp and modify the form to be more aesthetic like modern web pages. Make the form look different for each page.