CSS. LBSC 690: Jordan Boyd-Graber. October 8, Adapted. from Dwight VanTuyl s slides. LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

Size: px
Start display at page:

Download "CSS. LBSC 690: Jordan Boyd-Graber. October 8, Adapted. from Dwight VanTuyl s slides. LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57"

Transcription

1 CSS LBSC 690: Jordan Boyd-Graber October 8, 2012 from Dwight VanTuyl s slides Adapted LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

2 Goals What browsers are out there (so you know what to test on) Main point: CSS gives you tools to change what your pages look like Phishing: using these powers for evil Hands on experimentation LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

3 Outline 1 Assignment 1 2 Ecosystem of Browsers 3 Phishing 4 CSS LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

4 Question 1ab What s she doing? Each square corresponds to a power of two - they add up to the decimal number of the board. LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

5 Question 1ab What s she doing? Each square corresponds to a power of two - they add up to the decimal number of the board. LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

6 Question 1ab What s she doing? Each square corresponds to a power of two - they add up to the decimal number of the board = = LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

7 Question 1c The di erence of 3077 and 2053 is 1024, which is This corresponds to the second row, second column. LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

8 Question 2a 1TB 1 LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

9 Question 2a 1TB MB 1GB LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

10 Question 2a 1TB MB 1GB 210 GB 1TB LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

11 Question 2a 1TB MB 1GB 210 GB 1TB = 220 MB LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

12 Question 2a 1TB MB 1GB 210 GB 1TB = 220 MB =1, 048, 576MB (1) LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

13 Question 2a 1TB MB 1GB 210 GB 1TB = 220 MB =1, 048, 576MB (1) Hard drive was: 1TB Serial ATA (7200RPM) w/databurst Cache, 9ms read time Fine to use 2 10 or 10 3 (but make sure you say which you re using). If you use 10 3 or make other approximations, don t keep around too many significant digits I ! I 123,119,817! Make sure units cancel LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

14 Question 2b MB 1 LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

15 Question 2b MB 1 1min 1MB LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

16 Question 2b MB 1 1min 1day 1MB 60 24min = day LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

17 Question 2b MB 1 1min 1day 1MB 60 24min = day = 694day (2) 1440 Three minutes per song was a red herring Don t forget units Conversion factors LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

18 Question 2c 1000GB 1 LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

19 Question 2c 1000GB 1 1DVD 4.7GB LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

20 Question 2c 1000GB 1 1DVD apple 213DVD (3) 4.7GB There is no such thing as a half of a DVD (well, there is, but it s useless). LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

21 Question 3b How many bytes per record? 125 bytes 125B LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

22 Question 3b How many bytes per record? 125 bytes 125B GB 10 9 B LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

23 Question 3b How many bytes per record? 125 bytes 125B GB 10 9 B = GB LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

24 Question 3b How many bytes per record? 125 bytes 125B GB 10 9 B = GB = 37.5GB (4) 109 Write big numbers in scientific notation (million = 10 6 ) Careful with math LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

25 Question 3c-d 37.5GB 3.8% (5) 1000GB LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

26 Question 3c-d 37.5GB 3.8% (5) 1000GB 37.5GB 16GB 230% (6) LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

27 Question 3c-d 37.5GB 3.8% (5) 1000GB 37.5GB 16GB 230% (6) 4GB DDR3 SDRAM - 3 DIMMs, 50ns read time LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

28 Question 3c-d 37.5GB 3.8% (5) 1000GB 37.5GB 16GB 230% (6) 4GB DDR3 SDRAM - 3 DIMMs, 50ns read time RAM amounts are usually given as cumulative (no penalty if you assume otherwise) Make sure answers are reasonable (if it doesn t fit in RAM, it won t fit in HD) LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

29 Question 3e-f Hard drive RAM reads s = s 1 read (7) s 1day = 31.25day s (8) reads s read = s = 15s (9) Bonus points for looking up access time for 7200 RPM HD SI prefixes

30 Question 3e-f Hard drive RAM reads s = s 1 read (7) s 1day = 31.25day s (8) reads s read = s = 15s (9) Bonus points for looking up access time for 7200 RPM HD SI prefixes LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

31 Question 4 200GB 10min LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

32 Question 4 200GB 10min 103 MB GB LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

33 Question 4 200GB 10min 103 MB GB 8bit B LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

34 Question 4 200GB 10min 103 MB GB 8bit B 1min 60s 2600megabit s (10) This was to stress concept that moving data anywhere gives you a transfer rate What about latency? Mail and bike are often faster than the Internet Home network speeds (100s of Mbs) are much faster than Internet (10s of Mbs if you re lucky) I Sneakernet I Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway. Tanenbaum, Andrew S. Remember, bits 6= byte LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

35 Metadiscussion Reasonableness Units When converting, only multiply by things that are equal to 1 Scientific notation LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

36 Outline 1 Assignment 1 2 Ecosystem of Browsers 3 Phishing 4 CSS LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

37 Browser Engines Controls how you get from HTML file to what s displayed on screen Hardest part to get right The interface (buttons, bookmarks, etc.) is more flexible (parallel with HTML / CSS) Because the underlying engine is the same, you don t need to test every browser Images from webdesignerdepot LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

38 Engines LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

39 Engines Gecko - Apple Trident - Microsoft Webkit - Mozilla (formerly Netscape) Presto - Opera Lynx - GNU (text based) LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

40 Market Share LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

41 Trident LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

42 Gecko LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

43 Webkit LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

44 Presto LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

45 Getting it right Develop in one browser When you have a draft, try it in other browsers Also try in di erent versions (particularly for IE) Test for compliance with CSS / XHTML LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

46 Outline 1 Assignment 1 2 Ecosystem of Browsers 3 Phishing 4 CSS LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

47 What is phising 1 Definition: fishing for personal information using a phony website 2 Multiple vectors of attack 3 Multiple endgames LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

48 LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

49 Phishing Vectors 1 Send you an claiming to be from a site, give you a link 2 Asks you explicitly for information claiming to be from a site 3 Impersonate a site on the internet I Poisoned DNS (e.g. at an internet cafe) - man in the middle I Have a confederate site (e.g. web commerce site) LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

50 Phishing Endgames 1 Install software 2 Watch your interactions with a trusted site (man in the middle) 3 Get your login 1 Throw up phony page 2 When you get it wrong, redirect to legit site 3 Assuming you sometimes make mistakes, you might never notice LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

51 Outline 1 Assignment 1 2 Ecosystem of Browsers 3 Phishing 4 CSS LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

52 What is CSS? Cascading: Multiple styles can overlap Style: CSS controls the presentation Sheet: CSS files are typically separate from the HTML file LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

53 Why CSS? Richer appearance Reduce workload Consistent style across pages Reduce download size LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

54 Why not use CSS? Very old browsers don t support it (rare, and there are many other, bigger problems with older browsers) Makes it harder to create o ine versions of pages (but most browsers o er to save all associated files) For layout, tables are arguably better Makes phishing easier LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

55 Example Page Download from bit.ly/pknrko We ll make this pretty through this class If you look at the code, it s very simple LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

56 Making HTML play nice with CSS Link from a each page to (one or more) stylesheet(s) Order only matters if there are conflicts Should be in the head <link href= style1. css rel= stylesheet type= text/css media= screen /> LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

57 Div div tag creates a box around content You can give names to elements We ll see what this can do in a second Creates logical division of page <div id= footer > Page by <a href= mailto : jb </div> LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

58 Span span itself does nothing It allows a group of HTML to be modified by CSS However, it s meaningless semantically, so use it sparingly <span id= button > <ul> <li><a href= a. html >Alpacas</ <li><a href= b. html >Bears</a> <li><a href= c. html >Cats</a> <li><a href= d. html >Dogs</a> <li><a href= e. html >Elephants <li><a href= f. html > Ferrets</ </ul> </span> LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

59 Class class identifies what kind of an element it is It allows a a single tag to be modified by CSS Unlike id it can (and should) be used more than once <p class= question > Why d i d t <p class= answer > To get to t <p class= question > What kind <p class= answer >A monkey</a> LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

60 HTML / CSS Recap div blocks of many HTML tags id for unique, single HTML tags class for repeated, single HTML tags LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

61 What does CSS look like? Selector h1 Element Properties { } color: red; Style Block background: yellow; Style Values The Selector selects elements on the HTML page. The associated Style Block applies its Style Values to the selected Elements Properties LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

62 Selector Select elements to apply a declared style. Selector types: I Element Selectors: selects all elements of a specific HTML type (body, h1, p, etc.) I Class Selectors: selects all elements that belong to a given class. F CSS: selectorsthatstartwithaperiod F HTML: settheclass attribute to the selector I ID Selectors: selects a single element thats been given a unique id. F CSS: selectorsthatbeginwith# F HTML: settheid attribute to the selector I Pseudo Selectors: combines a selector with a user activated state :hover, :link, :visited LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

63 Color and decoration / Links should normally not be underlined unless hovered over / a { color : #ff6666 ; text decoration : none; } a:hover { text decoration : underline ; } LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

64 Background and paragraphs / By d e f a u l t, have black sans s e r i f t e x t on a gray background. / body { background color : #e1ddd9; font size : 12px; font family : Verdana, Arial, Sans Serif ; color : #000000; margin : 0; } / Paragraphs should have a l i t t l e more spacing and indentation / p { margin : 0px ; padding : 5px 20px 5px 20px ; text indent : 10px; text align : justify ; } LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

65 Fonts Changing font face I Generic family: Serif, Sans-Serif, Monospace I Font family: Times New Roman, Arial, or Courier I Can specify multiple - it will keep trying until it finds one Changing font size I 1em is equal to m in current font size (default is 16 pixels) I Can also use pt, but discouraged I Can also use percent LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

66 Text text-indent: indents first line of a paragraph according to size text-align: right; or left; or center; or justify; text-decoration: none; or underline; text-transform: Capitalize; Line-height: added vertical space to each line of text according to size LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

67 Background background-image: url(../location/of/image.jpg) background-repeat: tile image in background background-position: vertical (top, center, bottom, or size) horizontal (left, center, right, or size) background-attachment: (scroll or fixed) LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

68 Boxing, margins, and transformation / Create a footer that gives contrast / #footer { font size : 13px; font weight : bold ; text transform : uppercase ; text align : right ; background color : #90897a; padding : 5px 15px ; margin : 0px ; } LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

69 Margin vs. padding LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

70 Arranging content on the page / Create two columns on either side of the main body of the page. They will not occupy the full height ( unless the content is very skimpy ). Thus if they have background, they should be the same as body. / #left, #right { / background color : red ; / position : absolute ; margin : 0px ; padding top : 40px ; color : #564b47; width : 100px ; } #left { left : } #right { right : } 0px; 0px; LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

71 Arranging content on the page / Set the content to have decent padding and margins and a white background. The bottom padding is important for the footer not encroaching on the left navigation. / #content, #p i c t u r e { margin : 0px 115px 0px 110px ; border left : 2px solid #564b47; border right : 2px solid #564b47; background color : #ffffff ; } #content { padding bottom : 35px ; } #picture { padding bottom : 0px ; } LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

72 Aligning text h1, h2, h3, h4, h5 { padding top : 5px ; padding left : 15px; padding right : 5px; padding bottom : 1px ; text transform : uppercase ; color : #564b47; background color : transparent ; } h3, h4, h5 { text align : center ; } #header { text transform : uppercase ; text align : right ; color : #564b47; background color : #90897a; } LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

73 Class properties p.question { font weight : bold ; } p.answer { font size:90%; } LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

74 Fancy display / Changes the font and sets the width / #button { width : 190px ; padding : 0; font family : Trebuchet MS, Lucida Grande, Verdana, Lucida, Geneva, Helvetica, Arial, sans serif ; } / Makes the l i n k s appear as a block and gives them a border, removes underlining of l i n k s. / #button l i a { display : block ; padding : 5px 5px 5px 0.5em; border left : 10px solid #ff0000; border right : 10px solid #ff4444 ; background color : #cc9999; color : #ffffff ; text decoration : none; } LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

75 Changing lists / Changes the color of the link on a hover / #button l i a : h o v e r { border left :10px solid #ff1111; border right : 10px solid #ff5555 ; background color : #ccaaaa; color : #ffffff ; } / Removes padding from l e f t hand side and hides bullets / #button u l { list style : none; padding : 0em; } / Adds a border to the buttom of the buttons / #button l i { border bottom : 1px solid #90bade ; } LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

76 Display controls what the element looks like block has line break before and after table can make it appear like a table none can make it disappear LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

77 Recap The Browser ecosystem Style for evil Style for good LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

78 This Week s Discussion Readable CSS Take a look at this snippet of HTML from the NY Times (below). What s going on? Why? Take a look at the style sheet: Do you have any questions? What do you think of it? <link rel= stylesheet type= text/css href= styles. css > <! [if IE]> < style type= text/css url ( ie. css ); </style> <![ endif] > <! [if IE 6]> < style type= text/css url ( ie6. css ); </style> <![ endif] > LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

79 This Week s Discussion LBSC 690: Jordan Boyd-Graber () CSS October 8, / 57

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100 Introduction to Multimedia MMP100 Spring 2016 profehagan@gmail.com thiserichagan.com/mmp100 Troubleshooting Check your tags! Do you have a start AND end tags? Does everything match? Check your syntax!

More information

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

<style type=text/css> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page*** Chapter 7 Using Advanced Cascading Style Sheets HTML is limited in its ability to define the appearance, or style, across one or mare Web pages. We use Cascading style sheets to accomplish this. Remember

More information

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets 3.1 Introduction - HTML is primarily concerned with content, rather than style - However, tags have presentation properties, for which browsers have default values - The CSS1 cascading style sheet specification

More information

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2)

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Web Development & Design Foundations with HTML5 Ninth Edition Chapter 3 Configuring Color and Text with CSS Slides in this presentation contain hyperlinks. JAWS users should be able to get a list of links

More information

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values 3.1 Introduction - HTML is primarily concerned with content, rather than style - However, tags have presentation properties, for which browsers have default values - The CSS1 cascading style sheet specification

More information

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents 3.1 Introduction - The CSS1 specification was developed in 1996 - CSS2 was released in 1998 - CSS3 is on its way - CSSs provide the means to control and change presentation of HTML documents - CSS is not

More information

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR Hover effect: CREATING AN HTML LIST Most horizontal or vertical navigation bars begin with a simple

More information

COSC 2206 Internet Tools. CSS Cascading Style Sheets

COSC 2206 Internet Tools. CSS Cascading Style Sheets COSC 2206 Internet Tools CSS Cascading Style Sheets 1 W3C CSS Reference The official reference is here www.w3.org/style/css/ 2 W3C CSS Validator You can upload a CSS file and the validator will check it

More information

Adding CSS to your HTML

Adding CSS to your HTML Adding CSS to your HTML Lecture 3 CGS 3066 Fall 2016 September 27, 2016 Making your document pretty CSS is used to add presentation to the HTML document. We have seen 3 ways of adding CSS. In this lecture,

More information

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets 3.1 Introduction - The CSS1 specification was developed in 1996 - CSS2 was released in 1998 - CSS2.1 reflects browser implementations - CSS3 is partially finished and parts are implemented in current browsers

More information

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations 3.1 Introduction - The CSS1 specification was developed in 1996 - CSS2 was released in 1998 - CSS2.1 reflects browser implementations - CSS3 is partially finished and parts are implemented in current browsers

More information

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

<body bgcolor=  fgcolor=  link=  vlink=  alink= > These body attributes have now been deprecated, and should not be used in XHTML. CSS Formatting Background When HTML became popular among users who were not scientists, the limited formatting offered by the built-in tags was not enough for users who wanted a more artistic layout. Netscape,

More information

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student Welcome Please sit on alternating rows powered by lucid & no.dots.nl/student HTML && CSS Workshop Day Day two, November January 276 powered by lucid & no.dots.nl/student About the Workshop Day two: CSS

More information

CSS Selectors. element selectors. .class selectors. #id selectors

CSS Selectors. element selectors. .class selectors. #id selectors CSS Selectors Patterns used to select elements to style. CSS selectors refer either to a class, an id, an HTML element, or some combination thereof, followed by a list of styling declarations. Selectors

More information

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB Unit 3 Cascading Style Sheets (CSS) Slides based on course material SFU Icons their respective owners 1 Learning Objectives In this unit you

More information

CSS: The Basics CISC 282 September 20, 2014

CSS: The Basics CISC 282 September 20, 2014 CSS: The Basics CISC 282 September 20, 2014 Style Sheets System for defining a document's style Used in many contexts Desktop publishing Markup languages Cascading Style Sheets (CSS) Style sheets for HTML

More information

Introduction to Web Design CSS Reference

Introduction to Web Design CSS Reference Inline Style Syntax: Introduction to Web Design CSS Reference Example: text Internal Style Sheet Syntax: selector {property: value; Example:

More information

Introduction to Web Design CSS Reference

Introduction to Web Design CSS Reference Inline Style Syntax: Introduction to Web Design CSS Reference Example: text Internal Style Sheet Syntax: selector {property: value; Example:

More information

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style precedence and style inheritance Understand the CSS use

More information

Reading 2.2 Cascading Style Sheets

Reading 2.2 Cascading Style Sheets Reading 2.2 Cascading Style Sheets By Multiple authors, see citation after each section What is Cascading Style Sheets (CSS)? Cascading Style Sheets (CSS) is a style sheet language used for describing

More information

.hedgehog { background-image: url(backyard.jpg); color: #ffff99; height: 6in; width: 12in; } .tube {

.hedgehog { background-image: url(backyard.jpg); color: #ffff99; height: 6in; width: 12in; } .tube { .hedgehog { background-image: url(backyard.jpg); color: #ffff99; height: 6in; width: 12in;.tube { color: #996600; height: 3in; width: 12in; position: fixed; What is CSS? Cascading Style Sheets CSS is responsible

More information

CSS. https://developer.mozilla.org/en-us/docs/web/css

CSS. https://developer.mozilla.org/en-us/docs/web/css CSS https://developer.mozilla.org/en-us/docs/web/css http://www.w3schools.com/css/default.asp Cascading Style Sheets Specifying visual style and layout for an HTML document HTML elements inherit CSS properties

More information

Appendix D CSS Properties and Values

Appendix D CSS Properties and Values HTML Appendix D CSS Properties and Values This appendix provides a brief review of Cascading Style Sheets (CSS) concepts and terminology, and lists CSS level 1 and 2 properties and values supported by

More information

Zen Garden. CSS Zen Garden

Zen Garden. CSS Zen Garden CSS Patrick Behr CSS HTML = content CSS = display It s important to keep them separated Less code in your HTML Easy maintenance Allows for different mediums Desktop Mobile Print Braille Zen Garden CSS

More information

Web Design and Development Tutorial 03

Web Design and Development Tutorial 03 Table of Contents Web Design & Development - Tutorial 03... 2 Using and Applying CSS to XHTML... 2 Conventions... 2 What you need for this tutorial... 2 Common Terminology... 3 Parent / Child Elements...

More information

Cascading Style Sheet Quick Reference

Cascading Style Sheet Quick Reference Computer Technology 8/9 Cascading Style Sheet Quick Reference Properties Properties are listed in alphabetical order. Each property has examples of possible values. Properties are not listed if they are

More information

ICT IGCSE Practical Revision Presentation Web Authoring

ICT IGCSE Practical Revision Presentation Web Authoring 21.1 Web Development Layers 21.2 Create a Web Page Chapter 21: 21.3 Use Stylesheets 21.4 Test and Publish a Website Web Development Layers Presentation Layer Content layer: Behaviour layer Chapter 21:

More information

Chapter 7 BMIS335 Web Design & Development

Chapter 7 BMIS335 Web Design & Development Chapter 7 BMIS335 Web Design & Development Site Organization Use relative links to navigate between folders within your own site o Sometimes dividing your site into folders makes maintenance and updating

More information

Introduction to Web Tech and Programming

Introduction to Web Tech and Programming Introduction to Web Tech and Programming Cascading Style Sheets Designed to facilitate separation of content and presentation from a document Allows easy modification of style for an entire page or an

More information

Tutorial 3: Working with Cascading Style Sheets

Tutorial 3: Working with Cascading Style Sheets Tutorial 3: Working with Cascading Style Sheets College of Computing & Information Technology King Abdulaziz University CPCS-665 Internet Technology Objectives Review the history and concepts of CSS Explore

More information

Html basics Course Outline

Html basics Course Outline Html basics Course Outline Description Learn the essential skills you will need to create your web pages with HTML. Topics include: adding text any hyperlinks, images and backgrounds, lists, tables, and

More information

Cascading Style Sheets (CSS)

Cascading Style Sheets (CSS) Cascading Style Sheets (CSS) Mendel Rosenblum 1 Driving problem behind CSS What font type and size does introduction generate? Answer: Some default from the browser (HTML tells what browser how)

More information

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations). WDI Fundamentals Unit 4 CSS Cheat Sheet Rule The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations). Declaration A declaration is made

More information

Module 2 (VII): CSS [Part 4]

Module 2 (VII): CSS [Part 4] INTERNET & WEB APPLICATION DEVELOPMENT SWE 444 Fall Semester 2008-2009 (081) Module 2 (VII): CSS [Part 4] Dr. El-Sayed El-Alfy Computer Science Department King Fahd University of Petroleum and Minerals

More information

Cascading Style Sheets. Overview and Basic use of CSS

Cascading Style Sheets. Overview and Basic use of CSS Cascading Style Sheets Overview and Basic use of CSS What are Style Sheets? A World Wide Web Consortium (W3C) defined standard A way for web page designers to separate the formatting of a document from

More information

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

Session 4. Style Sheets (CSS) Reading & References.   A reference containing tables of CSS properties Session 4 Style Sheets (CSS) 1 Reading Reading & References en.wikipedia.org/wiki/css Style Sheet Tutorials www.htmldog.com/guides/cssbeginner/ A reference containing tables of CSS properties web.simmons.edu/~grabiner/comm244/weekthree/css-basic-properties.html

More information

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Note: We skipped Study Guide 1. If you d like to review it, I place a copy here: https:// people.rit.edu/~nbbigm/studyguides/sg-1.docx

More information

CMPT 165: More CSS Basics

CMPT 165: More CSS Basics CMPT 165: More CSS Basics Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University October 14, 2011 1 The Favorites Icon The favorites icon (favicon) is the small icon you see

More information

Introduction to WEB PROGRAMMING

Introduction to WEB PROGRAMMING Introduction to WEB PROGRAMMING Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication Full-Stack Web Frameworks

More information

Lab Introduction to Cascading Style Sheets

Lab Introduction to Cascading Style Sheets Lab Introduction to Cascading Style Sheets For this laboratory you will need a basic text editor and a browser. In the labs, winedt or Notepad++ is recommended along with Firefox/Chrome For this activity,

More information

DAY 4. Coding External Style Sheets

DAY 4. Coding External Style Sheets DAY 4 Coding External Style Sheets LESSON LEARNING TARGETS I can code and apply an embedded style sheet to a Web page. I can code and apply an external style sheet to multiple Web pages. I can code and

More information

CSS Cascading Style Sheets

CSS Cascading Style Sheets CSS Cascading Style Sheets site root index.html about.html services.html stylesheet.css charlie.jpg Linking to your HTML You need to link to your css in the of your HTML file.

More information

1 of 7 11/12/2009 9:29 AM

1 of 7 11/12/2009 9:29 AM 1 of 7 11/12/2009 9:29 AM Home Beginner Tutorials First Website Guide HTML Tutorial CSS Tutorial XML Tutorial Web Host Guide SQL Tutorial Advanced Tutorials Javascript Tutorial PHP Tutorial MySQL Tutorial

More information

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster. Wanted! Introduction In this project, you ll learn how to make your own poster. Step 1: Styling your poster Let s start by editing the CSS code for the poster. Activity Checklist Open this trinket: jumpto.cc/web-wanted.

More information

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space. HTML Summary Structure All of the following are containers. Structure Contains the entire web page. Contains information

More information

CSS means Cascading Style Sheets. It is used to style HTML documents.

CSS means Cascading Style Sheets. It is used to style HTML documents. CSS CSS means Cascading Style Sheets. It is used to style HTML documents. Like we mentioned in the HTML tutorial, CSS can be embedded in the HTML document but it's better, easier and neater if you style

More information

CSS Styles Quick Reference Guide

CSS Styles Quick Reference Guide Table 1: CSS Font and Text Properties Font & Text Properties Example(s) font-family Font or typeface font-family: Tahoma font-size Size of the font font-size: 12pt font-weight Normal or bold font-weight:

More information

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

CSS مفاهیم ساختار و اصول استفاده و به کارگیری CSS مفاهیم ساختار و اصول استفاده و به کارگیری Cascading Style Sheets A Cascading Style Sheet (CSS) describes the appearance of an HTML page in a separate document : مسایای استفاده از CSS It lets you separate

More information

How to lay out a web page with CSS

How to lay out a web page with CSS Activity 2.6 guide How to lay out a web page with CSS You can use table design features in Adobe Dreamweaver CS4 to create a simple page layout. However, a more powerful technique is to use Cascading Style

More information

HTML/XML. HTML Continued Introduction to CSS

HTML/XML. HTML Continued Introduction to CSS HTML/XML HTML Continued Introduction to CSS Entities Special Characters Symbols such as +, -, %, and & are used frequently. Not all Web browsers display these symbols correctly. HTML uses a little computer

More information

HTML and CSS a further introduction

HTML and CSS a further introduction HTML and CSS a further introduction By now you should be familiar with HTML and CSS and what they are, HTML dictates the structure of a page, CSS dictates how it looks. This tutorial will teach you a few

More information

Controlling Appearance the Old Way

Controlling Appearance the Old Way Webpages and Websites CSS Controlling Appearance the Old Way Older webpages use predefined tags - - italic text; - bold text attributes - Tables (and a few other elements) use specialized

More information

CSS: Cascading Style Sheets

CSS: Cascading Style Sheets CSS: Cascading Style Sheets Computer Science and Engineering College of Engineering The Ohio State University Lecture 13 Evolution of CSS MIME type: text/css CSS 1 ('96): early recognition of value CSS

More information

Web Designer s Reference

Web Designer s Reference Web Designer s Reference An Integrated Approach to Web Design with XHTML and CSS Craig Grannell Graphical navigation with rollovers The final exercise in this chapter concerns navigation with graphical

More information

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model) INTRO TO CSS RECAP HTML WHAT IS CSS ADDING CSS TO YOUR HTML DOCUMENT CSS IN THE DIRECTORY TREE CSS RULES A FEW CSS VALUES (colour, size and the box model) CSS SELECTORS SPECIFICITY WEEK 1 HTML In Week

More information

CASCADING STYLESHEETS

CASCADING STYLESHEETS CASCADING STYLESHEETS Cascading StyleSheets (CSS) has been mainly created because HTML is just not the right tool for precision and flexibility. HTML is not a very effective for designing web pages. Most

More information

CSS worksheet. JMC 105 Drake University

CSS worksheet. JMC 105 Drake University CSS worksheet JMC 105 Drake University 1. Download the css-site.zip file from the class blog and expand the files. You ll notice that you have an images folder with three images inside and an index.html

More information

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web HTML & CSS SWE 432, Fall 2017 Design and Implementation of Software for the Web HTML: HyperText Markup Language LaToza Language for describing structure of a document Denotes hierarchy of elements What

More information

Chapter 12: FORMATTING TEXT

Chapter 12: FORMATTING TEXT Disclaimer: All words, pictures are adopted from Learning Web Design (3 rd eds.) by Jennifer Niederst Robbins, published by O Reilly 2007. PART III: CSS FOR PRESENTATION Chapter 12: FORMATTING TEXT CSc2320

More information

First Name Last Name CS-081 March 23, 2010 Midterm Exam

First Name Last Name CS-081 March 23, 2010 Midterm Exam First Name Last Name CS-081 March 23, 2010 Midterm Exam Instructions: For multiple choice questions, circle the letter of the one best choice unless the question explicitly states that it might have multiple

More information

CSS: Layout Part 2. clear. CSS for layout and formatting: clear

CSS: Layout Part 2. clear. CSS for layout and formatting: clear CSS: Layout Part 2 Robert A. Fulkerson College of Information Science and Technology http://www.ist.unomaha.edu/ University of Nebraska at Omaha http://www.unomaha.edu/ CSS for layout and formatting: clear

More information

ITNP43: HTML Lecture 4

ITNP43: HTML Lecture 4 ITNP43: HTML Lecture 4 Niederst, Part III (3rd edn) 1 Style versus Content HTML purists insist that style should be separate from content and structure HTML was only designed to specify the structure and

More information

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR DYNAMIC BACKGROUND IMAGE Before you begin this tutorial, you will need

More information

Web Development & Design Foundations with HTML5

Web Development & Design Foundations with HTML5 1 Web Development & Design Foundations with HTML5 CHAPTER 3 CSS BASICS Copyright Terry Felke-Morris 2 Learning Outcomes In this chapter, you will learn how to... Describe the evolution of style sheets

More information

The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows:

The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows: CSS Tutorial Part 2: Lists: The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows: ul { list-style-type: circle; or

More information

Three Ways to Use CSS:

Three Ways to Use CSS: Introduction to CSS CSS Defined: Short for "Cascading Style Sheets". Determines how the elements in our XHTML documents are displayed and formatted. Designed to separate the content of a web page from

More information

Styles, Style Sheets, the Box Model and Liquid Layout

Styles, Style Sheets, the Box Model and Liquid Layout Styles, Style Sheets, the Box Model and Liquid Layout This session will guide you through examples of how styles and Cascading Style Sheets (CSS) may be used in your Web pages to simplify maintenance of

More information

Taking Fireworks Template and Applying it to Dreamweaver

Taking Fireworks Template and Applying it to Dreamweaver Taking Fireworks Template and Applying it to Dreamweaver Part 1: Define a New Site in Dreamweaver The first step to creating a site in Dreamweaver CS4 is to Define a New Site. The object is to recreate

More information

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Make a Website A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Overview Course outcome: You'll build four simple websites using web

More information

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors Unit 10 - Client Side Customisation of Web Pages Week 5 Lesson 1 CSS - Selectors Last Time CSS box model Concept of identity - id Objectives Selectors the short story (or maybe not) Web page make-over!

More information

READSPEAKER ENTERPRISE HIGHLIGHTING 2.5

READSPEAKER ENTERPRISE HIGHLIGHTING 2.5 READSPEAKER ENTERPRISE HIGHLIGHTING 2.5 Advanced Skinning Guide Introduction The graphical user interface of ReadSpeaker Enterprise Highlighting is built with standard web technologies, Hypertext Markup

More information

Admin. Midterm 1 on. Oct. 13 th (2 weeks from today) Coursework:

Admin. Midterm 1 on. Oct. 13 th (2 weeks from today) Coursework: Midterm 1 on Admin Oct. 13 th (2 weeks from today) Coursework: E1 grade released: please see Karoon (TA) at his office hours (Tues at 12-1pm) E2 due tomorrow E3 posted yesterday; due this Friday 11:59pm

More information

HTML5: Adding Style. Styling Differences. HTML5: Adding Style Nancy Gill

HTML5: Adding Style. Styling Differences. HTML5: Adding Style Nancy Gill HTML5: Adding Style In part 2 of a look at HTML5, Nancy will show you how to add CSS to the previously unstyled document from part 1 and why there are some differences you need to watch out for. In this

More information

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles Using Dreamweaver CC 6 So far we have used CSS to arrange the elements on our web page. We have also used CSS for some limited formatting. In this section we will take full advantage of using CSS to format

More information

CSS: Formatting Text. CSS for text processing: font-family. Robert A. Fulkerson

CSS: Formatting Text. CSS for text processing: font-family. Robert A. Fulkerson CSS: Formatting Text Robert A. Fulkerson College of Information Science and Technology http://www.ist.unomaha.edu/ University of Nebraska at Omaha http://www.unomaha.edu/ CSS for text processing: font-family

More information

CSS Cascading Style Sheets

CSS Cascading Style Sheets CSS Cascading Style Sheets site root index.html about.html services.html stylesheet.css images boris.jpg Types of CSS External Internal Inline External CSS An external style sheet is a text document with

More information

2005 WebGUI Users Conference

2005 WebGUI Users Conference Cascading Style Sheets 2005 WebGUI Users Conference Style Sheet Types 3 Options Inline Embedded Linked Inline Use an inline style sheet to modify a single element one time in a page.

More information

ICT IGCSE Practical Revision Presentation Web Authoring

ICT IGCSE Practical Revision Presentation Web Authoring 21.1 Web Development Layers 21.2 Create a Web Page Chapter 21: 21.3 Use Stylesheets 21.4 Test and Publish a Website Web Development Layers Presentation Layer Content layer: Behaviour layer Chapter 21:

More information

Web Development & Design Foundations with HTML5

Web Development & Design Foundations with HTML5 Web Development & Design Foundations with HTML5 KEY CONCEPTS Copyright Terry Felke-Morris 1 Learning Outcomes In this chapter, you will learn how to... Describe the evolution of style sheets from print

More information

Parashar Technologies HTML Lecture Notes-4

Parashar Technologies HTML Lecture Notes-4 CSS Links Links can be styled in different ways. HTML Lecture Notes-4 Styling Links Links can be styled with any CSS property (e.g. color, font-family, background, etc.). a { color: #FF0000; In addition,

More information

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Downloads: Google Chrome Browser (Free) -   Adobe Brackets (Free) - Week One Tools The Basics: Windows - Notepad Mac - Text Edit Downloads: Google Chrome Browser (Free) - www.google.com/chrome/ Adobe Brackets (Free) - www.brackets.io Our work over the next 6 weeks will

More information

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS: WEBSITE PROJECT 2 PURPOSE: The purpose of this project is to begin incorporating color, graphics, and other visual elements in your webpages by implementing the HTML5 and CSS3 code discussed in chapters

More information

Using Dreamweaver CS6

Using Dreamweaver CS6 6 So far we have used CSS to arrange the elements on our web page. We have also used CSS for some limited formatting. In this section we will take full advantage of using CSS to format our web site. Just

More information

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2 Introduction to HTML & CSS Instructor: Beck Johnson Week 2 today Week One review and questions File organization CSS Box Model: margin and padding Background images and gradients with CSS Make a hero banner!

More information

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 LEARNING OUTCOMES In this chapter, you will learn how to... Describe the evolution of style sheets from print media to the Web List

More information

GoSquared Equally Rounded Corners Equally Rounded Corners -webkit-border-radius -moz-border-radius border-radius Box Shadow Box Shadow -webkit-box-shadow x-offset, y-offset, blur, color Webkit Firefox

More information

Cascading Style Sheets Level 2

Cascading Style Sheets Level 2 Cascading Style Sheets Level 2 Course Objectives, Session 1 Level 1 Quick Review Chapter 6 Revisit: Web Fonts Chapter 8: Adding Graphics to Web Pages Chapter 9: Sprucing Up Your Site s Navigation Begin

More information

Creating a CSS driven menu system Part 1

Creating a CSS driven menu system Part 1 Creating a CSS driven menu system Part 1 How many times do we see in forum pages the cry; I ve tried using Suckerfish, I ve started with Suckerfish and made some minor changes but can t get it to work.

More information

CSS. Lecture 16 COMPSCI 111/111G SS 2018

CSS. Lecture 16 COMPSCI 111/111G SS 2018 CSS Lecture 16 COMPSCI 111/111G SS 2018 No CSS Styles A style changes the way the HTML code is displayed Same page displayed using different styles http://csszengarden.com Same page with a style sheet

More information

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links Using Dreamweaver CC 4 Creating a Template Now that the main page of our website is complete, we need to create the rest of the pages. Each of them will have a layout that follows the plan shown below.

More information

Assignments (4) Assessment as per Schedule (2)

Assignments (4) Assessment as per Schedule (2) Specification (6) Readability (4) Assignments (4) Assessment as per Schedule (2) Oral (4) Total (20) Sign of Faculty Assignment No. 02 Date of Performance:. Title: To apply various CSS properties like

More information

CSS Module in 2 Parts

CSS Module in 2 Parts CSS Module in 2 Parts So as to familiarize yourself with the basics of CSS before moving onto Dreamweaver, I d like you to do the 2 following Modules. It is important for you to AT LEAST do Part 1. Part

More information

Using Advanced Cascading Style Sheets

Using Advanced Cascading Style Sheets HTML 7 Using Advanced Cascading Style Sheets Objectives You will have mastered the material in this chapter when you can: Add an embedded style sheet to a Web page Change the body and link styles using

More information

View all articles by Kevin Verdana, Tahoma, etc.) for the main body text of a site.

View all articles by Kevin Verdana, Tahoma, etc.) for the main body text of a site. 1 von 14 27.03.2008 09:50 Article Home» Client Side Coding» CSS Tutorials» CSS Is Easy! CSS Is Easy! By Kevin Yank January 2nd 2001 Reader Rating: 9.1 Cascading Style Sheets. The name alone is intimidating,

More information

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em> Introduction to CSS Review Question 1 Which tag is used to create a link to another page? 1. 2. 3. 4. Review Question 1 Which tag is used to create a link to another page? 1. 2.

More information

CSS: Cascading Style Sheets

CSS: Cascading Style Sheets What are Style Sheets CSS: Cascading Style Sheets Representation and Management of Data on the Internet, CS Department, Hebrew University, 2007 A style sheet is a mechanism that allows to specify how HTML

More information

CSS: Beyond the Code. Karen Perone Rodman Public Library.

CSS: Beyond the Code. Karen Perone Rodman Public Library. CSS: Beyond the Code Karen Perone Rodman Public Library peroneka@oplin.org HTML vs. CSS vs. Javascript HTML for content (text, images, sound) CSS for presentation (layout, color) Javascript for behavior

More information

CSS Lecture 16 COMPSCI 111/111G SS 2018

CSS Lecture 16 COMPSCI 111/111G SS 2018 No CSS CSS Lecture 16 COMPSCI 111/111G SS 2018 Styles Astyle changes the way the HTML code is displayed Same page displayed using different styles Same page with a style sheet body font-family: sans-serif;

More information

8a. Cascading Style Sheet

8a. Cascading Style Sheet INFS 2150 Introduction to Web Development 8a. Cascading Style Sheet 1 Objectives Concepts of cascading style sheets (CSS). 3 ways of using CSS: inline styles, embedded styles, and external style sheet.

More information

BIM222 Internet Programming

BIM222 Internet Programming BIM222 Internet Programming Week 7 Cascading Style Sheets (CSS) Adding Style to your Pages Part II March 20, 2018 Review: What is CSS? CSS stands for Cascading Style Sheets CSS describes how HTML elements

More information