Google Fonts Selective Formatting

Slides:



Advertisements
Similar presentations
Tables Feb. 14, Tables Great way to organize and display information Laid out in columns and rows Think of an excel spreadsheet Defined with tag.
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
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.
Introducing CSS CIS 133 mashup Javascript, jQuery and XML 1.
FORMATTING IN CONTEXT. FOLLOW UPS ANCHOR POINTS MUST BE UNIQUE  If you have more than one, how does it know where to go?  They can be repeated across.
CHAPTER 8 ADVANCED CSS. LEARNING OBJECTIVES Assign formatting styles to a CSS class definition Use a tag’s class attribute to apply the styles defined.
Cascading Style Sheets Basics. Why use Cascading Style Sheets? Allows you to set up a series of rules for all pages in a site. The series may be changed.
Today’s objectives  Element relations – tree structure  Pseudo classes  Pseudo elements.
Need to define two things: › The destination › Something to click on to get there  Tag is click here  Can be text, special character or image (next.
Chapter 8 Creating Style Sheets.
 Pseudo-elements  Centering  Tables  Classes and ids.
 CSS ids  Pages  Sites  HTML: class=“name”  Names may define format OR content › Either works  CAN apply multiple classes to the same tag  Multiple.
Creating A Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
 ult.htm ult.htm  This website illustrates the use of CCS (style sheets)
The Characteristics of CSS
11 HTML5 sharing St Bonaventure College & High School 31 May 2012.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
 Remember that HTML is just text  Need to point to pictures  Use the img tag  alt: › screen reader › REQUIRED for this class and to validate.
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
Introduction to Cascading Style-sheets (CSS) Basharat Mahm ood, Department of Computer Science, CIIT,Islamabad, Pakistan 1.
CLASSES REVIEW: HREF, CONTEXT, FILE STRUCTURE. BIG CAVEAT Never cut and paste from a Powerpoint slide Punctuation is not the same Note that the “ is curly.
CSS October 19. Review of CSS CSS was designed to separate the content of HTML pages from their appearance We are primarily dealing with external style.
ECA225 Applied Interactive Programming Cascading Style Sheets, pt 1 ECA 225 Applied Online Programming.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
Cascading Style Sheets Level 2. Course Objectives, Session 1 Level 1 Quick Review Chapter 8: Adding Graphics to Web Pages Chapter 9: Sprucing Up Your.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
Are You Smarter Than a 5 th Grader? 1,000,000 5th Grade HTML 5th Grade Syntax 4th Grade HTML 4th Grade Syntax 3rd Grade HTML 3rd Grade Syntax 2nd Grade.
 Look especially at › File Tips and Shortcuts › Student video.
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company.
Selective Formatting. Auto Grader Multiple selectors  May use the same formatting for two elements h1, h2 { font-family: cursive; }  Maintains consistency.
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
ECA 228 Internet/Intranet Design I Cascading Style Sheets.
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.
CSS.
HTML.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
Working with Cascading Style Sheets
>> Introduction to CSS
Cascading Style Sheets
Cascading Style Sheets
Display Property.
Cascading Style Sheets (Layout)
Intro to CSS CS 1150 Fall 2016.
Links. Links Links Need to define two things: The destination Something to click on to get there Tag is click here Can be text, special.
Cascading Style Sheets
COMP 101 Review.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
Intro to CSS CS 1150 Spring 2017.
CSS.
Laying out a website using CSS and HTML
Fixed Positioning.
Links.
CS134 Web Design & Development
Introduction to Cascading Style Sheets (CSS)
What are Cascading Stylesheets (CSS)?
Links.
Some Stuff You Need to Know
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.
HTML / CSS Mai Moustafa Senior Web Designer eSpace eSpace.
Web Design & Development
Session 3: Basic CSS Spring 2009
Multipage Sites.
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
Monday, Sept. 24 Today we are going to update the html code to html5. It has some new features that we have not covered yet.
Presentation transcript:

Google Fonts Selective Formatting

Google fonts

External CSS: Google fonts! google.com/fonts 2 steps Link to font (second style sheet!) Use name in CSS

Selective Formatting

Multiple selectors May use the same formatting for two elements h1, h2 { font-family: cursive; } Maintains consistency

Basic page design Header, includes h1 title Nav(igation) main for main body Footer Layout What do you want your website to look like? What are you putting on the site, and will you have enough space to do so? Simple Don’t overdue or overthink. Don’t add too many extraneous features. AKA. Don’t get carried away Header Contain title Navigation bars Search elements Important tidbits; not full on data or information – think of it like a thesis statement Next/back elements Body The meat of the webpage All the information and content Make it look nice and understandable Some next/back elements if necessary Footer Copyright information Location and address Contact information

Formatting by section Paragraph in each section may want to look different Smaller in header or footer Lists No bullets In a line Different spacing

Selecting one of several definitions for the same tag Name the context in the css by using a space header p { text-align: center; } footer p { text-align: right; Any div with the class of center can look like this.

Multiple selectors with context May use the same formatting for two elements h1, h2 { font-family: cursive; } When using context, need to repeat it header h1, main h2 {

Multiple Styles: Classes HTML: class=“name” Use names to imply content, not style Multiple ways to define Style that applies to only one element Style that applies to many elements

Class for one element Name the declaration set for a specific selector (tag) HTML: class=“name” CSS: tag.name div.intro{ text-align: center; } <div class=“intro”> </div> Any div with the class of center can look like this.

Class for many elements HTML: class=“name” CSS: .name Particularly useful for maintaining consistency .intro{ text-align: center; color: red; } <h1 class=“intro”>Header 1</h1> <h2 class=“intro”>Header 2</h2>

Using class and pseudo p.intro:first-letter { color: red; } a.highlight:hover { color: red; }

Nested Selector Only applies within context Avoids putting class= everywhere! Useful for formatting lists HTML: class=“name” only for encompassing CSS: tag.name tag ul.horizontal { list-style-type: none; } ul.horizontal li { display: inline;

Referencing Ids Or limit ids to location and classes to format id can also act as a class But notice that you can only use it once on any page Can repeat it on multiple pages To reference an id in CSS #idname instead of .classname All the same forms (one element, any element, context) Or limit ids to location and classes to format can have both

Inheritence Some times multiple formatting applies Formatting with no classes or scope Formatting with a class or scope When the second applies, BOTH APPLY Override Additive