WEB TECHNOLOGIES. UNIT II introduction to the style sheets and java script. 4. Cascading Stylesheets. 5. An Introduction to Java Script

Size: px
Start display at page:

Download "WEB TECHNOLOGIES. UNIT II introduction to the style sheets and java script. 4. Cascading Stylesheets. 5. An Introduction to Java Script"

Transcription

1 Web Technologies 1 WEB TECHNOLOGIES UNIT II introduction to the style sheets and java script Chapters: 4. Cascading Stylesheets 5. An Introduction to Java Script

2 4. Cascading Stylesheets 1. Define and Explain CSS and STYLE. Web Technologies 2 CSS is an acronym which means Cascading Style Sheets. A style sheet is made up of style rules that tell a browser how to present a document. As the name suggests, CSS is a special purpose stylesheet language and it helps in defining the format of presentation for any document that has been written in a markup language like the HTML. A STYLE is simply a set of formatting instructions that can be applied to a piece of text. There are three mechanisms by which we can apply styles to our HTML documents: The style can be defined within the basic HTML tag (This is also known as Inline Style). Styles can be defined in the section and applied to the whole document (This is known as Internal Style). Styles can be defined in external files called stylessheets which can then be used in any document by including the stylesheet via a URI (This is also known as External Style). Styles can be cascaded i.e., the formats override any which were defined or included earlier in the document. 1 Inline Style: <title> Inline Style </title> <h1> Inline Style sheet </h1> <p> The first paragraph is left unaltered. </p> <p style= margin-left : 10%; border: ridge; background: #ffffcc > But this paragraph undergoes some fairly radical alterations. </p> <p> And we finish with an unaltered paragraph. </p>

3 Web Technologies 3 2 Internal Style: <title> Internal Style </title> h1{ color: red; border: thin groove; text-align:center; <h1> Internal Style Sheet </h1>

4 Web Technologies 4 3 External Style Step:1 Open a new file in Notepad and type the following code: h1{ color: red; border: thin groove; text-align:center; ** Save the file as css_v3.css Step:2 Open a new file in Notepad and type the following code: <title> Internal Style </title> <link rel="stylesheet" href="css_v3.css" type="text/css"> <h1> External Style Sheet </h1> ** Save the above file as css_v3.html and open it in the browser. 2. How can you define your own styles? a. Cascading Styles: Conventionally styles are cascaded i.e, a document consist a set of styles and also we can also import the required Stylesheets. But we can face cascade problem with imported stylesheets i.e., the first is overridden by the second, the second by the third and so on.

5 Web Technologies 5 b. Rules: A style has two parts: a selector and a set of declarations. The selector is used to create a link between the rule and the HTML tag. The declaration has two parts: a property and a value. Selectors can be placed into classes. Hence a tag can be formatted in variety of ways. Declarations must be using colons and terminated using semicolons. The general format is selector {property: value; property: value The declaration has three items: the property, a colon and the value. If we miss the colon or fail to put the semicolon between declarations, the style could not be processed. The rule will be more readable, if we put each declaration on its own line. This is explained in the following example: c. Classes: body { h1{ background-color: #eebd2; color: #eebd2; background-color: #d8a29b; font-family: Book Antiqua, Times,serief; border: thin groove #9baab2; A class is a definition of a set of styles which can be applied where we need. The classes are required to apply a style to some paragraphs. The above methods apply styles to all paragraphs in the same manner. The general format is: selector.classname {property; value; property: value <selector class=classname> The rule is slightly modified as unique name is appended with a dot (.) operator. In HTML document, when we want to use a named style, the tag is extended by including class=unique name.

6 Web Technologies 6 h1.fred{ color: #eeebd2; background-color: #d8a29b; font-family: Book Antiqua, Times, serif; border: thin groove #9baab2; Now we can use fred class in the following statement: d. Anonymous Classes: <h1 class= fred >A simple Heading</h1> To apply a piece of formatting to many different elements within a page but not necessary to the entire page. CSS provides a way of defining styles within reusable classes. <title>anonymous Classes</title>.fred{ color: #eeebd2; background-color: #d8a29b; font-family: Book Antiqua, Times, serif; border: thin groove #9baab2;

7 Web Technologies 7 <h1 class= fred >A Simple Heading</h1> <p class= fred >Applying the style fred to a paragraph of text</p> e. Including Stylesheets: We can include stylesheets in the tag using <link> and tags. The <link> tag defines the relationship between a document and an external resource. The <link> tag is most used to link to style sheets. This element goes only in the head section, but it can appear any number of times. The general format is: <link rel= StyleSheet href= url type= text/css media= screen > [<style type= text/css >] url(url); -> Where rel Required. Specifies the relationship between the current document and the linked document. href Specifies the location of the linked document. type Specifies the MIME type of the linked document media Specifies on what device the linked document will be displayed url Specifies address of new CSS file. <link rel= StyleSheet href= type= text/css media= screen > <style type= text/css url( -- >

8 Web Technologies 8 3. Explain properties and values in styles. A number of properties of the text can be altered. The following properties can change the style of our work. a. Fonts: Fonts are identified by giving the name of a specific font. In CSS, there are two types of font family names: generic family - a group of font families with a similar look (like "Serif" or "Monospace") font family - a specific font family (like "Times New Roman" or "Arial") The general format is <font-family>: <family name> [<generic family>] Generic family Font family Description Serif Times New Serif fonts have small lines at the ends on Roman some characters Georgia Sans-serif Arial "Sans" means without - these fonts do not Verdana have the lines at the ends of characters Monospace Courier New All monospace characters have the same Lucida width Console p{ Source Code: font-family:"times New Roman", Times, serif; p.serif{font-family:"times New Roman",Times,serif; p.sansserif{font-family:arial,helvetica,sans-serif;

9 Web Technologies 9 <h1>css font-family</h1> <p class="serif">this is a paragraph, shown in the Times New Roman font.</p> <p class="sansserif">this is a paragraph, shown in the Arial font.</p> Font Style: The font-style property is mostly used to specify italic text. This property has three values: normal - The text is shown normally italic - The text is shown in italics oblique - The text is "leaning" (oblique is very similar to italic, but less supported) p.normal {font-style:normal; p.italic {font-style:italic; p.oblique {font-style:oblique; Source Code:

10 Web Technologies 10 p.normal {font-style:normal; p.italic {font-style:italic; p.oblique {font-style:oblique; <p class="normal">this is a paragraph, normal.</p> <p class="italic">this is a paragraph, italic.</p> <p class="oblique">this is a paragraph, oblique.</p> Font-weight Property: The font-weight property sets how thick or thin characters in text should be displayed. The property values are: Value Description Normal Defines normal characters. This is default Bold Defines thick characters Bolder Defines thicker characters Lighter Defines lighter characters 100 Defines from thin to thick characters. 400 is the same as 200 normal, and 700 is the same as bold 300

11 Web Technologies In the above table, the first four are relative and remaining (numbers) are absolute weights. p.normal {font-weight:normal; p.thick {font-weight:bold; p.thicker {font-weight:900; Source Code: p.normal {font-weight:normal; p.light {font-weight:lighter; p.thick {font-weight:bold; p.thicker {font-weight:900; <p class="normal">this is a paragraph.</p> <p class="light">this is a paragraph.</p> <p class="thick">this is a paragraph.</p> <p class="thicker">this is a paragraph.</p>

12 Web Technologies 12 Font-size Property: The font-size property sets the size of a font. The property values are: Value Description Small Sets the font-size to a small size Medium Sets the font-size to a medium size. This is default Large Sets the font-size to a large size Smaller Sets the font-size to a smaller size than the parent element Larger Sets the font-size to a larger size than the parent element Length Sets the font-size to a fixed size in px (pixels), cm, etc. % Sets the font-size to a percent of the parent element's font size Source Code: h1 {font-size:250% h2 {font-size:200% p {font-size:100% h1 {font-size:250%; h2 {font-size:200%; p {font-size:100%;

13 Web Technologies 13 <h1>this is heading 1</h1> <h2>this is heading 2</h2> <p>this is a paragraph.</p> b. Backgrounds and Colors: The background-color property specifies the background color of an element. The background color of a page is defined in the body selector. The general format is color: <value> background-color: <value> transparent background-image: URL none The values should be given in hexadecimal values. The background color should be transparent and is default. Instead of a color, an image can be used, identified its URL. 1 h1{ background-color:#6495ed;

14 Web Technologies 14 p{ background-color:#e0ffff; div{ background-color:#b0c4de; <h1>css background-color example!</h1> <div> This is a text inside a div element. <p>this paragraph has its own background color.</p> We are still in the div element. </div> 2 body{ background-image:url('img_tree.png'); background-repeat:no-repeat;

15 Web Technologies 15 background-position:right top; margin-right:200px; <h1>hello World!</h1> <p>w3schools background no-repeat, set position example.</p> <p>now the background image is only shown once, and positioned away from the text.</p> <p>in this example we have also added a margin on the right side, so the background image will never disturb the text.</p> *** In the above program, the body class can be rewritten using shorthand property as the following: body {background: url('img_tree.png') no-repeat right top; c. Text: i. Text Decoration: The text-decoration property is used to set or remove decorations from text. The textdecoration property is mostly used to remove underlines from links for design purposes. The general format is text-decoration: none underline overline line-through

16 Web Technologies 16 Source Code: h1 {text-decoration:overline; h2 {text-decoration:line-through; h3 {text-decoration:underline; h1 {text-decoration:overline; h2 {text-decoration:line-through; h3 {text-decoration:underline; <h1>this is heading 1</h1> <h2>this is heading 2</h2> <h3>this is heading 3</h3> ii. Text-Transformation: The text-transform property controls the capitalization of text. The general format is text-transformation: none capitalization uppercase lowercase Property Values: Value Description None No capitalization. The text renders as it is. This is default Capitalize Transforms the first character of each word to uppercase Uppercase Transforms all characters to uppercase Lowercase Transforms all characters to lowercase

17 Web Technologies 17 p.uppercase {text-transform:uppercase; p.lowercase {text-transform:lowercase; p.capitalize {text-transform:capitalize; <p class="uppercase">this is some text.</p> <p class="lowercase">this is some text.</p> <p class="capitalize">this is some text.</p> iii. Text-align: The text-align property specifies the horizontal alignment of text in an element. The general format is text-align: left right center justify Property Values: Value Left Right Center Justify Description Aligns the text to the left Aligns the text to the right Centers the text Stretches the lines so that each line has equal width (like in newspapers and magazines)

18 Web Technologies 18 h1 {text-align:center h2 {text-align:left h3 {text-align:right <h1>this is heading 1</h1> <h2>this is heading 2</h2> <h3>this is heading 3</h3> iv. Text-indentation: The text-indent property specifies the indentation of the first line in a text-block. Negative values are allowed. The first line will be indented to the left if the value is negative. The general format is text-indentation: length percentage Property Values: Value Description length Defines a fixed indentation in px, pt, cm, em, etc. % Defines the indentation in % of the width of the parent element

19 Web Technologies 19 p {text-indent:50px; <p>in my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'</p> d. Boxes: All HTML elements can be considered as boxes. In CSS, the term "box model" is used when talking about design and layout. The CSS box model is essentially a box that wraps around HTML elements, and it consists of: margins, borders, padding, and the actual content. The box model allows us to place a border around elements and space elements in relation to other elements.

20 Web Technologies 20 The image below illustrates the box model: Explanation of the different parts: Margin - Clears an area around the border. The margin does not have a background color, it is completely transparent Border - A border that goes around the padding and content. The border is affected by the background color of the box Padding - Clears an area around the content. The padding is affected by the background color of the box Content - The content of the box, where text and images appear i. Margin: The margin clears an area around an element (outside the border). The margin does not have a background color, and is completely transparent. The top, right, bottom, and left margin can be changed independently using separate properties. A shorthand margin property can also be used, to change all margins at once. The general format is margin: length percentage auto {1, 4 Possible Values: Value Description auto The browser calculates a margin length Specifies a margin in px, pt, cm, etc. Default value is 0px % Specifies a margin in percent of the width of the containing element

21 Web Technologies 21 p{ background-color:yellow; p.margin{ margin-top:100px; margin-bottom:100px; margin-right:50px; margin-left:50px; <p>this is a paragraph with no specified margins.</p> <p class="margin">this is a paragraph with specified margins.</p> Note: Margin - Shorthand property To shorten the code, it is possible to specify all the margin properties in one property. This is called a shorthand property. The shorthand property for all the margin properties is "margin". p{ background-color:yellow; p.margin{ margin:100px 50px;

22 Web Technologies 22 ii. Border-width: The border-width property sets the width of an element's four borders. This property can have from one to four values. The general format is border-width: thin thick medium length Property Values: Value Description Thin Specifies a thin border Medium Specifies a medium border. This is default Thick Specifies a thick border Length Allows us to define the thickness of the border p.one { border-style:solid; border-width:5px; p.two { border-style:solid; border-width:medium; p.three{ border-style:solid; border-width:1px; <p class="one">some text.</p>

23 Web Technologies 23 <p class="two">some text.</p> <p class="three">some text.</p> <p><b>note:</b> The "border-width" property does not work if it is used alone. Use the "border-style" property to set the borders first.</p> iii. Padding: The CSS padding properties define the space between the element border and the element content. The padding clears an area around the content (inside the border) of an element. The padding is affected by the background color of the element. The top, right, bottom, and left padding can be changed independently using separate properties. A shorthand padding property can also be used, to change all paddings at once. The general format is Possible Values: padding: length percentage {1, 4 Value Description Length Defines a fixed padding (in pixels, pt, em, etc.) % Defines a padding in % of the containing element

24 Web Technologies 24 p{ background-color:yellow; p.padding{ padding-top:25px; padding-bottom:25px; padding-right:50px; padding-left:50px; <p>this is a paragraph with no specified padding.</p> <p class="padding">this is a paragraph with specified paddings.</p> Note: Padding - Shorthand property To shorten the code, it is possible to specify all the padding properties in one property. This is called a shorthand property. The shorthand property for all the padding properties is "padding". p{ background-color:yellow; p.padding{ padding:25px 50px;

25 Web Technologies 25 iv. Border-color: The border-color property sets the color of an element's four borders. This property can have from one to four values. The general format is Property Values: border-color: {1, 4 Value Description Color Specifies the background color. Look at CSS Color Values for a complete list of possible color values transparent Specifies that the border color should be transparent. This is default p.one { border-style:solid; border-color:#0000ff; p.two{ border-style:solid; border-color:#ff0000 #0000ff; p.three{ border-style:solid; border-color:#ff0000 #00ff00 #0000ff; p.four{ border-style:solid; border-color:#ff0000 #00ff00 #0000ff rgb(250,0,255);

26 Web Technologies 26 <p class="one">one-colored border!</p> <p class="two">two-colored border!</p> <p class="three">three-colored border!</p> <p class="four">four-colored border!</p> <p><b>note:</b> The "border-color" property does not work if it is used alone. Use the "border-style" property to set the borders first.</p> v. Border-style: The border-style property sets the style of an element's four borders. This property can have from one to four values. The general format is border-style: none dotted dashed solid double groove ridge {1, 4 Property Values: Value Description None Specifies no border Dotted Specifies a dotted border dashed Specifies a dashed border Solid Specifies a solid border double Specifies a double border groove Specifies a 3D grooved border. The effect depends on the border-color value Ridge Specifies a 3D ridged border. The effect depends on the border-color value

27 Web Technologies 27 p.none {border-style:none; p.dotted {border-style:dotted; p.dashed {border-style:dashed; p.solid {border-style:solid; p.double {border-style:double; p.groove {border-style:groove; p.ridge {border-style:ridge; <p class="none">no border.</p> <p class="dotted">a dotted border.</p> <p class="dashed">a dashed border.</p> <p class="solid">a solid border.</p> <p class="double">a double border.</p> <p class="groove">a groove border.</p> <p class="ridge">a ridge border.</p> vi. Width: The width property sets the width of an element. The width property does not include padding, borders, or margins. The general format is width: length percentage auto

28 Web Technologies 28 Property Values: Value Description Auto The browser calculates the width. This is default Length Defines the width in px, cm, etc. % Defines the width in percent of the containing block vii. Height: The height property sets the height of an element. The height property does not include padding, borders, or margins. The general format is height: length auto percentage Property Values: Value Description Auto The browser calculates the height. This is default Length Defines the height in px, cm, etc. % Defines the height in percent of the containing block For Height and Width img.normal{ height:auto; img.big{ height:120px; p.ex{ height:100px; width:100px;

29 Web Technologies 29 <img class="normal" src="logocss.gif" width="95" height="84" /><br> <img class="big" src="csslogo.png" width="95" height="84" /> <p class="ex">the height and width of this paragraph is 100px.</p> <p>this is some text in a paragraph. This is some text in a paragraph. This is some text in a paragraph. This is some text in a paragraph. This is some text in a paragraph. This is some text in a paragraph.</p> e. Units and URLs: i. Lengths: These can be either absolute or relative. A relative length can be either positive or negative which is indicated by preceding the value with an optional + or -. Measurement Values: Unit Em Ex Px Description Relative Units that can be used are: 1em is equal to the current font size. 2em means 2 times the size of the current font. E.g., if an element is displayed with a font of 12 pt, then '2em' is 24 pt. The 'em' is a very useful unit in CSS, since it can adapt automatically to the font that the reader uses one ex is the x-height of a font (x-height is usually about half the font-size) pixels (a dot on the computer screen)

30 Web Technologies 30 In Cm Pt Pc Mm ii. URLs: relative. Allowable Absolute Units are: Inch Centimeter point (1 pt is the same as 1/72 inch) pica (1 pc is the same as 12 points) Millimeter URLs can be used in stylesheets as in HTML documents. The general format is url (location) URLs can may either absolute or relative. If a URL is partial it is considered to be 4. How can you format blocks information? a. Classes: b. Divisions: To design a HTML page in effective, there are three approaches. They are a. Classes b. Divisions c. Spans This is explained in Q.2. Please go through it. The <div> tag defines a division or a section in an HTML document. The <div> tag is used to group block-elements to format them with CSS. <p>this is some text.</p> <div style="color:#0000ff"> <h3>this is a heading in a div element</h3> <p>this is some text in a div element.</p> </div> <p>this is some text.</p>

31 Web Technologies 31 c. Spans: The <span> tag is used to group inline-elements in a document. The <span> tag provides no visual change by itself. The <span> tag provides a way to add a hook (clip) to a part of a text or a part of a document. <p>my mother has <span style="color:blue;fontweight:bold">blue</span> eyes and my father has <span style="color:darkolivegreen;font-weight:bold">dark green</span> eyes.</p> 5. What is the purpose of Layers in designing a HTML page? Explain. Layers can be used in many situations. For example, the z-index is to create effects in headlines instead of creating these as graphics. It is faster to load text and for another, it provides a potentially better ranking in search engines. The position attribute is needed to create layer. The position can be either absolute or relative. The position itself is defined with the top and left properties. The z-index property specifies the stack order of an element. An element with greater stack order is always in front of an element with a lower stack order. z-index only works on positioned elements (position:absolute, position:relative, or position:fixed).

32 Web Technologies 32 img{ position:absolute; left:0px; top:0px; z-index:-1; <h1>this is a heading</h1> <img src="vishnu_logo.jpg" width="100" height="140" /> <p>because the image has a z-index of -1, it will be placed behind the text.</p> **********************

Control the letters in a text

Control the letters in a text Control the letters in a text This example demonstrates how to control the letters in a text. p.uppercase text-transform: uppercase p.lowercase text-transform: lowercase p.capitalize text-transform: capitalize

More information

CSS stands for Cascading Style Sheets Styles define how to display HTML elements

CSS stands for Cascading Style Sheets Styles define how to display HTML elements CSS stands for Cascading Style Sheets Styles define how to display HTML elements CSS has various levels and profiles. Each level of CSS builds upon the last, typically adding new features and typically

More information

CSS Introduction. What is CSS? Styles Solved a Big Problem. CSS Saves a Lot of Work! What You Should Already Know KKCC INFO SYSTEMS.

CSS Introduction. What is CSS? Styles Solved a Big Problem. CSS Saves a Lot of Work! What You Should Already Know KKCC INFO SYSTEMS. CSS Introduction What You Should Already Know Before you continue you should have a basic understanding of the following: HTML / XHTML What is CSS? CSS stands for Cascading Style Sheets Styles define how

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

CASCADING STYLE SHEET CSS

CASCADING STYLE SHEET CSS Dynamic HTML CASCADING STYLE SHEET CSS Haider M. Habeeb (PART II) CSS Syntax hello World! this

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

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. M hiwa ahamad aziz Raparin univercity. 1 Web Design: Lecturer ( m hiwa ahmad aziz)

CSS. M hiwa ahamad aziz  Raparin univercity. 1 Web Design: Lecturer ( m hiwa ahmad aziz) CSS M hiwa ahamad aziz www.raparinweb.fulba.com Raparin univercity 1 What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve

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

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

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

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

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

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

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

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

B3: A first introduction to CSS 17/02/2006

B3: A first introduction to CSS 17/02/2006 ! " % % 1 & & ' ( 6 +,-.!! %! 5 7 % ) * +,-. /! ) (& & (& &! ' % 1 '!%!3! 4! % & (& & % % 55 %! " & Font Text Lists Color Background Border & Margin Positioning Visability Letter form, size, boldface,

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

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

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

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

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

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 مفاهیم ساختار و اصول استفاده و به کارگیری

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 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 how to display to solve a problem External Style Sheets CSS files CSS Syntax

CSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax CSS CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style Sheets can save a lot of work External Style Sheets

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

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

- 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

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

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

Parashar Technologies HTML Lecture Notes-4

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

More information

CASCADING STYLESHEETS

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

More information

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

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

More information

12/9/2012. CSS Layout

12/9/2012. CSS Layout Dynamic HTML CSS Layout CSS Layout This lecture aims to teach you the following subjects: CSS Grouping and nesting Selectors. CSS Dimension. CSS Display.. CSS Floating. CSS Align. 1 CSS Grouping and nesting

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

Sample CSS codes are given below try these CSS codes and get the relevant output. In-line Style sheet

Sample CSS codes are given below try these CSS codes and get the relevant output. In-line Style sheet Sample CSS codes are given below try these CSS codes and get the relevant output. 1 Font-Inline CSS In-line Style sheet in line Style Sheet Fruits and Vegetables

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

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

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

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

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

AN INTRODUCTION TO WEB PROGRAMMING. Dr. Hossein Hakimzadeh Department of Computer and Information Sciences Indiana University South Bend, IN

AN INTRODUCTION TO WEB PROGRAMMING. Dr. Hossein Hakimzadeh Department of Computer and Information Sciences Indiana University South Bend, IN AN INTRODUCTION TO WEB PROGRAMMING Dr. Hossein Hakimzadeh Department of Computer and Information Sciences Indiana University South Bend, IN CONTENTS A bit of history Inline vs. Embedded vs. External Style

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

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

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

Anatomy of a Style. Cascaded Style Sheets - CSS. CSS Presentation Description Language. Measurement Specification

Anatomy of a Style. Cascaded Style Sheets - CSS. CSS Presentation Description Language. Measurement Specification CSS Presentation Description Language HTML3:(Hyper Text Markup Language) 1990 Interpreted Language by Web Browser Describes both the structure and format of document XHTML and HTML5 Extensible Hyper Text

More information

CSS Box Model. Cascading Style Sheets

CSS Box Model. Cascading Style Sheets CSS Box Model Cascading Style Sheets CSS box model Background Width & height Margins & padding Borders Centering content Changing display type (block vs. inline) The Box Model Background Properties Property

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

TAG STYLE SELECTORS. div Think of this as a box that contains things, such as text or images. It can also just be a

TAG STYLE SELECTORS. div Think of this as a box that contains things, such as text or images. It can also just be a > > > > CSS Box Model Think of this as a box that contains things, such as text or images. It can also just be a box, that has a border or not. You don't have to use a, you can apply the box model to any

More information

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013 CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013 Part I. (50%) Multiple Guess Choice. 1. What does CSS stand for? a. Creative Style Sheets b. Computer Style Sheets c. Cascading Style

More information

Unit 6. Lesson 6.1. Cascading Style Sheets. Introduction. Overview of Cascading Style Sheets. Why CSS. What is CSS?

Unit 6. Lesson 6.1. Cascading Style Sheets. Introduction. Overview of Cascading Style Sheets. Why CSS. What is CSS? Cascading Style Sheets Unit 6 Cascading Style Sheets Introduction Lesson 6.1 Overview of Cascading Style Sheets Cascading Style Sheets, referred to as CSS, is a simple design language intended to simplify

More information

Lecture 10. CSS Properties. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

Lecture 10. CSS Properties. Mr. Mubashir Ali Lecturer (Dept. of Computer Science) Lecture 10 CSS Properties Mr. Mubashir Ali Lecturer (Dept. of dr.mubashirali1@gmail.com 1 Summary of the previous lecture CSS basics CSS writing option CSS rules Id,s and Classes 2 Outline Font properties

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

Internet Programming 1 ITG 212 / A

Internet Programming 1 ITG 212 / A Internet Programming 1 ITG 212 / A Lecture 10: Cascading Style Sheets Page Layout Part 2 1 1 The CSS Box Model top margin top border top padding left margin left border left padding Content right padding

More information

LBS Polytechnic. Hey! Make With The Style Sheet Already, Bub!

LBS Polytechnic. Hey! Make With The Style Sheet Already, Bub! When you're all done, the format will look like this: Hey! Make With The Style Sheet Already, Bub! This

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

Module 2 (VII): CSS [Part 4]

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

More information

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

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

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

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

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

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

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

Document Structure. Document Appearance. Interactivity

Document Structure. Document Appearance. Interactivity Crash Course in CSS Document Structure Document Appearance Interactivity 2 What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to

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

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

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

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

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

ITNP43: HTML Lecture 5

ITNP43: HTML Lecture 5 ITNP43: HTML Lecture 5 1 The Box Model Every HTML element (e.g. h2, p etc) lies within a virtual box: Margin area LEFT TOP This is just some text that flows onto two lines. Border RIGHT Padding area BOTTOM

More information

Using Advanced Cascading Style Sheets

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

More information

<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

By Ryan Stevenson. Guidebook #3 CSS

By Ryan Stevenson. Guidebook #3 CSS By Ryan Stevenson Guidebook #3 CSS Table of Contents 1. How to Use CSS 2. CSS Basics 3. Text Sizes Colors & Other Styling 4. Element Layout Positioning & Sizing 5. Backgrounds & Borders How to Use CSS

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

Fundamentals of Web Programming a

Fundamentals of Web Programming a 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

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

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

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

Creating Layouts Using CSS. Lesson 9

Creating Layouts Using CSS. Lesson 9 Creating Layouts Using CSS Lesson 9 CSS Page Layout Advantages Greater typography control Style is separate from structure Potentially smaller documents Easier site maintenance Increased page layout control

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

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS CSS Overview Part I: Portraying the Internet as a collection of online information systems Part II: Design a website using HTML/XHTML & CSS XHTML validation What is wrong?

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

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

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

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 4 The Box Model

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 4 The Box Model Unit 20 - Client Side Customisation of Web Pages Week 2 Lesson 4 The Box Model Last Time Looked at what CSS is Looked at why we will use it Used CSS In-line Embedded (internal style-sheet) External

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

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

<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

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

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

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

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

SCP53) (Web Technology) Unit-2 (Introduction to Style Sheet) Type: 100% Theory Question Bank

SCP53) (Web Technology) Unit-2 (Introduction to Style Sheet) Type: 100% Theory Question Bank ACADEMIC YEAR: 2015 2016 REGULATION CBCS - 2012 SCP53) (Web Technology) Unit-2 (Introduction to Style Sheet) Type: 100% Theory Question Bank Syllabus: [Regulation: 2012] UNIT II: Style sheet - Style sheet

More information