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

Similar documents
Adding CSS to your HTML

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

CSS: The Basics CISC 282 September 20, 2014

Appendix D CSS Properties and Values

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

CSS. Lecture 16 COMPSCI 111/111G SS 2018

ACSC 231 Internet Technologies

CSS Lecture 16 COMPSCI 111/111G SS 2018

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

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

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

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Web Site Design and Development Lecture 6

HTML/XML. HTML Continued Introduction to CSS

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

Introduction to Web Tech and Programming

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

Chapter 12: FORMATTING TEXT

CSS Styles Quick Reference Guide

UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013

Reading 2.2 Cascading Style Sheets

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

Introduction to Web Design CSS Reference

CSS. Text & Font Properties. Copyright DevelopIntelligence LLC

Web Development & Design Foundations with HTML5

Introduction to Web Design CSS Reference

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

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

Web Development & Design Foundations with HTML5

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

IMY 110 Theme 6 Cascading Style Sheets

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

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

Cascading Style Sheets. Overview and Basic use of CSS

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


Tutorial 3: Working with Cascading Style Sheets

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

CASCADING STYLESHEETS

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

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

2005 WebGUI Users Conference

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

Fundamentals of Web Programming a

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

Cascade Stylesheets (CSS)

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

Chapter 4 CSS basics

Javascript Hierarchy Objects Object Properties Methods Event Handlers. onload onunload onblur onfocus

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

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

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

Cascading Style Sheets

8a. Cascading Style Sheet

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

CSS.

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

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

CMPT 165: More CSS Basics

Chapter 7 Typography, Style Sheets, and Color. Mrs. Johnson

DAY 4. Coding External Style Sheets

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

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

CSc 337 LECTURE 3: CSS

Chapter 2 CSS for Style

CSS Cascading Style Sheets

CSE 154 LECTURE 3: MORE CSS

Interactive Design 1 ART263/Advanced Design for the Web ART220 Gregory Eckler. Interactive Design/Advanced Design for the Web CSS Terminology

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

How to use CSS text styles

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

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

Cascading Style Sheet Quick Reference

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS

CS105 Course Reader Appendix A: HTML Reference

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

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

Using CSS in Web Site Design

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

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

Introducing Cascading Style Sheets. Cascading Style Sheet Basics Creating Styles Using Styles Manipulating Styles Text Formatting with CSS

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

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

Using Dreamweaver. 6 Styles in Websites. 1. Linked or Imported Stylesheets. 2. Embedded Styles. 3. Inline Styles

Using Dreamweaver CS6

CSC 443: Web Programming

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

Creating and Building Websites

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

Introduction to CSS (CSS2) Cascading Style Sheets. CSS Example. CSS Rules

ITNP43: HTML Lecture 4

CSS Cascading Style Sheets

Three Ways to Use CSS:

Zen Garden. CSS Zen Garden

Multimedia for the Web: Creating Digital Excitement. Multimedia Element Text

CSCE 101. Creating Web Pages with HTML5 Applying style with CSS

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

Using CSS to Format Multiple Pages

Cascading Style Sheets (CSS)

CSS: Cascading Style Sheets

Transcription:

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 A hexadecimal color is specified in the following format: #RRGGBB. RR (red), GG (green) and BB (blue) are hexadecimal integers between 00 and FF specifying the intensity of the color. For example: #0000FF is completely blue, the blue component is set to its highest value (FF) and the others are set to 00. p {color: #0000FF } RGB Color An RGB color value is using: rgb(red, green, blue). Each parameter sets the intensity of the color as a number from 0 to 255. For example: rgb(0,0,255) is completely blue, the blue parameter is set to its highest value (255) and the others are set to 0. p {color rgb(0,0,255) }

Navigation Use the anchor element to create links to other pages on your site, or to a page on someone else s site. Provide the URL of the page you want to link to using the href attribute of the anchor element. Can be placed anywhere in the body, but the navigation bar should go into the <nav> section. Wrap the anchor element around the text or image you want to become your link <a href= page.html >Link text</a> <a href=../page.html >Link text</a> <a href= http://www.msn.com >Link text</a> Set the target attribute to _blank open link in a new window <a href= page.html target= _blank >Link text</a> Email Link To create a link to an email address <a href= mailto:name@site.com >Link text</a> This will open up user s default email program (if one is defined) To avoid getting spammed, do not put your email address on your publicly accessible websites. Navigation CSS Links have several states for which the formatting can be modified using CSS :link :visited :focus :hover :active Use the following syntax a:state {property:value;} a:link {text-decoration: none; color: blue;} marisa@latticeworksolutions.com Page: 2

Typography Choosing a Font Family Use built-in web safe fonts common fonts installed on most computers. (http://www.w3schools.com/cssref/css_websafe_fonts.asp) Use @font-face to use a font located on the web server (http://www.fontsquirrel.com/) @font-face{font-family: AnyFontName; src: url(fontfile.ttf);} Use the font-family property when specifying a style for the specified selector selector {font-family: AnyFontName, Arial;} ie. body {font-family: AnyFontName, Arial, sans-serif;} Applying Bold and Italics The font-weight property of the selector for bold selector {font-weight: bold;} p {font-weight: bold;} Other allowable values for font-weight property include normal, lighter, bolder, lighter, multiple of 100 (400 = normal) Use the font-style property of the selector for italic selector {font-style: italic;} p {font-weight: bold;} Setting the Font Size and Color Use the font-size property in the selector selector {font-size: 12px;} p {font-size: 12px;} Other values for font-size pt, em, xx-small, x-small, small, medium, large, x-large, xx-large marisa@latticeworksolutions.com Page: 3

Use the color property in the selector selector {color: red;} p {color: red;} Other values for color Hex value, rgb(r, g, b), rgb(r%, g%, b%) Setting the Line Height Effects the amount of space between each line in a paragraph Use the line-height property in the selector you want to apply the style to selector {line-height: n;} selector {line-height: p%;} selector {line-height: a;} Changing the Text Case Use the text-transform property to define the text case Use the following values for the text-transform property capitalize first character in each word uppercase all capital letters lowercase all small letters none as it was typed Using Small Caps selector {text-transform: uppercase;} h1 {text-transform: uppercase;} Use the font-variant property to display text in small caps Controlling Spacing Selector {font-variant: small-caps;} h1 {font-variant: small-caps;} Tracking add or reduce space between words Use the word-spacing property to specify tracking selector {word-spacing: length;} Kerning add or reduce space between letters Use letter-spacing property to specify kerning marisa@latticeworksolutions.com Page: 4

selector {letter-spacing: length;} Creating A Website - Part 1: Web Design principles, HTML & CSS Length is a number with units (i.e. 5 px) Adding Indents Use the text-indent property to determine how much space should precede the first line of a paragraph selector {text-indent: length;} p {text-indent: 10px;} Length is a number with units (i.e. 20 px) Aligning Text Use the text-align property to set up certain XHTML elements to always be aligned to the right, left, center, or justified Decorating Text selector {text-align: right left center justified;} h1 {text-align: center;} Use text-decoration property to format text with underlines, over lines, strikethroughs, and blinking selector {text-decoration: underline;} Valid values include: underline overline line-through blink none HOMEWORK: Write three HTML pages (You can use a similar structure but with different information, keeping in mind it is for a mobile device. marisa@latticeworksolutions.com Page: 5

Add CSS to format the pages you created last week. Creating A Website - Part 1: Web Design principles, HTML & CSS marisa@latticeworksolutions.com Page: 6