CMPT 165 Unit 3 CSS Part 1. Sept. 24 th, 2015
|
|
- Laurence Francis
- 6 years ago
- Views:
Transcription
1 CMPT 165 Unit 3 CSS Part 1 Sept. 24 th, 2015
2 Summary of key concepts/terms Components of good website designs and why? Structure of a markup file: DTD vs. head vs. body Elements vs. tags vs. content: know the difference Tags examined so far: List <ol><ul><li><dl><dt><dd> Image <img> Anchor <a> Usage info: Other important concepts: Tags vs. attributes Relative vs. absolute URL (from last Thurs.) Terms to keep in mind (more late) Style vs. semantic meaning of an element Usability + accessibility issues 2
3 (Templates for) defining lists <h1>unordered list</h1> <ul> <li></li> </ul> <h1>ordered list</h1> <ol> <li></li> </ol> <h1>definition list</h1> <dl> <dt>term</dt><dd>description</dd> </dl> <dt>: definition term <dd>: definition description 3
4 What s wrong? <img href=" alt="the library logo"> <img src=" alt="the library logo"/> <img src=" alt="another logo" width=50%" height="25%" /> <img src=" alt="another logo" width="50% height="25%" /> 4
5 And how about this? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" <html> <h1>exercise 1 " <title>exercise1</title> </h1> <body> <head>cmpt165 Lab 01</head> <p>lorem ipsum dolor sit amet, eum ad insolens sadipscing philosophia, nostro recusabo posidonium ne mea. Cu clita aperiri cum, eam ad labore philosophia. Ius cotidieque efficiantur ad. Noster integre intellegat has ex. Eu pro volutpat tractatos. Salutatus forensibus no quo. </p> <p1>eum ad insolens sadipscing philosophia, nostro recusabo posidonium ne mea. Cu clita aperiri cum, eam ad labore philosophia. Ius cotidieque efficiantur ad. Noster integre intellegat has ex. Eu pro volutpat tractatos. Salutatus forensibus no quo.</p1> </body> </html> 5
6 And how about this? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" <html> <h1>exercise 1 " <title>exercise1</title> </h1> <body> <head>cmpt165 Lab 01</head> <p>lorem ipsum dolor sit amet, eum ad insolens sadipscing philosophia, nostro recusabo posidonium ne mea. Cu clita aperiri cum, eam ad labore philosophia. Ius cotidieque efficiantur ad. Noster integre intellegat has ex. Eu pro volutpat tractatos. Salutatus forensibus no quo. </p> <p1>eum ad insolens sadipscing philosophia, nostro recusabo posidonium ne mea. Cu clita aperiri cum, eam ad labore philosophia. Ius cotidieque efficiantur ad. Noster integre intellegat has ex. Eu pro volutpat tractatos. Salutatus forensibus no quo.</p1> </body> </html> Q: Was it easy to read this code? Q: How would you improve its readability? 6
7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" <html> <head> </head> <body> " <title>exercise1</title> <h1>cmpt165 Lab 99</h1> <! - Intro about myself --> How about this? Indentation Indentation Use spaces generously It s free! Add comments to remind yourself of things <p>lorem ipsum dolor sit amet, eum ad insolens sadipscing philosophia, nostro recusabo posidonium ne mea. Cu clita aperiri cum, eam ad.</p> <! - Code below was as extension from lab 2 --> <p>eum ad insolens sadipscing philosophia, nostro recusabo posidonium ne mea. Cu clita aperiri cum, eam ad labore philosophia.</p> </body> </html> 7
8 Ways to improve code readability 1. Spacing 2. Indentation <h1>common fruits in BC</h1> <ul> <li>apples <ul><li>granny smith</li> <li>golden delicious</li> </ul> </li> <li>oranges <ul><li>naval oranges</li><li>mandarin oranges </li></ul></li> <li>bananas</li> </ul> <h1>common fruits in BC</h1> <ul> <li>apples <ul> <li>granny smith</li> <li>golden delicious</li> </ul> </li> <li>oranges <ul> <li>naval oranges</li> <li>mandarin oranges </li> </ul> </li> <li>bananas</li> </ul> 3. Add comments: <!-- text in here is ignored by browser --> 4. Other ideas? 8 vs.
9 Questions?
10 Elements to good webpage designs CONTENT Messages to your audience You provide in this course reminder: typos/grammar? (professionalism/ impression) INTERACTION Give feedback/responses to your audience Web-programming (Python, Javascript, PHP, etc.) STRUCTURE Give semantic meaning to each element Meta data (meta=about) Done via a markup language STYLE Describe visual properties of each element Cascading Style Sheets (CSS) 10
11 Effect of styling What do sites look like without style? To turn on/off: 11
12 Cascading Style Sheets (CSS) A sheet defining styles Why cascading? Answered later Why CSS? By now, you should know what it serves E.g. you want center-align all your paragraphs To center-align, one way is to add attributes in your markup: <p align="center"> 12
13 Structure of an essay <h1> The coolest dissertation </h1> <p align="center"> By ABC </p> <h2> I. Introduction </h2> <h2> II. Body </h2> <h3> II.A - Topic 1 </h3> <h4> II.A.i - Subtopic A </h4> <h4> II.A.ii - Subtopic B </h4> <h3> II.B - Topic 2 </h3> <h4> II.B.i - Subtopic A </h4> <h4> II.B.ii - Subtopic B </h4> <h2> III. Conclusion </h2> 13
14 A complete example <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN " <html> <head> <title>title</title> </head> <body> <h1>heading</h1> </body> </html> Q: What happens when you have an essay of 8 paragraphs? A: Specify align attribute for each paragraph??? <p align="center">this is Paragraph1.</p> <p align="center">this is Paragraph2.</p> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN " <html> <head> <title>title</title> </head> <body> But what if you have 100 paragraphs??? <h1>heading</h1> <p align="center">this is Paragraph1.</p> <p align="center">this is Paragraph2.</p> <p align="center">this is Paragraph3.</p> <p align="center">this is Paragraph4.</p> <p align="center">this is Paragraph5.</p> <p align="center">this is Paragraph6.</p> <p align="center">this is Paragraph7.</p> <p align="center">this is Paragraph8.</p> </body> </html> CMPT 165 D1 (Summer 2005) 14
15 <style> tag <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN " <html> <head> <title>title</title> </head> <body> <h1>heading</h1> <p align="center">this is Paragraph1.</p> <p align="center">this is Paragraph2.</p> </body> </html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN " <html xmlns=" <head> <title>title</title> <style type="text/css"> p { text-align: center; Demo } </style> </head> <body> <h1>heading</h1> <p>this is a paragraph.</p> <p>this is another paragraph.</p> </body> </html> 15
16 <style> tag <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " <html xmlns=" <head> <title>title</title> <style type="text/css" media="all" > p { Required attribute Optional attribute text-align: center; } h1 { text-align: center; color: red; } </style> </head> <body> <h1>heading</h1> <p>this is a paragraph.</p> <p>this is another paragraph.</p> </body> </html> 16
17 CSS syntax Selector: an HTML element that you want to style selector1 { property_1: value_1; property_2: value_2; property_n: value_n; } selector2 { property_1: value_1; property_2: value_2; property_m: value_m; } Note: declarations are separated by semicolons! Curly brace Declaration ol { list-style-type: circle; start: a; } p { text-align: center; } vs. Attribute specification in older versions of HTML name_of_attribute="value" <p align=" center"> 17
18 3 ways to define visual styles 1. In the header 2. Inline <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " <html> <head> <title>title</title> <style type="text/css > p{ text-align: center; color: blue; } </style> </head> <body> <h1>heading</h1> <p>this is a paragraph.</p> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " <html> <head> <title>title</title> </head> <body> <h1>heading</h1> <p style= text-align: center; color: blue; >This is a paragraph.</p> </body> </html> </body> </html> CMPT 165 D1 (Summer 2005) 18
19 3 ways to define visual styles 1. In the header 2. Inline 3. In a separate CSS file: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " <html> <head> <title>title</title> <style type="text/css"> p { text-align: center; remove } </style> </head> <body> <h1>heading</h1> <p>this is a paragraph.</p> <p>this is another paragraph.</p> </body> </html> 19
20 Linking to an external stylesheet second_page.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " index.html <html> <head> <html> <title>page 2</title> <head> <link href= my_style.css" type="text/css" /> </head> <title>title</title> <body> <link href= my_style.css" type="text/css" /> </head> <h1>heading</h1> <body> <p>this is yet another page.</p> </body> <h1>heading</h1> </html> <p>this is a paragraph.</p> <p>this is another paragraph.</p> </body> </html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " my_style.css p { text-align: center; } 20
21 3 ways to styling markup 1. Inline 2. In the header 3. In a separate CSS file Amount of work? Most Least 21
22 CSS: Summary What? Cascading stylesheet? Cascading : answered later Why CSS? You should know How? <style> <link> 22
23 Tags: List Image Anchor Key items learned so far Linking to external data Styling <ol><ul><li><dl><dt><dd> <img> <a> <link> <style> Key concepts: Relative vs. Absolute URL Attribute specification vs. stylesheet attribute= value vs. CSS (selector, property, value) 23
24 Q/A
25 ~ lisat /demos/sfu_logo.png Local Remote 25
26 Absolute vs. Relative URL SFU_logo.png + index.html in same folder (demos) index.html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " <html> <head><title>title</title></head> <body> <h1>heading</h1> <p> <img src=" ~lisat/demos/sfu_logo.png" /> </p> <p><img src="sfu_logo.png" /></p> </body> </html> 26
27 index.html: Absolute vs. Relative URL SFU_logo.png + index.html not in same folder Q: what is the relative URL for the SFU_logo.png file? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " <html> <head><title>title</title></head> <body> /home/lisat/public_html/sfu_logo.png <h1>heading</h1> /home/lisat/public_html/demos/index.html <p> <img src=" ~lisat/sfu_logo.png" /> </p> <p><img src="../sfu_logo.png" /></p> </body> </html> Answer: use.. ( parent directory) parent directory 27
28 index.html: Absolute vs. Relative URL SFU_logo.png + index.html not in same folder Q: what is the relative URL for the SFU_logo.png file? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " <html> <head><title>title</title></head> <body> /home/lisat/public_html/sfu_logo.png <h1>heading</h1> /home/lisat/public_html/d1/d2/index.html <p> <img src=" ~lisat/sfu_logo.png" /> </p> <p><img src="../../sfu_logo.png" /></p> </body> </html> grandparent directory? 28
29 index.html: Absolute vs. Relative URL SFU_logo.png now moved to another subfolder test Q: what is the relative URL for the SFU_logo.png file? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " <html> <head><title>title</title></head> <body> /home/lisat/public_html/test/sfu_logo.png <h1>heading</h1> /home/lisat/public_html/d1/d2/index.html <p> <img src=" ~lisat/test/sfu_logo.png" /> </p> <p><img src="../../test/sfu_logo.png"/></p> </body> </html> grandparent directory? 29
30 Questions?
31 Putting all in context (from last Tues.) Keywords: URL: a resource, e.g. a file: study-guide.pdf, E1.html Upload Local vs. remote Steps: 1. You do coursework on your local computer, e.g. C:\user\165\E1.html 2. When done, you upload files to a remote server that accepts request for resource You store these files in a file location on our cmpt165 (remote) server, e.g. cmpt165.csil.sfu.ca\home\lisat\public_html\e1.html Others on Internet may request to view E1.html using this URL: Server cmpt165 is configured to look at the location \home\lisat\public_html 3. Users request the URL of your work from their browser (e.g. Firefox, etc.)
32 Questions?
33 CMPT 165 Unit 3 CSS Colour Sept. 24 th, 2015
34 CSS: background Levels (version number): Level 1: released in Dec 1996 Level 2: released in May 1999 Level 2.1: released in June 2011 Level 3 is being developed Level 4 is planned for the future 34
35 CSS Level 1 Style support for: Color of element text, backgrounds, etc. Alignment of elements (text, images, etc.) Text formatting: e.g. spacing of words, letters, lines Font properties: typeface and emphasis Boxing: margin, border, padding, and positioning Unique identification: explained later Generic classification: explained later 35
36 Colors 17 standard color presets in CSS 1 White Silver Gray Black Red Maroon Yellow Olive Orange Lime Green Aqua Teal Blue Navy Fuchsia Purple 36
37 RGB model primary colors : Red + Green + Blue Additive model: i.e. Red + Green = Yellow Red + Blue = Purple RGB model/coding: A system for specifying colors A numerical value reflecting intensity ( strength ) of a color channel: e.g. 5 is brighter than 0 8 is brighter than 2 wiki/file:additivecolor.svg 3 channels 3 sets of values, e.g. Bright red given by
38 RGB model Red Green Blue Examples: Bright green? Dark green? Bright blue? Dark red? Dark blue? Purple? Black? Gray? Possible RGB encoding:
39 Color specification Decimal system (base=10): Darkest Brightest This is not used in CSS! CSS uses hex system Hexadecimal system (base=16): A B C D E F Darkest Brightest Example: Brightest red? RGB = X X X? = F
40 RGB model Red Green Blue Examples: Bright green? Dark green? Bright blue? Dark red? Dark blue? Purple? Black? Gray? Decimal A B C D E F Hexadecimal 0 F F
41 Always start with hash key (#), e.g. Colour specification in CSS p { } background-color: #0F0; color: #AF0; hr { border-color: #0a0; color: black; } 41
42 We ll look more on colour specification next class
43 Today s Highlights CSS: motivation and practicalities So far, things we learned related to CSS: RGB color model Hexadecimal color coding 3 ways to colour specification in both CSS+Markup 43
44 Tips for preparing the exams Exercise on your own: summarize key concepts seen so far in Unit 1 + Unit 2 For all coursework: start by writing the code in paper + pen! 44
Admin. Midterm 1 on. Oct. 13 th (2 weeks from today) Coursework:
Midterm 1 on Admin Oct. 13 th (2 weeks from today) Coursework: E1 grade released: please see Karoon (TA) at his office hours (Tues at 12-1pm) E2 due tomorrow E3 posted yesterday; due this Friday 11:59pm
More informationCMPT 470: Web-based Information Systems
CMPT 470: Web-based Information Systems Spring 2018 Week 2: HTML & CSS Reminder: 2 HTML 3 Book: Dive into HTML5 each chapter includes a frank discussion of your options if you need to support older browsers.
More informationCMPT 165 Unit 2 Markup Part 2
CMPT 165 Unit 2 Markup Part 2 Sept. 17 th, 2015 Edited and presented by Gursimran Sahota Today s Agenda Recap of materials covered on Tues Introduction on basic tags Introduce a few useful tags and concepts
More informationADDING 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 informationChapter 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 informationAdmin & Today s Agenda
Admin & Today s Agenda FYI: Boshra s and Guri s office hours switched this week Take-home exercises: any one done them??? Key materials in Unit 4 2 new concepts New tags CMPT 165 D1 (Fall 2015) 1 And before
More informationCMPT 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 informationCMPT 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 informationMethods for configuring Cascading Style Sheets. Applying style to element name selectors. Style Rule Basics. CMPT 165: Cascading Style Sheets
CMPT 165: Cascading Style Sheets Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University October 7, 2011 Methods for configuring Cascading Style Sheets There are 4 method to
More informationReading 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 informationReview 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 informationFundamentals: Client/Server
Announcements Class Web Site: http://www.cs.umd.edu/projects/passport/classes/summer2008/ You can find this link at the end of the main passport site http://www.cs.umd.edu/projects/passport/webpage/ E-mail
More informationCS134 Web Site Design & Development. Quiz1
CS134 Web Site Design & Development Quiz1 Name: Score: Email: I Multiple Choice Questions (2 points each, total 20 points) 1. Which of the following is an example of an IP address? a. www.whitehouse.gov
More informationHTML and CSS COURSE SYLLABUS
HTML and CSS COURSE SYLLABUS Overview: HTML and CSS go hand in hand for developing flexible, attractively and user friendly websites. HTML (Hyper Text Markup Language) is used to show content on the page
More informationWeb Publishing Basics I
Web Publishing Basics I Jeff Pankin Information Services and Technology Contents Course Objectives... 2 Creating a Web Page with HTML... 3 What is Dreamweaver?... 3 What is HTML?... 3 What are the basic
More informationCSS: 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 informationAppendix 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 informationShane Gellerman 10/17/11 LIS488 Assignment 3
Shane Gellerman 10/17/11 LIS488 Assignment 3 Background to Understanding CSS CSS really stands for Cascading Style Sheets. It functions within an HTML document, so it is necessary to understand the basics
More information<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 informationHTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.
HTML Summary Structure All of the following are containers. Structure Contains the entire web page. Contains information
More informationAssignments (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 informationIndex. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148
Index Numbers & Symbols (angle brackets), in HTML, 47 : (colon), in CSS, 96 {} (curly brackets), in CSS, 75, 96. (dot), in CSS, 89, 102 # (hash mark), in CSS, 87 88, 99 % (percent) font size, in CSS,
More informationOverview. 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 informationWhat is CSS? NAME: INSERT OPENING GRAPHIC HERE:
What is CSS? NAME: INSERT OPENING GRAPHIC HERE: Highlight VOCABULARY WORDS that you need defined. Put a? mark in any area that you need clarified. 1 What is CSS? CSS stands for Cascading Style Sheets Styles
More information3.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 informationOutline. Link HTML With Style Sheets &6&7XWRULDO &66 ;+70/ (GZDUG;LD
&6&7XWRULDO &66 ;+70/ (GZDUG;LD Outline CSS Link XHTML With Style Sheets, Class/ID selectors, Pseudo-class/element, Color values, Length units, Text, Font, Lists, Padding/border/margin, Floating/clearing,
More informationXHTML & CSS CASCADING STYLE SHEETS
CASCADING STYLE SHEETS What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML XHTML is almost identical to HTML 4.01 XHTML is a stricter and cleaner version
More information- 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 informationDownloads: 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 informationCSS. 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 informationWeb 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 informationIntroduction 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 informationProgrammazione 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 informationIntroduction 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 informationThe internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.
Review The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data. It is not the internet! It is a service of the internet.
More informationintroduction to XHTML
introduction to XHTML XHTML stands for Extensible HyperText Markup Language and is based on HTML 4.0, incorporating XML. Due to this fusion the mark up language will remain compatible with existing browsers
More information- 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 informationCSS 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 informationText and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions
Text and Layout Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11 This presentation 344 345 Text in Graphics Maximum flexibility obtained by treating text as graphics and manipulating
More informationWeb 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 informationBasic Web Pages with XHTML (and a bit of CSS) CSE 190 M (Web Programming), Spring 2008 University of Washington Reading: Chapter 1, sections
Basic Web Pages with XHTML (and a bit of CSS) CSE 190 M (Web Programming), Spring 2008 University of Washington Reading: Chapter 1, sections 1.1-1.3 Except where otherwise noted, the contents of this presentation
More informationSkill Area 323: Design and Develop Website. Multimedia and Web Design (MWD)
Skill Area 323: Design and Develop Website Multimedia and Web Design (MWD) 323.4 Use graphics and objects on Web Page (7 hrs) 323.4.1 Insert foreground features 323.4.2 Modify image attributes 323.4.3
More informationATSC Week 2 Web Authoring
ATSC 212 - Week 2 Web Authoring Roland Stull rstull@eos.ubc.ca 1 Web Philosophy! Content is everything.! Style is nothing**. (**until recently)! Hypertext! Hot words or images can expand to give more info.
More informationControlling 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 informationID1354 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 informationLecture B3 Style : Algorithmic Thinking. Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007
Lecture B3 Style : Algorithmic Thinking Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007 Functionalia Instructor Chipp Jansen, chipp@sci.brooklyn.cuny.edu Course Web Page http://www.sci.brooklyn.cuny.edu/~chipp/cc3.12/
More informationCSS 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 informationAdmin. (Reminder) coursework submission procedure: 2.??? Submit URL to CourseSys (URL as instructed) 1. Upload
Admin (Reminder) coursework submission procedure: 1. Upload 2.??? Submit URL to CourseSys (URL as instructed) Only ~110 students did this! What consequences? Schedule coming up: Today: Colours + go through
More informationINFORMATICA 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 informationWelcome 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 informationWhat is XHTML? XHTML is the language used to create and organize a web page:
XHTML Basics What is XHTML? XHTML is the language used to create and organize a web page: XHTML is newer than, but built upon, the original HTML (HyperText Markup Language) platform. XHTML has stricter
More informationCascading style sheets
Cascading style sheets The best way to create websites is to keep the content separate from the presentation. The best way to create websites is to keep the content separate from the presentation. HTML
More informationHTML Overview. With an emphasis on XHTML
HTML Overview With an emphasis on XHTML What is HTML? Stands for HyperText Markup Language A client-side technology (i.e. runs on a user s computer) HTML has a specific set of tags that allow: the structure
More informationICT 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 informationWeb Programming and Design. MPT Senior Cycle Tutor: Tamara Week 2
Web Programming and Design MPT Senior Cycle Tutor: Tamara Week 2 Plan for the next 4 weeks: Introduction to HTML tags, creating our template file Introduction to CSS and style Introduction to JavaScript
More informationLab 4 CSS CISC1600, Spring 2012
Lab 4 CSS CISC1600, Spring 2012 Part 1 Introduction 1.1 Cascading Style Sheets or CSS files provide a way to control the look and feel of your web page that is more convenient, more flexible and more comprehensive
More informationFinal Exam Study Guide
Final Exam Study Guide 1. What does HTML stand for? 2. Which file extension is used with standard web pages? a..doc b..xhtml c..txt d..html 3. Which is not part of an XHTML element? a. Anchor b. Start
More informationHow the Internet Works
How the Internet Works The Internet is a network of millions of computers. Every computer on the Internet is connected to every other computer on the Internet through Internet Service Providers (ISPs).
More information7300 Warden Avenue, Suite 503 Markham, Ontario Canada L3R 9Z6. Phone: Toll Free: Fax:
HTML and CSS 7300 Warden Avenue, Suite 503 Markham, Ontario Canada L3R 9Z6 Phone: 905-479-3780 Toll Free: 877-479-3780 Fax: 905-479-1047 e-mail: info@andarsoftware.com Web: www.andarsoftware.com.com Copyright
More informationLA TROBE UNIVERSITY SEMESTER ONE EXAMINATION PERIOD CAMPUS AW BE BU MI SH ALLOWABLE MATERIALS
LIBRARY USE LA TROBE UNIVERSITY SEMESTER ONE EXAMINATION PERIOD 2013 Student ID: Seat Number: Unit Code: CSE2WD Paper No: 1 Unit Name: Paper Name: Reading Time: Writing Time: Web Development Final 15 minutes
More informationHyper Text Markup Language HTML: A Tutorial
Hyper Text Markup Language HTML: A Tutorial Ahmed Othman Eltahawey December 21, 2016 The World Wide Web (WWW) is an information space where documents and other web resources are located. Web is identified
More informationWeb Development & Design Foundations with XHTML. Chapter 2 Key Concepts
Web Development & Design Foundations with XHTML Chapter 2 Key Concepts Learning Outcomes In this chapter, you will learn about: XHTML syntax, tags, and document type definitions The anatomy of a web page
More informationMarkup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX
HTML 1 Markup Languages A Markup Language is a computer language in which data and instructions describing the structure and formatting of the data are embedded in the same file. The term derives from
More informationAnnouncements. Paper due this Wednesday
Announcements Paper due this Wednesday 1 Client and Server Client and server are two terms frequently used Client/Server Model Client/Server model when talking about software Client/Server model when talking
More informationChapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21
Table of Contents Chapter 1 Getting Started with HTML 5 1 Introduction to HTML 5... 2 New API... 2 New Structure... 3 New Markup Elements and Attributes... 3 New Form Elements and Attributes... 4 Geolocation...
More informationMinistry of Higher Education and Scientific Research
Morning Study Department of information technology Institute of Technical - Duhok. University of Polytechnic Duhok. Subject: Web Technology Course book for 2nd year. Lecturer s name: MSc. Ayman Nashwan
More informationGIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.
GIMP WEB 2.0 MENUS Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar. Standard Navigation Bar Web 2.0 Navigation Bar Now the all-important question
More informationAs we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.
Extra notes - Client-side Design and Development Dr Nick Hayward HTML - Basics A brief introduction to some of the basics of HTML. Contents Intro element add some metadata define a base address
More informationCSC 337. Cascading Style Sheets. Marty Stepp, Rick Mercer
CSC 337 Cascading Style Sheets Marty Stepp, Rick Mercer Preview of a style sheet /* The good way, with a preview of cascading style sheet (css) that has class mystyle */ body { background-color: grey;.mystyle
More information1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014
1/6/2019 12:28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014 CATALOG INFORMATION Dept and Nbr: CS 50A Title: WEB DEVELOPMENT 1 Full Title: Web Development 1 Last Reviewed:
More informationChapter 4. Introduction to XHTML: Part 1
Chapter 4. Introduction to XHTML: Part 1 XHTML is a markup language for identifying the elements of a page so a browser can render that page on a computer screen. Document presentation is generally separated
More informationLab Introduction to Cascading Style Sheets
Lab Introduction to Cascading Style Sheets For this laboratory you will need a basic text editor and a browser. In the labs, winedt or Notepad++ is recommended along with Firefox/Chrome For this activity,
More information**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 informationMaking Backgrounds With Paint Shop Pro
Making Backgrounds With Paint Shop Pro A good Web site deserves a good background. Whether you decide on a single color, a faded repeated logo, a textured tile, or a border, the background of your Web
More informationCHAPTER 2 MARKUP LANGUAGES: XHTML 1.0
WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson reserved. 0-13-185603-0 HTML HELLO WORLD! Document
More informationITNP43: 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 informationCSS 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 informationIntroduction 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 information2005 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 informationINTERNATIONAL 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 informationDesigning the Home Page and Creating Additional Pages
Designing the Home Page and Creating Additional Pages Creating a Webpage Template In Notepad++, create a basic HTML webpage with html documentation, head, title, and body starting and ending tags. From
More informationCREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1
CREATING A WEBSITE USING CSS Mrs. Procopio CTEC6 MYP1 HTML VS. CSS HTML Hypertext Markup Language CSS Cascading Style Sheet HTML VS. CSS HTML is used to define the structure and content of a webpage. CSS
More informationCOMS 359: Interactive Media
COMS 359: Interactive Media Agenda Review CSS Layout Preview Review Introducting CSS What is CSS? CSS Syntax Location of CSS The Cascade Box Model Box Structure Box Properties Review Style is cascading
More informationIntroduction to Multimedia. MMP100 Spring 2017 thiserichagan.com/mmp100
Introduction to Multimedia MMP100 Spring 2017 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 informationMake 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 informationWeb Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh
Web Programming and Design MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh Plan for the next 5 weeks: Introduction to HTML tags Recap on HTML and creating our template file Introduction
More informationThe Internet & The World Wide Web
The Internet & The World Wide Web "Most of the fundamental ideas of science are essentially simple and may as a rule be expressed in a language comprehensible by everyone." Albert Einstein Overview This
More informationIntroduction to HTML & CSS. Instructor: Beck Johnson Week 2
Introduction to HTML & CSS Instructor: Beck Johnson Week 2 today Week One review and questions File organization CSS Box Model: margin and padding Background images and gradients with CSS Make a hero banner!
More informationHTML & CSS. Rupayan Neogy
HTML & CSS Rupayan Neogy But first My Take on Web Development There is always some tool that makes your life easier. Hypertext Markup Language The language your web browser uses to describe the content
More informationDreamweaver CS3 Lab 2
Dreamweaver CS3 Lab 2 Using an External Style Sheet in Dreamweaver Creating the site definition First, we'll set up the site and define it so that Dreamweaver understands the site structure for your project.
More informationUsing Dreamweaver 2 HTML
Using Dreamweaver 2 The World Wide Web is based on (Hypertext markup language). Although Dreamweaver is primarily a WYSIWYG editor, it is still worthwhile for Dreamweaver users to be familiar with for
More informationCSS 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 informationCSC309 Tutorial CSS & XHTML
CSC309 Tutorial CSS & XHTML Lei Jiang January 27, 2003 1 CSS CSC309 Tutorial --CSS & XHTML 2 Sampel XML Document
More informationCMPT 165 Unit 7 Intro to Programming - Part 5. Nov 20 th, 2015
CMPT 165 Unit 7 Intro to Programming - Part 5 Nov 20 th, 2015 Admin A2: Google form for contest submission Eager to know about A3??? Additional office hours to study for midterm#2 today? My office location
More informationCOMP519 Web Programming Lecture 3: HTML (HTLM5 Elements: Part 1) Handouts
COMP519 Web Programming Lecture 3: HTML (HTLM5 Elements: Part 1) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of
More informationCreating A Web Page. Computer Concepts I and II. Sue Norris
Creating A Web Page Computer Concepts I and II Sue Norris Agenda What is HTML HTML and XHTML Tags Required HTML and XHTML Tags Using Notepad to Create a Simple Web Page Viewing Your Web Page in a Browser
More informationHTML TUTORIAL ONE. Understanding What XHTML is Not
HTML TUTORIAL ONE Defining Blended HTML, XHTML and CSS HTML: o Language used to create Web pages o Create code to describe structure of a Web page XHTM: o Variation of HTML o More strictly defines how
More informationHTML/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 informationStudy 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 informationNavigation. Websites need a formalized system of links to allow users to navigate the site
Comm 244 Week 3 Navigation Navigation Websites need a formalized system of links to allow users to navigate the site Navigation Many larger websites have multiple forms of navigation For example, look
More information