Thursday, May 31, 2012

Web Design - Font Relief

Adding More Fonts to your web pages

You can never have enough fonts! --Anon

There are several ways to add more fonts to your web page...One is to use a font you already have, and hope that the "client"  visiting your web page also has that same font. Another is to use Fonts that are in the public domain and are "free" to use on your web page.  Yet another alternative is to use "free" fonts or purchase them from a font foundry for web use.

Common Fonts

1. Code Style did a Windows-Mac-Linux font survey and lists the most common fonts across those platforms.

This web page at Code Style lists the most Common Fonts. If you visit the web site you'll find they list "common" font stacks to use for your web pages.

Copy the font stacks into your snippet library for later use...

Now all you have to do is hope your client has the fonts listed in your font stack on their computer.

font-family: Zapf Chancery, Brush Script MT, cursive; 

Public Domain - Free Fonts

2. The best place to start is with Google's Font Directory

In 2010 when Google first started this project they only listed 23 fonts… They now list 501 font-families! Google provides you with the Markup that you'll need to snip and paste to embed into your web pages.  Google is working with Type Kit to make some of the fonts available.

You don't get to "download" the fonts... Instead  you paste a script (the embedded markup) that goes out and gets the font from Googles servers so that your client's browser can display 'em...

 

Screen shot 2010-10-18 at 12.13.09 AM.jpg

 

Professional Fonts

2. Buy the fonts from a font foundry.  TypeKit offers a service that links you up with font foundries and the fonts of course...

TypeKit also offers "free" fonts for your use... You can use the Free service to try it out...

You'll have to sign up for an account, but the result may be "Font Relief!"

 

Screen shot 2010-10-18 at 12.35.01 AM.jpg

 

 

 

Mystery of the Dead Banner

Yah, it was one of those days, no it wasn't dark, dreary and stormy. Not a chance, it was time for Web Class and out side it was even partially sunny with a slight evening breeze.

We we're learning how to divide, section, slice-up  --layout a web page. Instead of using the old xhtml style of using well named div's we were implementing features from the new kid on the block, html5.

In html5 it's a really good idea to contain or wrap ALL the sections of the layout with a <div> element. This changes the relationship of the pages sections from being related directly to the <body> of the page. The sections will now be the "child" of the containing wrapper <div>. That way we can move the entire layout by simply centering the wrapper div, or making the entire layout fluid so it always fills the page 100% no matter the size of the browser window.

So, to begin, our markup looked like this… We gave the wrapper a specific size and background color so we could actually see it on the page… we also decided the layout would be fixed and centered in the browser's screen.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>A Very Basic HTML5 Web Page</title>
<style type="text/css" media="screen">
html, body, div, header, footer, aside, nav, article, section, { margin: 0; padding: 0; }
header, footer, aside, nav, article, section { display: block; }

#wrapper {width: 960px;
height: 768px;
background-color: #ddd;
margin: 0 auto;
banner {width: 960px;
height: 160px;
background-color: yellow; }

</style>
<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
</head>

<body>
<div id="wrapper">

</div> <!-- Comment:   closing div for the wrapper --> 

</body>

</html>

 But, you'll notice a very interesting declaration in the embedded styles 

header, footer, aside, nav, article, section { display: block; }

and, this where we found the dead banner!  Let me explain.

The first "thing" that appears on a web page, I like to call the "banner" in xhtml that's what I name the id for that part of the page, <div  id = "banner">!  

In html5 there are very specific, well defined names for dividing up a web page.  Google searched and analyzed 3 Billion web pages to find common id names for web page divisions, and later the html5 consortium searched and anaylsed 3 Million web pages… and, the common division names are: header, nav and footer.

Somewhere, a long time ago, in the mists of the past I had read that you could, if you wanted to, you could use any name for a division of an html5 web page and long as you declared it, and told the browsers to make it display like a block element… So as an <aside> (to me, anyway) using <banner> instead of <header>, is much less confusing, since in html5, headings and <head> also exist.

Even possibly more confusing is the fact that in html5 a <header> is defined to contain heading elements, namely <h1> and even <h2>, <h3>, etc., Also, if necessary, there can be more than one <header> on a single page! Maybe confusing for humans, not so for computers.

So, I went a head and added <banner> to the above declarations, and added some styles to the <banner> 

The page markup now looked like this… but when displayed in a browser, the <banner> was no where to be seen, not at all visible, it was dead….  Try it and see for yourself (just cut and paste)

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>A Very Basic HTML5 Web Page</title>
<style type="text/css" media="screen">
html, body, div, banner, header, footer, aside, nav, article, section, { margin: 0; padding: 0; }
banner, header, footer, aside, nav, article, section { display: block; }

#wrapper {width: 960px;
height: 768px;
background-color: #ddd;
margin: 0 auto;
banner {width: 960px;
height: 160px;
background-color: yellow; }

banner { width: 960px;
              height:150px;
back-ground-color: yellow;}

</style>
<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
</head>

<body>
<div id="wrapper">

<banner>

<h1>An h1 heading for our web page</h1>
<h2>A slug line for our banner</h2> 

</banner>

</div> <!-- Comment:   closing div for the wrapper --> 

</body>

</html>

As, you can see the <banner> , does not show up in a browser, it's gone, missing, it's dead!

In html5 the parts or divisions of the layout on a web page are well defined. Html5 uses a very precise language called semantics to describe the various parts of the layout.

Semantics, definition: the meaning, or an interpretation of the meaning of a word… 

One of the reasons for using well defined words is so that a computer (not humans?) can find a "section," an  "article" or the "header" on any web page easily and quickly…

The well defined words for html5 layout are:  header, footer, aside, nav, article, section

In our markup above, if you replace <banner> with <header> The header for our web page will display in all browsers just fine.

It was Sematics that killed the <banner>!
Using html5's well defined words, well,  puts us all on the same page...

To learn more about the sematics for header, footer, aside, nav, article, and section read this document. (It's also on your class disk.)

There are many articles written about the html5 semantics, just do a Google search using the phrase
html5 semantics

Today the sun is shinning on our web pages, even though it's raining outside, again, in dreary Vancouver, WA

Friday, May 25, 2012

Web Class --The Layout Jumpstart

The easiest and best way to setup a website is with well designed layout, a wireframe that let's you plug-in YOUR content whether you are editing with an html editor or a WYSIWYG web editor.
Preview
Preview
The Free Coffee Cup Html Editor offers some free html5 layouts. They are the best I have found to date and, there is no reason why you can't use those layouts in other editors...

Remember, one of our criteria is that our web pages support html5...

You can open these in the Free Coffee Cup Editor with the menu item:
ThemeLayouts
File > New from Theme/Layout

You can use these html5 layouts in any web editor including Blue Griffon.

If the layout isn't what you want, perhaps you need to have your navigation/menus horizontal. You can use Blue Griffon to generate your layout...



Step one (Blue Griffon):


In Blue Griffon you should first set the following in preferences
Prefs styles
Menu:
Mac: Blue Griffon > Preferences
PC : Tools > Preferences




Step 2 Blue Griffon:

File > New wizard
First panel Choose xhtml5
Next panel (Continue to General document properties)
Fill out Title, Author, Description (what your web page is about  in a  paragraph) Key words (separated by a comma),  Language (American English), Characterset: Unicode (UTF-8) (continue to Colors and Background)
Leave alone (click Continue)
Document Background (Leave alone, Click Continue)
And here we are At Page Layouts
Page Layouts



















You'll need to experiment a bit to get what you want,
The results The set up at the left yields a page that looks like this...










There are other layout generators… (all on line wizards) These are the best… give them a try! You'll like one of them!

 Turns out Blue Griffon uses a simpler version of the YUI Development module (Yahoo User Interface) More control here!
A more robust layout generator can be had  at CSS Creator
And, here's another one called CSS Layout Generator
All of these will work in any web editor. Amazing what neat tools you can find on the internet!
Have fun filling in your content and building your home index web page!
Have a really nice long week end!

Thursday, May 24, 2012

Week 3 --Web Class

 


CLASS #3 Notes:
“People don't read web pages,
they scan them!" --anon

The Box Model! Div's and CSS and HTML5

Subjects

  1. The <a> </a> element
  2. The Box Model
  3. Div's
  4. CSS, some simple rules
  5. Layout

Tip of the Day
When you are going to insert a new element, or "widget" you are not familiar with, try it out first on a simple blank xhtml/html5 page.

This week

  • How to use the <div></div> element. The Box Model
  • CSS Styling Rules 

Resources

Links
http://uofgts.com/BasicWD/links.html 

The Box Model
http://uofgts.com/BasicWD/BoxModel.html

Basic CSS Rules
http://uofgts.com/BasicWD/CSSRules.html

How to add Color
http://uofgts.com/BasicWD/lesson02.html 

Some On-Line and desktop References for html and CSS

CSS at Sitepoint.com

HTML at Sitepoint.com

Sitepoint also offers a "plug-in called Code Burner, it's a quick interface that resides on your desktop or in your FireFox Browser. It is linked to the sitepoint on-line references for CSS and HTML. Check out Code Burner!

Graphically Challenged? Need a Logo?

The Cool Text web site will help you design a logo. The Cool Text Wizard

Homework
Install and try out Blue Griffon (a free WYSIWYG Web Editor)

Next e-mail/blog --- how to use Blue Griffon to layout a web page...

 

 

 

Friday, May 18, 2012

Web Class -- Week 2, Your Very First Web Page

Week 2 

CLASS #2 Notes:
“If you really want to know if your
Web site works, ask your next
door neighbor to try using it, while
you watch.
(You bring the beer.)”
http://www.sensible.com/

Content and xhtml

Subjects

  1. Adding Content to a basic Web Page
  2. xhtml - some rules
  3. (x)html elements - defined
  4. Formatting your content
  5. The <img /> element
    • Image editing
    • Inserting a graphic on a web page

Objective This week

  • --Adding Content and formatting content with xhtml
  • Working with images

Resources for this week -- The Links

The xhtml rules
http://uofgts.com/BasicWD/xhtml.html

Oh no, more rules! Things you need to know!
TYNTK

At the very least this week

Go through this xhtml tutorial...

The Building Blocks of a Web Page

You should be able to Format your content
Using the Web Editor of your Choice 

and the basic elements
start with this very Basic html5  Blank Page

(It's in your class Master website folder)

or you can get it here

http://uofgts.com/BasicWD/Basicxhtmlpage5.html

 After you have gone through the tutorial you can use one of these wire "frame" templates to insert your content...

html5-3col.html, html5-2colindex.html

In your class master web site folder there are a few others wire frames...

Play with Sumo Paint

SumoPaint If you know a little Photoshop, you'll know how to use this free on-line paint program.
Use it to add an image or graphic or logo to your content!

Here's a More detailed tutorial on how to insert an image on a page using <img>
Inserting Images

 

What we will look at next week...

Some vocabulary 

.php
- Personal Home Page is actually a server side scripting language
An xhtml element
is made up of an opening tag like <h1> and a closing tag </h1>.
Depreciation
- deprecation is applied to software features that are superseded and should be avoided. Deprecation may indicate that the feature will be removed in the future. Features are deprecated—rather than being removed.
http
- hyper text transfer protocol.
ftp
- file transfer protocol
XHTML
– The Extensible Hypertext Markup Language.
a markup language that has the same depth of expression as HTML but also conforms to XML syntax.
The intersection of HTML and XML a reformulation of HTML in XML.

 Got a question?  'holler… 

Thursday, May 17, 2012

Partial and Annular Solar Eclipse

Howdy

Here's the details  Data from  http://www.timeanddate.com/eclipse/in/usa/vancouver

Partial Solar Eclipse from Vancouver, WAEclipse


Partial eclipse begins May 20 at 5:04 PM 263° 35.4° above horizon
Maximum Eclipse May 20 at 6:21 PM 277° 22.1° above horizon
Partial Eclipse ends May 20 at 7:29 PM 288° 10.5° above horizon 
Times are local for Vancouver (PDT - Pacific Daylight Time).



Annular Solar Eclipse

Between Medford and Redding CA

Maximum for about 5 minutes in the center of the path
Time for Redding Annular
Maximum Eclipse May 20 at 6:29 PM 280° 19.7° above the horizon

 

Also Annular in Brookings, OR  to Eureka, CA

The Google Map is interactive and will give times (UT) for any location in the path

 Click the Map (it's pretty and neat!)

GoogleMap

 

 

 

Remember DO NOT LOOK DIRECTLY AT THE SUN!

Wednesday, May 09, 2012

Welcome to How To Build a Website!

Our Objective

  • To build a web site consisting of at least 3 web pages.
  • Acquire a domain name
  • Sign up with a HOST

How?

Discussion
Domain Names and registration
Signing up with a host

Domains and Hosts

What's the most important "THING" on a web page? What are the main parts of a web page?

Can you List them?

Write THEN CHECK OUT THIS LIST...

How do you put a web page together?

  1. The Content First
    • Create it with a text editor
    • Later we will mark it up with xhtml/html5 in your web editor
  2. The Layout
    • Will be Created with CSS3 in your web editor
  3. The Style
    • Will be Created with CSS3 in your web editor

Web Page Creation: The Preparation

You'll need 2 folders on YOUR flash drive and/or Home computer

  1. Make a "Master" website folder
      1. Name it with "Your name" something like "Garry-MasterWebsite"
        1. This folder only contains the files that makes your website work.
      2. And Make A "Webstuff" folder.
        1. This folder will contain the parts you collect to make your website...
          1. Things like, IDEAS, Text files, widgets, lists of links, graphics, pictures, videos... etc...

    Web browsers

    Here's a list that links you to web browser publishing sites Download all the browsers! Install them!

    The Web Editors

    If you already have a Web Editor, by all means, use it! The following is a link to a web page that discusses the various kinds of web editors and give you some choices. The goal here is to find a web editor that you like, and that will help you build your web site. The Web Editors

    Homework:  Write the most important part of your web pages

    The Content
    Always write the content first as plain text with no formatting.

    You'll find some ideas at this web page that will help you "layout" your web page. Lesson 1: Penciling it out!

     

    Most of all have fun! Get stuck, send an e-mail…

    Navigation Links

    • Week 1 (That's this page on my web site at the bottom of the page you'll see an RSS News feed that displays links to the last 5 articles on the class website blog)
    • Home   (Class Portal page)
    • Lesson 1 (Interesting stuff)
    • Domains and Hosts Resources 
    • Contact

    Vocabulary 

    URL
    ---Uniform Resource Locator
    HTML & CSS
    --- HTML, Hyper Text Markup Language, creates the content of a web page.
    --- CSS, Cascading Style Sheets, Creates the Styling for a web page.
    Provider
    --- Physically links your computer to the Internet.
    Host
    --- Provides the Computers (servers) to store and host your web site on the internet.
    Domain Name (Server) (DNS)
    --- makes a recognizable name for the actual numerical Internet address.
    Got a question? 'Holler!