Fundamentals of Web Programming a

Size: px
Start display at page:

Download "Fundamentals of Web Programming a"

Transcription

1 Fundamentals of Web Programming a Cascading Style Sheets Teodor Rus rus@cs.uiowa.edu The University of Iowa, Department of Computer Science a Copyright 2009 Teodor Rus. These slides have been developed by Teodor Rus using material published by R.W. Sebesta, Programming the World Wide Web, Addison Wesley They are copyrighted materials and may not be used in other course settings outside of the University of Iowa in their current form or modified form without the express written permission of the copyright holder. During this course, students are prohibited from selling notes to or being paid for taking notes by any person or commercial firm without the express written permission of the copyright holder. Introduction System Software. Copyright Teodor Rus p.1/59

2 Contents Historical Notes; CSS Precedence Relation; Style Sheet Specification; Style Specification Formats; Style Rule Selectors; Property Value Forms; Paddings and Margins; Background Images; Conflict Resolution. Introduction System Software. Copyright Teodor Rus p.2/59

3 Historical Notes Most of the XHTML tags have associated properties which store presentation info. Note: browser uses default values of these properties if the document does not specify values. Style sheets have been developed as mechanisms that allow browser user to specify document presentation properties. Introduction System Software. Copyright Teodor Rus p.3/59

4 Cascade Style Sheets Cascading Style Sheets (CSS1) for use in XHTML documents have been developed in 1996 by W3C. CSS2, which added many properties and property values to CSS1 and extended presentation control to media other than Web browsers (such as printers) was released in Browser support for CSS2 is not complete. W3C decided to develop a new standard, CSS2.1 that reflect browser support for CSS2. Note: The book presents a subset of CSS1 along with few properties from CSS2. Unless otherwise specified the examples in the book work correctly for IE7 and FX2 browsers. Introduction System Software. Copyright Teodor Rus p.4/59

5 Levels of CSS There are three levels of style sheets: 1. Inline: apply to the contents of an single element of the XHTML document; 2. Document: apply to the whole body of a document; 3. External: apply to the body of any number of documents. Precedence relation : external document inline meaning: a property specified by an external sheet is overridden by the same property specified by a document sheet which is overridden by the same property specified by an inline sheet. Introduction System Software. Copyright Teodor Rus p.5/59

6 Using style sheets If no style sheet info is specified, the browser default property is used; If a browser cannot use a property specified by a style sheet it either replaces that property (for example with its default) or ignores that property. Introduction System Software. Copyright Teodor Rus p.6/59

7 CSS Specification Inline style sheets: are defined inside of the opening tag of the element. Example: <p {font-size 18pt}> The paragraph </p> Disadvantage: generates a non-uniform styling and results in a mixture of XHTML language with the language of CSS. Therefore, inline style sheets are deprecated in XHTML 1.1 Introduction System Software. Copyright Teodor Rus p.7/59

8 Document CSS Specification Document style specifications: are defined in the document head section of the document; They apply to the entire body of the document. Example: <head> <title> Enumerated sequence </title> <style type = "text/css"> o1 {list-style-type: upper-roman;} o1 o1 {list-style-type: decimal;} </style> </head> Introduction System Software. Copyright Teodor Rus p.8/59

9 External CSS Specification External CSS Specification: are defined in a file which is not part of the documents they apply to. External CSS style sheets are stored separately and are referenced in the documents where they are used. Introduction System Software. Copyright Teodor Rus p.9/59

10 External Style Sheet Reference Are text-files with the MIME type "text/css". The browser fetches them using < link > tag, which must be placed in the document head, using the attributes rel and href: The rel attribute is used to specify the relationship of the linked-to document to the document in which the link appears: The href attribute is used to specify the URL of the style sheet Example: document. <link rel = "stylesheet" type = "text/css" href = " /> Introduction System Software. Copyright Teodor Rus p.10/59

11 Fact If the external style sheet resides on the Web server, only the path to the file needs to be given to href. Example: <link rel = "stylesheet" type = "text/css" href = "styles/xhtmldocs.css" /> Introduction System Software. Copyright Teodor Rus p.11/59

12 Import Directive rule allows you to include the external style sheets in your document. allows us to create style sheets independent of our documents, and then importing them into different documents for uniform styling. Example: <html> <head> <title> Directive </title> <style url("style2.css"); </style> </head> <body> <p> Examples imported style sheets.</p> </body> </html> Introduction System Software. Copyright Teodor Rus p.12/59

13 Fact There is a little ambiguity about url() in the book. However, there are a lot of experiments on the web that would allow us to handle this ambiguity. Note: The double quotes are required for valid XHTML, but browsers that support url() tend to support it with or without quotes. Introduction System Software. Copyright Teodor Rus p.13/59

14 Style Sheets Validation Style sheets validation service: Introduction System Software. Copyright Teodor Rus p.14/59

15 Style Specification Formats The format of style specification depends upon the level of style sheet. Inline style specification: Defined as the value of the style attribute of the tag. The general form is: style = "property_1: value_1; property_2: value_2;... property_n: value_n;" Example: <p style="font-size: x-large; color: #ff9900"> Paragraph using inline style sheets </p> Introduction System Software. Copyright Teodor Rus p.15/59

16 Document Style Specification Defined in the content of the style element within the header of the document. General form of the content of a style element is: <style type = "text/css"> style rule list </style> Each style rule in the list has two parts: a selector, which indicate the tag (or tags) affected by the rule, and a list of property/value pairs. The form of a style rule is: selector { property_1: value_1; property_2: value_2;... property_n: value_n; } Values of a multi-value property are separated by space or comma! Introduction System Software. Copyright Teodor Rus p.16/59

17 External Style Specification External style sheets have the same form to that of the document style sheetss; External style seets are stored in a file whose name is.css terminated; External style sheets are referenced using < link > tag or are imported in the document directiove. Introduction System Software. Copyright Teodor Rus p.17/59

18 Keeping Style Sheets Readable Comment style sheets rules! Note: one cannot use XHTML comment here, one needs to use C like comment, /* comment */; Structure style sheets by their selectors, as in: <style type = "text/css"> /* Style rules for the initial paragraph */ rules here /* Style rules for other paragaraphs */ rules here /* Other style rule */ rules here </style> Introduction System Software. Copyright Teodor Rus p.18/59

19 Style Rule Selectors Simple selector forms; Class selectors; Generic selectors; id selectors; Universal selectors. Introduction System Software. Copyright Teodor Rus p.19/59

20 Simple Selector Forms Element tag names followed by the style rule. The selector is a comma separated list of element tag names; Property values in the style sheet apply to all occurrences of named elements; Example: h1 {font-sixe 24pt;} h2,h3 {font-size: 20pt}; Contextual selectors, specify that the style should apply only to elements in certain position. Example: form em {front-size: 14;} /* note: no commas between tags */ applies only to em elements that are nested in the form element of a document. Introduction System Software. Copyright Teodor Rus p.20/59

21 Class Selectors Are used to allow different occurrences of the same tag to use different styles. The selector is a tag name followed by a class attribute value, such as p.normal, p.warning etc.; The attribute class is then used in the opening tag with the value of the style required; Example style specification: p.normal {property-value list} p.warning {property-value list} Introduction System Software. Copyright Teodor Rus p.21/59

22 Example Style Use <p class = "normal"> A paragraph presented in "normal style"; </p> <p class = "warning"> A paragraph presented in "warning style". Introduction System Software. Copyright Teodor Rus p.22/59

23 Generic Selector A generic class is defined as a class selector without the tag. Style rule definition:.sale {property-value list} Style rule use: In the document we may have: <h3 class = "sale"> Weekend sale </h3>... <p class = "sale"> Items displayed with style "sale" </p> Introduction System Software. Copyright Teodor Rus p.23/59

24 id Selectors The general form of an id selector is: #specific-id {property-value list} The style specified by a specific id selector applies to elements with the specific id. Example: #section14 {font-size: 20} specifies a font size of 20pt to the element <h2 id = "section14"> Text presented in 20pt size </h2> Introduction System Software. Copyright Teodor Rus p.24/59

25 Universal Selector The universal selector, denoted by an asterisk, applies its style to all element in the document. Example: * {color: red} makes all elements in the document red. Introduction System Software. Copyright Teodor Rus p.25/59

26 Pseudo Classes Pseudo classes are styles that apply when something happens rather than because the element simple exists (they are used in Fomrs). The two pseudo classes supported are: hover and focus. FX2 supports hover and focus, IE7 supports hover; The name of a pseudo class begin with : (colon) (while name of a class begins with. (period); The style of hover applies when its associated element has mouse cursor over; The style of focus applies when its associated element has focus (i.e., cursor is placed over). Introduction System Software. Copyright Teodor Rus p.26/59

27 Example Pseudo Class <!-- pseudo.html; illustrates :hover and :focus --> <html xmlns = " <head><title>pseudo Classes </title> <style type = "text/css"> label :hover {color: red;} label :focus {color: green;} </style> </head> <body> <form action = ""> <p> <label> Your name: <input type = "text" /> </label> </p> </form> </body> </html> Note: focus (only) work in Safari Introduction System Software. Copyright Teodor Rus p.27/59

28 Property Value Forms CSS1 includes 60 different properties in 7 categories: 1. fonts, 2. lists, 3. text alignment, 4. margins, 5. colors, 6. background, and 7. borders. See complete list on W3C Web site. Introduction System Software. Copyright Teodor Rus p.28/59

29 Kind of Property Values Keyword property values are used when only few of then are available; Number values (integers or a sequence of digits) are used when no meaningful units can be attached to a numeric property value; Length property values, number values followed by a length unit; Percentage values, provide a measure relative to a previously used property; URL property values (slightly different from references to URLs in links); Color properties (color name or 6 digits hex number #abc123, RGB (red, green, blue combination)). Introduction System Software. Copyright Teodor Rus p.29/59

30 Inherited Properties CSS2 specifies that some property values are inherited by elements nested in the element for which the values are specified. Example: background-color is not inherited; font-size is inherited. For example: body {fron-size: 16pt} set the default property for the whole document. Introduction System Software. Copyright Teodor Rus p.30/59

31 Font Properties Font Families; Font Size; Font Variants; Font Styles; Font Weights; Font Shorthands. Introduction System Software. Copyright Teodor Rus p.31/59

32 Font Families The font-family property is used to specify a list of font names. Browser uses first font in the list that it supports. Example font property: font-family: Arial, Helvetica, Futura The following table contains the generic fonts: Table 1: Generic Fonts Generic Name Examples serif sans-serif cursive fantasy monospace Times New Roman, Garamond MS Arial, Helvetica Caflisch Script, Zapf-Chancery Critter, Cottonwood Courier, Prestige Introduction System Software. Copyright Teodor Rus p.32/59

33 Observation If a font name has more than one word the whole name should be in quotes. Example: font-family: Time New Roman Note: Serifs are non-structural decorations at the end of characters; Sans-serif is the french exprerssion for "no serif". Introduction System Software. Copyright Teodor Rus p.33/59

34 Font Size The font-size property characterizes the font size in points. The value of a font-size property can be measured: In points, such as font-size: 10pt Relative font-size values are: xx-small, x-small, small, medium, large, x-large, xx-large; Percentage (+ or -) from the current font. Introduction System Software. Copyright Teodor Rus p.34/59

35 Font Variants Default value of the font-variant property is normal. font-variant: normal specifies the usual character font; font-variant: small-caps specifies small cap characters (all characters uppercase); Note: normal upper-cap characters are larger that small-caps. Introduction System Software. Copyright Teodor Rus p.35/59

36 Font Styles The font-style property is used to specify italic and oblique. Note: some browsers do not support oblique. Introduction System Software. Copyright Teodor Rus p.36/59

37 Font Weights The font-weight property specifies the degree of boldness. Example: font-weight: bold Other values are: normal, bolder, lighter. Degree of boldness can also be specified in multiple of 100, from 100 to 900, where normal is 400 and bold is 700. Introduction System Software. Copyright Teodor Rus p.37/59

38 Font Shorthands If more than one value must be specified, the value must be stated in a list as the value of the font property. Example: font: bold 14pt Time New Roman Palation The order in which properties are given in a font property is important. This order must be: {font style, font variant, font weight} font size font name. Note: only the font size and font family are required in the font value list. Introduction System Software. Copyright Teodor Rus p.38/59

39 Example Font Properties <xhtml xmlns = " <head> <title> Font Properties </title> <style type = "text/css"> p.major {font-size: 14pt; font-style: italic; font-family: serif;} p.minor {font: bold 10pt Garamond;} h2 {font-family: Times New Roman ;font-size: 24pt;font-weight: bold;} h3 {font-family: Courier New ; font-size: 18pt;} </style> </head> <body> <p class = "major"> If a job is worth doing, it s worth doing right. < <p class = "minor"> Two wrongs don t make a right but they certainly can get you in a lot of trouble. </p> <h2> Chapter 1 Introduction </h2> <h3> 1.1 The Basics of Computer Networks </h3> </body> </html> Introduction System Software. Copyright Teodor Rus p.39/59

40 Text Decoration The text-decoration property is used to specify special features of the text. Available values: line-through, overline, underline, none Note: text-decoration is not inherited. The file decoration.html illustrates line-through, overline, underline. The letter-spacing property controls the amount of space between characters. Possible values are length property values, such as 3px. Introduction System Software. Copyright Teodor Rus p.40/59

41 Example Text Decoration <html xmlns = " <head <title> Text decoration </title> <style type = "text/css"> p.delete {text-decoration: line-through;} p.over {text-decoration: overline;} p.under {text-decoration: underline;} </style> </head> <body> <p class = "delete"> This illustrate line-through. </p> <p class = "over"> This illustrate overline.</p> <p class = "under"> This illustrate underline. </p> </body> </html> Introduction System Software. Copyright Teodor Rus p.41/59

42 List Properties The shape of bullets and of the sequencing values that precede items in a list are specified by list-style-type property. The list-style-type of an unordered list can be set to: disc, circle, square, none. Default value is disc. The disc-style-image can also be specified with url form. Example: <style type = "text/css"> li.image {list-style-image = url("figure.gif");} </style>... <li class = "image"> Item prefixed by figure.gif </li> The values of list-style-type used for an ordered list are: decimal, upper-alpha, lower-alpha, upper-roman, lower-roman. Introduction System Software. Copyright Teodor Rus p.42/59

43 Example List Style The file sequence.html illustrates the usage of list-style-type property. Introduction System Software. Copyright Teodor Rus p.43/59

44 Color Three levels of collections of colors might be used by an XHTML document: 1. Standard name colors (see table below); 2. Named colors (140 named colors, not all browsers support all); 3. Web palette (216 Web-safe colors) colors. Name HexCode Name HexCode Name HexCode Name HexCode aqua 00ffff black blue 0000FF fuchsia FF00FF gray green lime 00ff00 maroon navy olive purple red FF0000 silver C0C0C0 teal white FFFFFF yellow FFFF00 Introduction System Software. Copyright Teodor Rus p.44/59

45 Color Properties Color properties are: color, background-color. The value of a color property is a color name or the color hex code prfixed by #. Introduction System Software. Copyright Teodor Rus p.45/59

46 Example <style type = "text/css"> th.red {color: red;} th.orange {color: orange;} p.standout {color: blue; background-color: red;} </style>... <table border = "3px"> <tr> <th class = "red"> Apple </th> <th class = "orange"> Oranges </th> </tr> </table>... <p class = "standout"> To really make it standout use red beckground </p> Introduction System Software. Copyright Teodor Rus p.46/59

47 Alignment of Text The alignment properties are: text-indent, text-align, float The text-indent property is used to specify text indentation. Its value is the length of percentage of text indentation. For example: <style type = "text/css"> p.indent {text-indent: 0.5in;} </style>... <p class = "indent"> Now is the time to act! </p> The text-align property is used to specify horizontal text alignment. Its values are the keywords left, center, right, justify. Default is left. The float is used to specify that text should flow around some element, often an image or a table. Possible values are left, rights or none which is default. Introduction System Software. Copyright Teodor Rus p.47/59

48 The Box model Virtually all document elements can have borders, which can have various styles, such as color and width. Thus, document elements can be characterized by the (abstract) box containing them, using the following concepts: Outer Edge: is the box border containing the element; Inner Edge: is the box border containing an inner element nested in an outer element. Content: is the text contents of the element; Padding: is the space between the border of an inner element and the border of the element containing it; Margin: is the space between the border of outer element and the document margin. Introduction System Software. Copyright Teodor Rus p.48/59

49 Border Style Properties The border-style controls element border and its style; border-top-style, border-bottom-style, border-right-style, control border components style; border-width, border-top-width, border-bottom-width, border-left-width, border-right-width; border-color, border-top-color, border-bottom-color, border-left-color, border-right-color. Introduction System Software. Copyright Teodor Rus p.49/59

50 CSS Border Requirements CSS1 requires that border be available for any element but only border style is solid; CSS2 provides several border styles such as: dotted, dashed, double and none which is the default value of border-style property; Introduction System Software. Copyright Teodor Rus p.50/59

51 Border Style Specification The style of a particular side of the border can be set with: border-top-style, border-bottom-style, border-left-style, border-right-style; The border-width property is used to specify border s sickness with values thin, medium, thick or length value in pixels; The width of each four border elements can be specified with border-top-width, border-bottom-width, border-left-width, border-right-width. The color of border (elements) is specified by the color. Introduction System Software. Copyright Teodor Rus p.51/59

52 Margins and Padding Padding is the space between the content of an element and its border; Margin is the space between the border of an element and the element s neighbor; When there is no border the margin plus the padding is the space between the content of the element and its neighbor. Here it may appear that there is no difference between padding and margin. Note: When an element has a background there is a difference between padding and margin when the element has no borders: background extend to the padding but not into the margin. Introduction System Software. Copyright Teodor Rus p.52/59

53 Margin Properties The margin properties are named margin and apply to all four sides of an element: margin-left, margin-right, margin-top, margin-bottom; The padding properties are named padding and apply to all four sides of an element: padding-left, padding-right, padding-top, padding-bottom. The example marpad.html illustrate some combinations of margin and padding. Introduction System Software. Copyright Teodor Rus p.53/59

54 Background Images The background-image property is used to place an image in the background of the element. Example: image.html illustrate this. Replication of the image is called tilling and can be controlled with background-repeat property which takes the values: repeat, no-repeat, repeat-x, repeat-y (no-repeat specifies just one copy of the image); Position of a no-repeating background image is specified by the background-position property which takes the values top, center, bottom, left, right. Introduction System Software. Copyright Teodor Rus p.54/59

55 The < span > Tag Sometimes we need to apply special font properties to less than a whole paragraph! < span > tag allows us to apply different properties to a phrase in a line. There is no default layout for the content of < span > Example: <p> It is fun to be in <span> total </span> control </p> displays control no different then other parts of the phrase. To make it different one can use < span > to change the properties of its content. Example: <style type = "text/css">.spanred {font-size: 24pt; font-family: Arial; color: red;} </style> <p> It is fun to be in <span> total </span> control </p> will display the word total differently. Introduction System Software. Copyright Teodor Rus p.55/59

56 The < div > Tag It is more convenient to apply a style to a section of a document using < div > tag than using < p > tag. As with < span > tag, there is no implied layout of the Content in an < div > Content < /div > element. The following example illustrate the style design for a div > element: <div class = "primary"> <p>... </p> <p>... </p>... <p>... </p> </div> The Content in the element < div > Content < /div > is displayed using the style called "primary". Introduction System Software. Copyright Teodor Rus p.56/59

57 Conflicts A conflict occurs when two different values for the same property apply on the same element. If the conflict occurs because different values are used in the three different levels of style sheets, it is resolved by the style sheets precedence rule: external document inline. Other source of conflicts occurs because of inheritance, specificity, and using!important specification as in the following example: p.special {font-style: italic!important; font-size: 14;} If conflicts occur during the document display by the browser, the browser needs to resolve it. Introduction System Software. Copyright Teodor Rus p.57/59

58 Conflict Resolution Is a multistage sorting process that orders the style properties associated with an element in the order of their application: 1. Important declarations with user origin; 2. Important declaration with the author origin; 3. Normal declarations with author origin; 4. Normal declarations with user origin; 5. Any declarations with browser (or other user agent) origin; Introduction System Software. Copyright Teodor Rus p.58/59

59 More Conflict Resolution If there are still conflicts after sorting the next step is sort by specificity using the following order: 1. id selectors are first; 2. Class and pseudo-class selectors; 3. Contextual selectors; 4. Universal selectors. If there are still conflicts, the precedence of most recently seen specification is used. Example: in the sequence p { font-size: 12pt;} p {font-size: 10pt} p {font-size: 10pt:} is the most recently seen. Introduction System Software. Copyright Teodor Rus p.59/59

- 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

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

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

- 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

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

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

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

CITS3403 Agile Web Development 2019 Semester 1

CITS3403 Agile Web Development 2019 Semester 1 Cascading Style Sheets CITS3403 Agile Web Development 2019 Semester 1 What is CSS? CSS stands for Cascading Style Sheets stylesheet language for web used to specify the presentation (layout and style)

More information

ID1354 Internet Applications

ID1354 Internet Applications ID1354 Internet Applications CSS Leif Lindbäck, Nima Dokoohaki leifl@kth.se, nimad@kth.se SCS/ICT/KTH What is CSS? - Cascading Style Sheets, CSS provide the means to control and change presentation of

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

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

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

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

Cascade Stylesheets (CSS)

Cascade Stylesheets (CSS) Previous versions: David Benavides and Amador Durán Toro (noviembre 2006) Last revision: Manuel Resinas (october 2007) Tiempo: 2h escuela técnica superior de ingeniería informática Departamento de Lenguajes

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

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

CSS for Styling CS380

CSS for Styling CS380 1 CSS for Styling The good, the bad and the 2 ugly! shashdot. News for nerds!! You will never, ever be bored here!

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

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

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

CSC 443: Web Programming

CSC 443: Web Programming 1 CSC 443: Web Programming Haidar Harmanani Department of Computer Science and Mathematics Lebanese American University Byblos, 1401 2010 Lebanon CSC443: Web Programming 2 for Styling The good, the bad

More information

1. Lists. 1.1 Unordered Lists. Subject Code 10CS73. Unit 2 XHTML 2, CSS. Subject Programming the Web

1. Lists. 1.1 Unordered Lists. Subject Code 10CS73. Unit 2 XHTML 2, CSS. Subject Programming the Web 1. Lists We frequently make and use lists in daily life for example, to-do lists and grocery lists. XHTML provides simple and effective ways to specify lists in documents. There are three types of lists,

More information

INTERNATIONAL UNIVERSITY OF JAPAN Public Management and Policy Analysis Program Graduate School of International Relations

INTERNATIONAL UNIVERSITY OF JAPAN Public Management and Policy Analysis Program Graduate School of International Relations Hun Myoung Park (1/26/2019) Cascading Style Sheets: 1 INTERNATIONAL UNIVERSITY OF JAPAN Public Management and Policy Analysis Program Graduate School of International Relations ADC5030401 (2 Credits) Introduction

More information

escuela técnica superior de ingeniería informática

escuela técnica superior de ingeniería informática Tiempo: 2h escuela técnica superior de ingeniería informática Previous versions: David Benavides and Amador Durán Toro (noviembre 2006) Manuel Resinas (october 2007) Last revision:pablo Fernandez, Cambios

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

CITS3403 Agile Web Development 2018, Semester 1

CITS3403 Agile Web Development 2018, Semester 1 Cascading Style Sheets CITS3403 Agile Web Development 2018, Semester 1 What is CSS? CSS stands for Cascading Style Sheets stylesheet language for web used to specify the presentation (layout and style)

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

CSc 337 LECTURE 3: CSS

CSc 337 LECTURE 3: CSS CSc 337 LECTURE 3: CSS The bad way to produce styles welcome to Greasy Joe's. You will never, ever, ever beat our

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

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

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

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

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

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 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

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

EECS1012. Net-centric Introduction to Computing. Lecture 3: CSS for Styling

EECS1012. Net-centric Introduction to Computing. Lecture 3: CSS for Styling EECS1012 Net-centric Introduction to Computing Lecture 3: CSS for Styling Acknowledgements Contents are adapted from web lectures for Web Programming Step by Step, by M. Stepp, J. Miller, and V. Kirst.

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

**Method 3** By attaching a style sheet to your web page, and then placing all your styles in that new style sheet.

**Method 3** By attaching a style sheet to your web page, and then placing all your styles in that new style sheet. CSS Tutorial Part 1: Introduction: CSS adds style to tags in your html page. With HTML you told the browser what things were (e.g., this is a paragraph). Now you are telling the browser how things look

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

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

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

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

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

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

CSS Tutorial Part 1: Introduction: A. Adding Style to a Web Page (3 options):

CSS Tutorial Part 1: Introduction: A. Adding Style to a Web Page (3 options): CSS Tutorial Part 1: Introduction: CSS adds style to tags in your html page. With HTML you told the browser what things were (e.g., this is a paragraph). Now you are telling the browser how things look

More information

CSE 154 LECTURE 3: MORE CSS

CSE 154 LECTURE 3: MORE CSS CSE 154 LECTURE 3: MORE CSS Cascading Style Sheets (CSS): ... ... HTML CSS describes the appearance and layout of information

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

Chapter 3 Style Sheets: CSS

Chapter 3 Style Sheets: CSS WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE JEFFREY C. JACKSON Chapter 3 Style Sheets: CSS 1 Motivation HTML markup can be used to represent Semantics: h1 means that an element is a top-level heading

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

Introduction to Cascading Style Sheets

Introduction to Cascading Style Sheets Introduction to Cascading Style Sheets Welcome to the CSS workshop! Before you begin this workshop you should have some basic understanding of HTML and building web pages. What is CSS anyway and what will

More information

Networks and Web for Health Informatics (HINF 6220) Tutorial 8 : CSS. 8 Oct 2015

Networks and Web for Health Informatics (HINF 6220) Tutorial 8 : CSS. 8 Oct 2015 Networks and Web for Health Informatics (HINF 6220) Tutorial 8 : CSS 8 Oct 2015 What is CSS? o CSS (Style Sheet) defines how HTML elements are formatted and displayed. o It helps you easily change an HTML

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

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

Creating A Website - Part 1: Web Design principles, HTML & CSS. CSS Color Values. Hexadecimal Colors. RGB Color

Creating A Website - Part 1: Web Design principles, HTML & CSS. CSS Color Values. Hexadecimal Colors. RGB Color Notes Week 3 By: Marisa Stoolmiller CSS Color Values With CSS, colors can be specified in different ways: Color names Hexadecimal values RGB values HSL values (CSS3) HWB values (CSS4) Hexadecimal Colors

More information

Introduction to CSS. Fijihosting.com Introduction to CSS page 1. What are style sheets? Lovely! How do I use them?

Introduction to CSS. Fijihosting.com Introduction to CSS page 1. What are style sheets? Lovely! How do I use them? Introduction to CSS Style sheets (or to give them their full title, cascading style sheets or CSS) are becoming more and more common on the Web. They were first introduced in a limited form to Internet

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

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

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

Chapter 2 CSS for Style

Chapter 2 CSS for Style Chapter 2 CSS for Style CSS, or Cascading Style Sheets, is a language used to define the presentation of a document written in mark up language, such as HTML. The main purpose of CSS is to separate the

More information

CSCB20 Week 7. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017

CSCB20 Week 7. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017 CSCB20 Week 7 Introduction to Database and Web Application Programming Anna Bretscher Winter 2017 Cascading Style Sheets (CSS) Examples of CSS CSS provides a powerful and stillevolving toolkit of style

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

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

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

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

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

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

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS cristina gena dipartimento di informatica cgena@di.unito.it http://www.di.unito.it/~cgena/ materiale e info sul corso http://www.di.unito.it/~cgena/teaching.html

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

CSS. Text & Font Properties. Copyright DevelopIntelligence LLC

CSS. Text & Font Properties. Copyright DevelopIntelligence LLC CSS Text & Font Properties 1 text-indent - sets amount of indentation for first line of text value: length measurement inherit default: 0 applies to: block-level elements and table cells inherits: yes

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 Site Design and Development Lecture 6

Web Site Design and Development Lecture 6 Web Site Design and Development Lecture 6 CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM Inheritance Before we talk about font properties, it needs to be known that font properties are inherited by the descendants

More information

ACSC 231 Internet Technologies

ACSC 231 Internet Technologies ACSC 231 Internet Technologies Lecture 7 Web Typography Efthyvoulos Kyriacou - Assoc. Prof. Frederick University Resources: C. Markides (Frederick University) Slide 1 ACSC 231: Internet Technologies 23/12/2008

More information

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions Text and Layout Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11 This presentation 344 345 Text in Graphics Maximum flexibility obtained by treating text as graphics and manipulating

More information

IMY 110 Theme 6 Cascading Style Sheets

IMY 110 Theme 6 Cascading Style Sheets IMY 110 Theme 6 Cascading Style Sheets 1. Cascading Style Sheets 1.1. Cascading Style Sheets Up to now we have done styling by using the style attribute. e.g. paragraph What

More information

HTML-5.com itemscopehttp://data-vocabulary.org/breadcrumb<span itemprop="title">html 5</span> itemscopehttp://data-vocabulary.

HTML-5.com itemscopehttp://data-vocabulary.org/breadcrumb<span itemprop=title>html 5</span> itemscopehttp://data-vocabulary. HTML-5.com HTML-5.com is an HTML User's Guide and quick reference of HTML elements and attributes for web developers who code HTML web pages, not only for HTML 5 but for HTML coding in general, with demos

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

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

Comp-206 : Introduction to Software Systems Lecture 23. Alexandre Denault Computer Science McGill University Fall 2006

Comp-206 : Introduction to Software Systems Lecture 23. Alexandre Denault Computer Science McGill University Fall 2006 HTML, CSS Comp-206 : Introduction to Software Systems Lecture 23 Alexandre Denault Computer Science McGill University Fall 2006 Course Evaluation - Mercury 22 / 53 41.5% Assignment 3 Artistic Bonus There

More information

UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013

UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013 UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013 SUBJECT CODE : SCSV1223 (Section 05) SUBJECT NAME : WEB PROGRAMMING YEAR/COURSE : 1SCSV TIME : 2.00 4.00 PM DATE : 18 APRIL 2013 VENUE : KPU 10

More information

CASCADING STYLE SHEETS (CSS) BY: RIHAM ALSMARI, PNU. Lab 4

CASCADING STYLE SHEETS (CSS) BY: RIHAM ALSMARI, PNU. Lab 4 1 CASCADING STYLE SHEETS (CSS) BY: RIHAM ALSMARI, PNU Lab 4 Cascading Style Sheets (CSS) 2 Three ways to apply a style to an HTML or XHTML document: Inline Styles Embedded Style Sheet External Style Sheet

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

Salvedicta. - Hans Selye CSC 210

Salvedicta. - Hans Selye CSC 210 Salvedicta 1 "Find your own stress level the speed at which you can run toward your own goal. Make sure that both the stress level and the goal are really your own, and not imposed upon you by society,

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

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

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

Creating and Building Websites

Creating and Building Websites Creating and Building Websites Stanford University Continuing Studies CS 21 Mark Branom branom@alumni.stanford.edu Course Web Site: http://web.stanford.edu/group/csp/cs21 Week 6 Slide 1 of 28 Week 6 Agenda

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

Chapter 4 CSS basics

Chapter 4 CSS basics Sungkyunkwan University Chapter 4 CSS basics Prepared by J. Lee and H. Choo Web Programming Copyright 2000-2018 Networking Laboratory 1/48 Copyright 2000-2012 Networking Laboratory Chapter 4 Outline 4.1

More information

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6 CS 350 COMPUTER/HUMAN INTERACTION Lecture 6 Setting up PPP webpage Log into lab Linux client or into csserver directly Webspace (www_home) should be set up Change directory for CS 350 assignments cp r

More information

CSS: formatting webpages

CSS: formatting webpages CSS: formatting webpages Why CSS? separate content from formatting (style) style can be changed easily without rewriting webpages keep formatting consistent across website allows more advanced formatting

More information

Lecture B3 Style : Algorithmic Thinking. Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007

Lecture B3 Style : Algorithmic Thinking. Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007 Lecture B3 Style : Algorithmic Thinking Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007 Functionalia Instructor Chipp Jansen, chipp@sci.brooklyn.cuny.edu Course Web Page http://www.sci.brooklyn.cuny.edu/~chipp/cc3.12/

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

APPLIED COMPUTING 1P01 Fluency with Technology

APPLIED COMPUTING 1P01 Fluency with Technology APPLIED COMPUTING 1P01 Fluency with Technology Cascading Style Sheets (CSS) APCO/IASC 1P01 Brock University Brock University (APCO/IASC 1P01) Cascading Style Sheets (CSS) 1 / 39 HTML Remember web pages?

More information

Faculty of Engineering Department of Computer Engineering. CSS Tutorial. Eng. Ahmed J. Alajrami

Faculty of Engineering Department of Computer Engineering. CSS Tutorial. Eng. Ahmed J. Alajrami Faculty of Engineering Department of Computer Engineering CSS Tutorial Eng. Ahmed J. Alajrami CSS What is CSS? Cascading: Multiple styles can overlap in order to specify a range of style from a whole web

More information

Deccansoft Software Services

Deccansoft Software Services Deccansoft Software Services (A Microsoft Learning Partner) HTML and CSS COURSE SYLLABUS Module 1: Web Programming Introduction In this module you will learn basic introduction to web development. Module

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