Please bookmark your URL

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Introduction to HTML & CSS
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
Cascading Style Sheets
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
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.
Chapter 8 Creating Style Sheets.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
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.
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.
Introduction To CSS.. HTML Review What is HTML used for? Give some examples of formatting tags in HTML? HTML is the most widely used language on the Web.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
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.
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.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 8: Working with Style Sheets.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company.
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
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.
Introduction To CSS. Lesson 1: History of CSS CSS was proposed in 1994 as a web styling language. To helps solve some of the problems HTML 4. There were.
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
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.
Introduction to Web Authoring
Working with Cascading Style Sheets (CSS)
Working with Cascading Style Sheets (CSS)
What are Cascading Stylesheets (CSS)?
Cascading Style Sheets
Some Stuff You Need to Know
Bare bones notes.
Training & Development
Tutorial 3 Working with Cascading Style Sheets
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.
Made By : Lavish Chauhan & Abhay Verma
HTML & CSS 7 Languages in 7 Days.
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%)
Web Programming and Design
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

Please bookmark your URL username.students.cofc.edu/115 Example: smithg.students.cofc.edu/115

Chapter 3 Bare bones notes

A few items from Chap 2 A few other items:    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? Block display elements:  normally start (and end) with a new line. Inline elements: Displayed in line with text without creating a new line.

Turn on file extensions In Windows 8 or10: Click View menu. Then checkmark “Display file extensions” In Windows 7: Click that Organize button on the left, then … Mac OS: FINDER, Preferences

Status of the 2 assignments     Assignment page: Already graded Chapter 2: We will link today. You can finish uploading by midnight if you have trouble.

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 image. A folder called javajam that’s inside of 115 As you study, you should download the files from the textbook website to practice with. But DO NOT put them 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="javajam/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 Chapter 2 Case Study would be: <a href="javajam/index.html">Chapter 2 Case Study</a> But we’re going to move on to Chapter 3 now, and leave 15 minutes for this at end of class.

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

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

More on Cascading Style Sheets CSS Selector types HTML element class id Descendant selector – is used to specify an element within the context of its parent or container element. The selectors are written in the order of their embedding, with space between each. E.g. to specify a style of an anchor that is inside a nav element: nav a {color: white; }

Using Color: There are several ways of applying color. Names: modern browsers support140 including extended names (per w3schools.com) 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 of red, green and blue with the pattern of #rrggbb   Search “hex colors” or “html color names” to get chart, or go to www.w3schools.com/colors/colors_names.asp or webdevfoundations.net/color

Color Scheme Websites Although it would take too much time to examine these during class, be sure to explore them at home and use in your future projects. https://color.adobe.com – Click “Explore” to see schemes. Must copy & paste each hex color individually. https://coolors.co – Best for exploring existing schemes and downloading text version. Click “Explore” then “View”. Then copy the hex color. http://colorpalettes.net – a user-friendly website with attractive palettes based on pictures. You can go to this page to see tagged descriptions of palettes. http://paletton.com – A great and sophisticated website. Best to read the brief instructions on using it.  http://www.colr.org – For choosing colors based on a picture.

See table on page 85 to see all that is covered in the chapter.

Practice for Chapter 3: Assume that you offer some kind of service, such as a web designer, and need to create a website to promote your freelance company. Don’t worry about all three pages today, we’ll start simply with home page.

Create folder called “freelance” Practice for Chapter 3 (continued) Steps to begin: Create folder called “freelance” Now that you’ve learned the template code on page 28, I’ll show you a file with the code already written. …wait for it. See page 110-110. We’ll wrap up the page before beginning. In addition to the basic HTML tags and wrapper, the only other elements we’ll use on all pages are: header (which includes an <h1>) nav (along with the actual page links), footer (with text of your choice) link to CSS. …oops. Let’s add main too. Click SAVE! Now on your own, use placeholder text from www.blindtextgenerator.com to create your index.html page: HINT: Save your template.html using “Save As”.

* Background-color of body Practice for Chapter 3 (continued) Before we leave today, let’s get started with CSS by setting the following: * Background-color of body * Background-color of #wrapper - -Hint: use a light color such as: ivory, white, linen, azure, honeydew, snow, or #FAFAFA

CSS Comments /* comments */ And now to February 2… CSS Comments /* comments */ Suggestion: Put your color names or hex codes in comments for quick reference. We will continue adding styles based on the chapter. If we run out of time, you can use these 2 pages as synopses of what were covered: Page 85 is table that shows all of the new styles covered. Page 108 is a good sample CSS.