IDM 221. Web Design I. IDM 221: Web Authoring I 1

Size: px
Start display at page:

Download "IDM 221. Web Design I. IDM 221: Web Authoring I 1"

Transcription

1 IDM 221 Web Design I IDM 221: Web Authoring I 1

2 Week 4 IDM 221: Web Authoring I 2

3 Presenta(on IDM 221: Web Authoring I 3 Up until this point everything we've focused on has been related to content, and structure. This has been intentional, because without content we have no project. Without structure we have no way of presenting our content. These concepts are critical and must be addressed before we can work on presenting our content. You know enough of the fundamentals to now begin working on content, structure and presentation.

4 CSS Syntax /********************************* * Description: Primary style sheet * Author: Phil Sinatra *********************************/ body { background-color: #facd8a; } /* Adjust the styles for headings */ h1 { color: # ; } h2 { font-style: italic; border-bottom: 2px solid #fff; /* Add line below h2 */ } IDM 221: Web Authoring I 4

5 Rule Sets /* selector */ h1 { } IDM 221: Web Authoring I 5 A CSS file consists of rule sets. A rule set consists of a selector followed by a set of braces.

6 Rule Sets /* selector */ h1 { /* property: value */ color: navy; /* declaration */ } IDM 221: Web Authoring I 6 Within the braces are one ore more declarations, and each declaration consists of a property and a value. Note that the property is followed by a colon and the value is followed by a semicolon. The selector in this example is h1 so the rules apply to all h1 elements. Then, the rule set consists of a single property named color that is set to the color navy. The result is that the content of all h1 elements will be displayed in navy blue.

7 Rule Sets h2 { border-bottom: 2px solid #fff; font-style: italic; } ul { list-style-type: square; } IDM 221: Web Authoring I 7 Here are some other rule sets. Rule sets can include a single or multiple declarations.

8 Rule Sets h2 { border-bottom: 2px solid #fff; /* Add line below h2 headings */ font-style: italic; } ul { list-style-type: square; /* Change bullets to squares */ } IDM 221: Web Authoring I 8 You can also code comments that describe or explain what the CSS code is doing. For each comment you start with /* and end with */, and everything between those characters is ignored. You can also use comments to comment out portions of code that you want disabled, which is useful when you're testing your CSS code just like when you're testing your HTML code.

9 How to code basic selectors IDM 221: Web Authoring I 9

10 <body> <h1 class="base_color">student materials</h1> <p>here are the downloads:</p> <ul id="links"> <li><a href="exercises.html">exercises</a></li> </ul> <p id="copyright" class="base_color"> 2016</p> </body> IDM 221: Web Authoring I 10

11 Universal Selector /* All elements */ * { margin:.5em 1em; } IDM 221: Web Authoring I 11 The first rule set uses the universal selector so it applies to all HTML elements. You won't necessarily need to use the universal selector often, but it is available if needed.

12 Type Selectors body { font-family: Arial, sans-serif; font-size: 100%; padding: 1em; width: 300px; } h1 { font-size: 180%; } IDM 221: Web Authoring I 12 The selector of a rule set identifies the HTML element or elements that the rules should be applied to. This example shows how to use three of the most basic selectors for CSS rule sets. The first type of selector identifies HTML elements like body, h1 or p. The selectors in this example apply to the body and h1 elements. These selectors are called type selectors.

13 <body> <h1 class="base_color">student materials</h1> <p>here are the downloads:</p> <ul id="links"> <li><a href="exercises.html">exercises</a></li> </ul> <p id="copyright" class="base_color"> 2016</p> </body> IDM 221: Web Authoring I 13

14 ID Selectors #copyright { font-size: 75%; text-align: right; } IDM 221: Web Authoring I 14 The second type selector starts with a pound sign (#) and applies to the single HTML element that's identified by the id attribute. In this example #copyright applies to the HTML element that has an id attribute with the value of copyright.

15 <body> <h1 class="base_color">student materials</h1> <p>here are the downloads:</p> <ul id="links"> <li><a href="exercises.html">exercises</a></li> </ul> <p id="copyright" class="base_color"> 2016</p> </body> IDM 221: Web Authoring I 15

16 Class Selectors.base_color { color: blue; } IDM 221: Web Authoring I 16 The third type of selector starts with a period (.) and applies to all of the HTML elements that are identified by the class attribute with the named value. In this example.base_color applies to all the elements with class attributes that have a value of base_color. This includes the h1 element and the last p element.

17 body { font-family: Arial, sans-serif; font-size: 100%; padding: 1em; width: 300px; } h1 { font-size: 180%; } #copyright { font-size: 75%; text-align: right; }.base_color { color: blue; } IDM 221: Web Authoring I 17 To code a selector for an HTML element, you simply name the element. This is referred to as a type selector. If an element is coded with an id attribute, you can code a selector for that id by coding a pound sign followed by the id value, as in #copyright. If an element is coded with a class attribute, you can code a selector for that class by coding a period followed by the class name, as in.base_color.

18 Provide styles IDM 221: Web Authoring I 18 Before you code the CSS for a web page, you need to know how to provide the CSS file for a web page. There are three ways to provide CSS styles for a web page.

19 External Styles <link rel="stylesheet" href="/css/master.css" media="screen" charset="utf-8"> IDM 221: Web Authoring I 19 First, you can code a link element that refers to an external style sheet. That's a separate file that contains the CSS for the page. This separates the content from the formatting and makes it easy to use the same sytles for more than one page. The attributes for a link element that links to an external file are the rel (relationship) attribute with a value of "stylesheet", and the href attribute which locates the file. There are additional attributes that can be applied such as media, title, charset etc.

20 Embedded Styles <head> <style> body { font-family: Arial, sans-serif; } h1 { font-size: 130%; } </style> </head> <body> IDM 221: Web Authoring I 20 Second, you can embed a CSS style sheet in the HTML for a page. This is referred to as an embedded style sheet. When you embed a style sheet, the CSS rule sets are coded in a style element in the head section of the HTML.

21 Inline Styles <h1 style="font-size: 250%; color: red;"> Town Hall </h1> IDM 221: Web Authoring I 21 Third, you can use inline styles within an HTML document. When you use an inline style, you code a style attribute for the HTML element with a value that contains all the CSS rules that apply to the element. This type of formatting means the content and formatting are tightly linked and can quickly get out of control.

22 Cascading Style Sheet IDM 221: Web Authoring I 22 The term Cascading Style Sheet refers to the face that more than one style sheet can be applied to a single web page. If two or more rules for the same property are applied to the same element, the cascade order and other rules determine which rule takes precedence.

23 IDM 221: Web Authoring I 23 This is sometimes a difficult concept to master, and can be the cause of a lot of headaches, especially if your code is not well organized. If you find yourself repeating the same code multiple times in your stylesheet, you need to optimize your approach. If you make changes to a property in your stylesheet and are not seeing those changes reflected in the browser, you have to organize your code better.

24 The cascade order!important rules in a user style sheet!important rules in a web page normal rules in a web page normal rules in a user style sheet default rules in the web browser IDM 221: Web Authoring I 24

25 .highlight { font-weight: bold!important; } IDM 221: Web Authoring I 25 How to identify a rule as important.

26 Mul$ple rules at same cascade level.highlight { /* rules here */ } /* More specific selector */ p.highlight { /* rules here */ } IDM 221: Web Authoring I 26 The rule with the highest specificity is used.

27 p.highlight { color: red; } p.highlight { color: blue; } /*.highlight text will be blue */ IDM 221: Web Authoring I 27 If the specificity is the same, the rule set specified last is used.

28 Determining selector specificity id is the most specific class or pseudo-class is less specific element or pseudo-element is least specific IDM 221: Web Authoring I 28

29 Measurements IDM 221: Web Authoring I 29

30 Measurements Symbol Name Type Descrip1on px pixels absolute a single dot on a monitor pt points absolute 1/72 of an inch em ems rela9ve 1em = current font size % percent rela9ve rela9ve to current size vw viewport width rela9ve rela9ve to viewport vh viewport height rela9ve rela9ve to viewport IDM 221: Web Authoring I 30 You use the units of measure to specify a variety of CSS properties, including font-size, line-height, width, height, margin and padding. These are the four units of measure that are commonly used with CSS: pixels, points, ems and percent. The first two are absolute units, the second two are relative units. When you use relative units of measure like ems or percent, the measurement will change if the user changes the browser's font size. Example: You set the size of a font to 80 percent of the browser's default font size, that element will change if the user changes the font size in the browser. Because this lets the users adjust the font sizes to their own preferences, it is often recommended to use relative measurements for font sizes.

31 Measurements Symbol Name Type Descrip1on px pixels absolute a single dot on a monitor pt points absolute 1/72 of an inch em ems rela9ve 1em = current font size % percent rela9ve rela9ve to current size vw viewport width rela9ve rela9ve to viewport vh viewport height rela9ve rela9ve to viewport IDM 221: Web Authoring I 31 When you use absolute units of measurement the measurement won't change even if the user changes the font size in the browser. Example: set the width of an element in pixels and the font size in points, the width and font size won't change. When you use pixels though, the size will change if the screen resolution changes. Screen resolution determines the number of pixels that are displayed on the monitor. Pixels on a monitor with a screen resolution of 1280 x 1024 are closer together than the pixels on a monitor with a screen resolution of 1152 x 864. That means a measurement of 10 pixels will be smaller on the screen with the higher resolution. A point is 1/72 of an inch no matter what the screen resolution is.

32 body { font-size: 100%; margin-left: 2em; margin-right: 2em; } header { padding-bottom:.75em; border-bottom: 3px solid black; margin-bottom: 0; } h1 { font-size: 200%; margin-bottom: 0; } IDM 221: Web Authoring I 32

33 Color IDM 221: Web Authoring I 33 There are a number of ways to specify color. We will look at the most common three.

34 Color Specs & Names CSS3 Color spec Color Names p { color: silver; } IDM 221: Web Authoring I 34 The easiest way is to specify a color name.

35 RGB Colors p { color: rgb(100%, 40%, 20%); color: rgb(255, 102, 51); } IDM 221: Web Authoring I 35 Another way to specify a color is to use an RGB value. One way to do that is to specify the percent of red, green and blue that make up the color. You can also use any values from 0 through 255 instead of percents (0 is equivalent to 0% and 255 is equivalent to 100%, this gives you more precision over the resulting colors).

36 Hexcodes p { color: #ffffff; /* white */ color: #000000; /* black */ color: #ff0000; /* red */ } IDM 221: Web Authoring I 36 The third way to specify a color is to use the hexadecimal values for red, green and blue. When you use this technique the value must be preceded by the pound sign (#).

37 Specifying color body { background-color: #ffffcc; /* light yellow */ color: black; } p { background-color: #ff0000; /* red */ /* `color` will be inherited as `black` */ } IDM 221: Web Authoring I 37 The color property determines the foreground color (the color of the text). The background-color property determines the background color. The color property for an element is inherited by any child elements. For example: if you set the color for the body to black, that color will be inherited by all of the elements in the body of the document. However, you can override an inherited property by coding a rule set with a different value for that property.

38 Accessibility guideline IDM 221: Web Authoring I 38 Remember the visually-impaired. Dark text on a light background is easier to read, and black type on a white background is easiest to read.

39 CSS3 rgba(red%, green%, blue%, opacity-value) hsl(hue-degrees, saturation%, lightness%) hsla(hue-degrees, saturation%, lightness%, opacity-value) IDM 221: Web Authoring I 39 To provide even more color options, CSS3 lets you code color specifications in three more ways. First, you can use RGBA values. This works like RGB values, but with a fourth parameter that provides an opacity value. Set the value to 0, the color is fully transparent, set the value to 1 and the color is fully opaque. The other two methods focus on hue, saturation and lightness.

40 Coding Selectors <main> <h1>main Heading</h1> <p class="blue">hello world!</p> <p class="blue">what's up?</p> </main> <footer> <p id="copyright" class="blue right"> 2016</p> </footer> IDM 221: Web Authoring I 40 Once you understand how to code selectors, you will be able to apply CSS formatting to any element in a web page.

41 <main> <h1>main Heading</h1> <p class="blue">hello world!</p> <p class="blue">what's up?</p> </main> <footer> <p id="copyright" class="blue right"> 2016</p> </footer> IDM 221: Web Authoring I 41 Let's take a look at our HTML again. Note the element with the id attribute.

42 /* One element by ID */ #copyright { font-size: 80%; } IDM 221: Web Authoring I 42 We can target that single element using an ID selector. Here we're applying a smaller font size to that one paragraph element.

43 <main> <h1>main Heading</h1> <p class="blue">hello world!</p> <p class="blue">what's up?</p> </main> <footer> <p id="copyright" class="blue right"> 2016</p> </footer> IDM 221: Web Authoring I 43 One more time let's review the HTML

44 .blue { color: blue; }.right { text-align: right; } IDM 221: Web Authoring I 44 The two rule sets in this group select HTML elements by class. To do that, the selector is a period (.) followed by the class name. As a result, the first rule set selects all elements that have been assigned to the "blue" class. The second rule set selects any elements that have been assigned to the "right" class. One of the key points here is that a class attribute can have the same value for more than one element on a page. If you code a selector for that class, it will be used to format all the elements in that class. Since the id for an element must be unique, an id selector can only be used to format a single element.

45 Rela%onal selectors IDM 221: Web Authoring I 45 As we discuss relational selectors, keep in mind that terms like parent, child, sibling, and descendent are used in the same way that they are in a family tree. Child elements are at the first level below a parent. Sibling elements are at the same level. Descendent elements can be one or more levels below a parent element.

46 <main> <h1>heading One</h1> <ul class="speakers"> <li>jan: <a href="#">david B.</a></li> <li>feb: <a href="#">robert F.</a></li> </ul> <h2>heading Two</h2> <p>welcome all speakers.</p> <p>a limited number of tickets remain.</p> </main> IDM 221: Web Authoring I 46 That means a descendant selector selects all the elements that are contained within another element. For instance, all of the elements in the HTML example are descendants of the main element. The li elements are also descendants of the ul element. The a elements are descendants of the li elements.

47 /* Descendant */ main li { font-size: 90%; } ul a { color: green; } IDM 221: Web Authoring I 47 To code a descendant selector, you code a selector for the parent element, followed by a space and a selector for the descendant element. The first selector selects all the li elements within the main element. The second selects all the a elements that are descendants of the ul element.

48 <main> <h1>heading One</h1> <ul class="speakers"> <li>jan: <a href="#">david B.</a></li> <li>feb: <a href="#">robert F.</a></li> </ul> <h2>heading Two</h2> <p>welcome all speakers.</p> <p>a limited number of tickets remain.</p> </main> IDM 221: Web Authoring I 48 The next example shows how to use an adjacent sibling selector to select an element that's coded at the same level as another element and is also coded right next to it. For instance, the h1, h2 and p elements in the HTML are all siblings, and the h1 and ul elements are adjacent siblings. In contrast, the h1 element and the p elements aren't adjacent siblings, but the h2 element and the first p element are adjacent siblings.

49 /* Adjacent sibling */ h2+p { margin-top:.5rem; } IDM 221: Web Authoring I 49 To code an adjacent sibling selector, you code a selector for the first element, followed by a plus sign and a selector for the sibling element. This example will select an p elements that are adjacent to h2 elements.

50 /* Child */ main>p { font-size: 80%; } li>a { color: green; } IDM 221: Web Authoring I 50 If you want to select elements only when they're child elements of a parent element, you can code a child selector. To do that, separate the parent and the child selector with a greater than sign (>). The first child selector selects the p elements that are children of the main element, and the second selector selects the a elements that are children of the li elements. NOTE: Think of what the words "child" and "descendant" mean. ^ - My daughter is both my child and my descendant ^ - My granddaughter is not my child, but she is my descendant

51 p ~ span { color: red; } <span>this is not red.</span> <p>here is a paragraph.</p> <code>here is some code.</code> <!-- This span shows red. --> <span>and here is a span.</span> IDM 221: Web Authoring I 51 Unlike the adjacent sibling selector, a general sibling selector selects any sibling element whether or not the elements are adjacent. To code this type of selector, you separate the selector for the first element and the selector for the sibling element by a tilde (~). This example selects all the span elements that follow a p element. MDN

52 Combina(on selectors IDM 221: Web Authoring I 52

53 /* Selector for a class within an element */ ul.speakers { list-style-type: square; } IDM 221: Web Authoring I 53 To select an element type by class name, you code the element name, followed by a period and the class name. This example selects ul elements that have a class of "speakers".

54 /* Multiple selectors*/ h1, h2, h3 { color: blue; } p, ul.speakers li { font-family: "Times New Roman", serif; } IDM 221: Web Authoring I 54 You can also code multiple selectors for the same rule set. To do that, you separate the selectors with commas.

55 Pseudo-class / Pseudo-element Selectors IDM 221: Web Authoring I 55

56 Common CSS pseudo-classes pseudo-class name :link :visited :active :hover :focus Descrip1on A link that hasn't been visited. A link that has been visited. The ac3ve link (mouse bu8on down) An element with mouse hovering An element that has focus (forms) IDM 221: Web Authoring I 56 These classes represent conditions that apply to the elements on a page. You can use the :link pseudo-class to refer to a link that hasn't been visited, the :hover pseudo-class to refer to the element that has the mouse hovering over it.

57 Common CSS3 pseudo-classes pseudo-class name Descrip1on :first-child The first child of an element :last-child The last child of an element :only-child The only child of an element IDM 221: Web Authoring I 57 You can also use CSS3 pseudo-classes to refer to specific relationships.

58 Common CSS3 pseudo-elements pseudo-class name Descrip1on ::first-letter The first le*er of an element ::first-line The first line of an element IDM 221: Web Authoring I 58 You can use CSS3 pseudo-elements to select portions of text.

59 <main> <p>welcome to Town Hall.</p> <p>we have great speakers.</p> <ul> <li><a href="#">jeff T.</a></li> <li><a href="#">andrew S.</a></li> <li><a href="#">amy C.</a></li> </ul> </main> IDM 221: Web Authoring I 59

60 a:link { color: green; } a:hover, a:focus { color: pink; } main p:first-child { font-weight: bold; } main p:first-child::first-letter { font-size: 150%; } IDM 221: Web Authoring I 60

61 Exercise! h"p://digm.drexel.edu/crs/idm221/exercises/selectors IDM 221: Web Authoring I 61

62 Browser Default Styles IDM 221: Web Authoring I 62 A problem web developers face today when it comes to CSS is that the five modern browsers render some elements of a web page differently. Let's look at some examples.

63 IDM 221: Web Authoring I 63

64 IDM 221: Web Authoring I 64

65 IDM 221: Web Authoring I 65

66 Normalize.css IDM 221: Web Authoring I 66 To standardize how elements like this are displayed, you can use the normalize.css style sheet. This can save you a lot of time dealing with small rendering issues near the end of a project. The normalize style sheet also sets the margins for the body of the document to zero. That means there's no space between the body and the edge of the browser window. This is important because different browsers provide different margins for the body. It also defaults the font family to sansserif, which we'll learn more about later. For reasons like these, many web developers use the normalize style sheet for all their projects.

67 How to github.com/normalize IDM 221: Web Authoring I 67 Save a copy of the normalize.css file to your website and then code a link to the file in the head of each html page. Note: this link should be before the link to your personal style sheet(s).

68 Example Time IDM 221: Web Authoring I 68

69 IDM 221: Web Authoring I 69

70 IDM 221: Web Authoring I 70

71 IDM 221: Web Authoring I 71

72 IDM 221: Web Authoring I 72

73 IDM 221: Web Authoring I 73

74 IDM 221: Web Authoring I 74

75 IDM 221: Web Authoring I 75

76 Let's Build It IDM 221: Web Authoring I 76

77 Developer Tools IDM 221: Web Authoring I 77 If you have problems with style sheets while you're building a web page, you can use the developer tools for your browser to find out what's happening. (demo Chrome dev tools)

78 CSS Valida)on Service IDM 221: Web Authoring I 78

79 For Next Week... IDM 221: Web Authoring I 79

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

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

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

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

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

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

Web Site Design and Development Lecture 5

Web Site Design and Development Lecture 5 Web Site Design and Development Lecture 5 CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM CSS CSS stands for Cascading Style Sheets. These style sheets define the look and layout of your HTML elements. A

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

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

The Benefits of CSS. Less work: Change look of the whole site with one edit

The Benefits of CSS. Less work: Change look of the whole site with one edit 11 INTRODUCING CSS OVERVIEW The benefits of CSS Inheritance Understanding document structure Writing style rules Attaching styles to the HTML document The cascade The box model CSS units of measurement

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

<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

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

Client-Side Web Technologies. CSS Part I

Client-Side Web Technologies. CSS Part I Client-Side Web Technologies CSS Part I Topics Style declarations Style sources Selectors Selector specificity The cascade and inheritance Values and units CSS Cascading Style Sheets CSS specifies the

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

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

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

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

2. Write style rules for how you d like certain elements to look.

2. Write style rules for how you d like certain elements to look. CSS for presentation Cascading Style Sheet Orientation CSS Cascading Style Sheet is a language that allows the user to change the appearance or presentation of elements on the page: the size, style, and

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

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

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

CSC309 Programming on the Web week 3: css, rwd

CSC309 Programming on the Web week 3: css, rwd CSC309 Programming on the Web week 3: css, rwd Amir H. Chinaei, Spring 2017 Office Hours: M 3:45-5:45 BA4222 ahchinaei@cs.toronto.edu http://www.cs.toronto.edu/~ahchinaei/ survey 1 in survey 1, you provide

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

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

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework Presented by Roel Fermont 1 Today more than ever, Cascading Style Sheets (CSS) have a dominant place in online business. CSS

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

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

- 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

In the early days of the Web, designers just had the original 91 HTML tags to work with.

In the early days of the Web, designers just had the original 91 HTML tags to work with. Web Design Lesson 4 Cascading Style Sheets In the early days of the Web, designers just had the original 91 HTML tags to work with. Using HTML, they could make headings, paragraphs, and basic text formatting,

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

To link to an external stylesheet, the link element is placed within the head of the html page:

To link to an external stylesheet, the link element is placed within the head of the html page: CSS Basics An external style sheet is simply a text file (use BBEdit or Textwrangler) containing style rules, saved with the.css extension. It s best practice to keep style sheets for a site grouped within

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

<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

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

HTML/CSS. HTML review and extra CSS review CSS Color

HTML/CSS. HTML review and extra CSS review CSS Color HTML/CSS HTML review and extra CSS review CSS Color ID Every HTML element can carry the id attribute ID is used to uniquely identify that element from other elements on the page Can be used to allow the

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

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

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. Shan-Hung Wu CS, NTHU

CSS. Shan-Hung Wu CS, NTHU CSS Shan-Hung Wu CS, NTHU CSS Zen Garden 2 Outline The Basics Selectors Layout Stacking Order 3 Outline The Basics Selectors Layout Stacking Order 4 Grammar selector { property: value; 5 Example /* for

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

CSS. Selectors & Measurments. Copyright DevelopIntelligence LLC

CSS. Selectors & Measurments. Copyright DevelopIntelligence LLC CSS Selectors & Measurments 1 Back to descendants remember walking down the document tree structure and see how parents and children interact not only is it important to know about inheritance walking

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

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

CMPT 165 Advanced XHTML & CSS Part 3

CMPT 165 Advanced XHTML & CSS Part 3 CMPT 165 Advanced XHTML & CSS Part 3 Oct 15 th, 2015 Today s Agenda Quick Recap of last week: Tree diagram Contextual selectors CSS: Inheritance & Specificity Review 1 exam question Q/A for Assignment

More information

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

INTRODUCTION TO CSS. Mohammad Jawad Kadhim INTRODUCTION TO CSS Mohammad Jawad Kadhim WHAT IS CSS Like HTML, CSS is an interpreted language. When a web page request is processed by a web server, the server s response can include style sheets,

More information

CSS

CSS http://www.flickr.com/photos/baylorbear78/3406180116/ CSS 2 OVERVIEW OF CSS HTML is about content and structure (semantics) What is the content? How is the content related to other content? CSS is all

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

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

INTRODUCTION TO CSS. Topics MODULE 5

INTRODUCTION TO CSS. Topics MODULE 5 MODULE 5 INTRODUCTION TO CSS Topics > Cascading Style Sheets (CSS3) Basics Adding a Style Sheet Selectors Adding Dynamic Styles to Elements CSS3 Properties CSS3 Box Model Vendor Prefixes Cascading Style

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

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

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

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

CSS 1: Introduction. Chapter 3

CSS 1: Introduction. Chapter 3 CSS 1: Introduction Chapter 3 Textbook to be published by Pearson Ed 2015 in early Pearson 2014 Fundamentals of Web http://www.funwebdev.com Development What is CSS? You be styling soon CSS is a W3C standard

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

IDM 221. Web Design I. IDM 221: Web Authoring I 1

IDM 221. Web Design I. IDM 221: Web Authoring I 1 IDM 221 Web Design I IDM 221: Web Authoring I 1 Week 6 IDM 221: Web Authoring I 2 The Box Model IDM 221: Web Authoring I 3 When a browser displays a web page, it places each HTML block element in a box.

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

Web Engineering CSS. By Assistant Prof Malik M Ali

Web Engineering CSS. By Assistant Prof Malik M Ali Web Engineering CSS By Assistant Prof Malik M Ali Overview of CSS CSS : Cascading Style Sheet a style is a formatting rule. That rule can be applied to an individual tag element, to all instances of a

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

COMS 359: Interactive Media

COMS 359: Interactive Media COMS 359: Interactive Media Agenda Review CSS Preview Review Transparent GIF headline Review JPG buttons button1.jpg button.psd button2.jpg Review Next Step Tables CSS Introducing CSS What is CSS? Cascading

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

Cascading Style Sheets

Cascading Style Sheets 4 TVEZEWXYHMNR LSTVSKVEQY-RJSVQEXMOENITSHTSVSZ RETVSNIOXIQ RERGSZER Q^)ZVSTWO LSWSGM PR LSJSRHYEVS^TS XYLPEZR LSQ WXE4VEL] 4VELE)9-RZIWXYNIQIHSZE% FYHSYGRSWXM CSS Cascading Style Sheets Lukáš Bařinka barinkl@fel.cvut.cz

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

- 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

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

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

Data Visualization (CIS/DSC 468)

Data Visualization (CIS/DSC 468) Data Visualization (CIS/DSC 468) Web Programming Dr. David Koop Definition of Visualization Computer-based visualization systems provide visual representations of datasets designed to help people carry

More information

CSS3 Basics. From & CSS Visual Dictionary Learning Curve Books, LLC

CSS3 Basics. From   & CSS Visual Dictionary Learning Curve Books, LLC CSS3 Basics From www.w3schools.com & CSS Visual Dictionary Learning Curve Books, LLC CSS Box Model Margin (top, right, bottom, left) Shorthand property, equivalent to Border-width border-style border-color

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

Cascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor

Cascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor Styles? Cascading Style Sheet http://www.eie.polyu.edu.hk/~nflaw/biclustering/index.html Request string: GET /~nflaw/biclustering/index.html HTTP/1.1 Host: www.eie.polyu.edu.hk 1 Response string: HTTP/1.1

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

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

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

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

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

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

CSS - Cascading Style Sheets

CSS - Cascading Style Sheets CSS - Cascading Style Sheets As a W3C standard, CSS provides a powerful mechanism for defining the presentation of elements in web pages. With CSS style rules, you can instruct the web browser to render

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

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

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

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

Tutorial 02: Getting Started with CSS

Tutorial 02: Getting Started with CSS True / False 1. The most common way of accepting user input is through a web form. a. True b. False True REFERENCES: HTML 86 QUESTION TYPE: True / False LEARNING OBJECTIVES: 02.01 - Explore the history

More information

Web Information System Design No.4 Put Style to Web Documents. Tatsuya Hagino

Web Information System Design No.4 Put Style to Web Documents. Tatsuya Hagino Web Information System Design No.4 Put Style to Web Documents Tatsuya Hagino (hagino@sfc.keio.ac.jp) 1 Web Page Components Combine orthogonal technologies content style programming style JavaScript Programming

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

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

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

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

CHAPTER 4 CASCADING STYLE SHEETS BASICS KEY CONCEPTS

CHAPTER 4 CASCADING STYLE SHEETS BASICS KEY CONCEPTS BASICS OF WEB DESIGN CHAPTER 4 CASCADING STYLE SHEETS BASICS KEY CONCEPTS 1 LEARNING OUTCOMES Describe the purpose of Cascading Style Sheets List advantages of using Cascading Style Sheets Configure color

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

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

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

Programmazione Web a.a. 2017/2018 HTML5

Programmazione Web a.a. 2017/2018 HTML5 Programmazione Web a.a. 2017/2018 HTML5 PhD Ing.Antonino Raucea antonino.raucea@dieei.unict.it 1 Introduzione HTML HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text

More information