Bare bones notes.

Slides:



Advertisements
Similar presentations
Introduction to HTML & CSS
Advertisements

CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Cascading Style Sheets. Slide 2 Lecture Overview Overview of Cascading Style Sheets (CSS) Ways to declare a CSS CSS formatting capabilities New features.
4.01 Cascading Style Sheets
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Understanding HTML Style Sheets. What is a style?  A style is a rule that defines the appearance and position of text and graphics. It may define the.
Cascading Style Sheets (CSS) Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Chapter 3 Working with Text and Cascading Style Sheets.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
Bare bones notes. Suggested organization for main folder. REQUIRED organization for the 115 folder.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
The format is text files, with.htm or.html extension. Hard returns, tabs, and extra spaces are ignored. DO NOT use spaces in file names. File names ARE.
Overview of HTML/XHTML Two Different Approaches  Text editor like Notepad  HTML editor such as: –KompoZer –DreamWeaver –Microsoft Expression Web –iWeb.
Bare bones slide show. The format is text files, with.htm or.html extension. Hard returns, tabs, and extra spaces are ignored. DO NOT use spaces in file.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company.
CASCADING STYLE SHEET 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.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
Web Development & Design Foundations with XHTML
Getting Started with CSS
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
4.01 Cascading Style Sheets
Web Development & Design Foundations with HTML5 8th Edition
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Bare boned notes.
Cascading Style Sheets Part 1
Cascading Style Sheets
Web Development & Design Foundations with HTML5
Procedure Download data files.
Bare bones notes.
Madam Hazwani binti Rahmat
Web Developer & Design Foundations with XHTML
Using Cascading Style Sheets Module B: CSS Structure
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Web Development & Design Foundations with HTML5
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
Cascading Style Sheets - Building a stylesheet
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Software Engineering for Internet Applications
Working with Text and Cascading Style Sheets
Working with Cascading Style Sheets (CSS)
Working with Cascading Style Sheets (CSS)
What are Cascading Stylesheets (CSS)?
Overview of HTML.
Cascading Style Sheets
Some Stuff You Need to Know
Tutorial 3 Working with Cascading Style Sheets
Web Design and Development
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Please bookmark your URL
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2016 Terry Ann Morris, Ed.D.
Cascading Style Sheets - Building a stylesheet
4.01 Cascading Style Sheets
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
Cascading Style Sheets III B. Com (Paper - VI) & III B
Web Programming and Design
Presentation transcript:

Bare bones notes

Review & Finish Chapter 2 Characteristics of web pages The format is text files, with .htm or .html extension. Hard returns, tabs, and extra spaces are ignored. DO NOT use spaces in file names. File names ARE CASE SENSITIVE. Tags are not case sensitive, but the standard is lowercase. The first page in a web site should be named index.htm or index.html REASON: As the default filename, it nicely shortens your URL example: www.cofc.edu instead of: www.cofc.edu/ourhomepage.htm another example: Yourname.students.cofc.edu/115

div: generic container for block elements   A few other items: HTML5 Structural Elements – semantically named elements used to configure specific parts of pages. div: generic container for block elements span: generic container for inline elements What is difference between block & inline? Block display elements:  normally start (and end) with a new line. Inline elements: Displayed in line with text without creating a new line. Questions: What are some examples of HTML5 structural elements? What are some examples of inline and block elements?

Turn on file extensions: In Windows 8 or10: Click VIEW, Options, Change Folder & Search Options Mac OS: FINDER, Preferences

Status of the 2 assignments     Assignment page: Already graded Chapter 2 case study: Was due on 9/7. Will be graded soon. Chapter 3 case study: Due 9/14. You will link to homework page on your own. We will not do it during class.

ORGANIZATION OF FOLDERS You should have a folder called 115. The rule/idea is that EVERYTHING that will be submitted must go in that folder. Another rule is that each website must have it’s own folder. So far we have: The 115 folder itself It includes your assignment page and banner. A folder called Yoga, which is inside of 115 As you study, you should download the files from the textbook website to practice with. But DO NOT put in 115 folder. And finally – for each chapter we will create a practice site similar to “semester plans”. DO NOT put those folders in 115 either.

Suggested organization for your main folder.

RELATIVE LINKS Both files on same level: filename.ext Folder on same level as your file: foldername/filename Link to a folder one level up: ../foldername/filename For Example: <img src="banner.jpg" alt="my banner"> Therefore, if you named your files and folders as recommended, your link to Chapter 2 Case Study would be: <a href="yoga/index.html">Chapter 2 Case Study</a> For Example: <a href="../chapter11/canvas.html">Example</a>

Therefore, if you named your files and folders as recommended, your link to Chapters 2 & 3 Case Studies would be: <a href="yoga/index.html">Chapter 2 Case Study</a> <a href="yogacss/index.html">Chapter 3 Case Study</a>

start CHAPTER 3 What is CSS?     What is CSS? A style sheet language used to describe the appearance and formatting of a HTML document. As with other types of styles, several formats can be included in one style. In other words… A group of formats that are setup as a unit and can be applied repeatedly. (generic definition)

  Advantages of style More control (more features) Separate from structure Can be re-used (applied to multiple pages; multiple sites) Smaller potentially Easy to edit and maintain

Syntax Selector {property: value; property: value; }   h1 {text-align: center; color: #0000ff; } Here is a visual of it:

Types of CSS: Inline: Added as an attribute of an HTML tag and only applies to that individual element. Used to override others. Embedded: Defined in the head area between <style> tags. Applies to the body of that document. External: A separate file which is linked in the <head> section. Used for entire website.

Summary of Cascading Style Sheets Syntax & example for inline style: <element style="property: value"> <blockquote style="color: #cc99ee" > Syntax & example for other CSS: selector {property: value";} p { line-height: 140%; color: #ff00ff; } Link to external CSS file: <link rel="stylesheet" href="yourfile.css">

CSS Selector types 1. HTML element What is difference? 2. class 3. id And finally, what about: descendant selector

Using Color: There are several ways of applying color. Names: modern browsers support140 including extended names https://www.w3schools.com/colors/colors_names.asp RGB: rgb(0,150,220) (the intensity of rgb from 0 – 255) Hexadecimal: #9400BF -uses base 16. 0-9 and A-F to specify numeric value. -includes 3 pairs, 2 characters for each RGB    Search “hex colors” to get chart, or go to http://webdevfoundations.net/color

Additional color sites https://color.adobe.com http://paletton.com   http://www.colr.org (if you want to choose colors based on a picture)

See table on page 85 to see all that we will cover

Don’t worry about all three pages yet, we’ll start simply Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company. Don’t worry about all three pages yet, we’ll start simply

Create folder called “freelance” Practice for Chapter 3 (continued) Steps to begin: Create folder called “freelance” Create the first page as template.html. In addition to the basic HTML tags, the only other elements we’ll use on all pages are: div for the wrapper, header, nav, footer, and link to CSS. Use dummy text from www.blindtextgenerator.com to create your index.html page: HINT: Save your template using “save as” Exquisite Designs, Inc.

Exquisite Designs, Inc. Make your file look similar to this Practice for Chapter 3 (continued) Make your file look similar to this Exquisite Designs, Inc.