Listen instead of read

Audio icon

Too tired to read carefully? Perhaps your computer will read the material to you. Use these instructions to test your computer’s reading abilities. Set up your computer to read to you.

If you are an auditory learner, or your eyes are tired, I recommend listening to the course materials and readings to help improve information retention. Set up your computer now so you can listen to instructions and listen to your web pages to check for errors.

Chrome | Macintosh | Windows

Chrome Browser (highly recommended)

  1. Click the Navicon menu navicon icon and choose More Tools, then choose Extensions from the popup list and scroll to the bottom of the list of extensions to click on Get More Extensions in Chrome Browser..
  2. Search for SpeakIt! and/or TuneIn and/or Select and Speak. Add both.
  3. To listen to any paragraph, select it then click the sound Speak It or brain Tune In icon that was just installed on the Chrome Toolbar (to the right of the address bar). If you prefer one extension over the other, delete the other.
  4. Click the icon again to adjust settings. You might want to speed up or slow down the text.

Macintosh

Choose this option only if you don’t like Chrome’s extensions.

  1. Set up Preferences for Speech to use a keystroke of your choice.
    Mac Text to Speech dialog box
  2. From the Apple menu, choose System Preferences.
  3. Click the Speech icon then the Text to Speech button. Choose a Voice and Speed.
  4. Install Samantha if you want the reader to sound like Siri.
  5. Click the Set Key button and choose a keystroke you can remember.
  6. From any document or web site, select text you want read, and click your new keystroke.

Windows

Choose this option only if you don’t like Chrome’s extensions.

  1. Follow instructions for set up and use of Speech/Text-to-Speech and the Narrator controls:
    Windows XP and Vista, Windows 8, or Windows 7
  2. To read an entire window, click the window and then press CTRL+SHIFT+SPACEBAR. To silence the speech, press CTRL.

Or download the Natural Readers program; it may work better.

Add Tool Tips with data-title

Using the data-title rather than title attribute, we can display the value in popups.

To accomplish this, we’ll add a data-title attribute to the existing email icon and style it to be noticeable.

  1. In the /index.php/ file, add a span tag around an email icon and write a note in the data-title attribute, like this:
    1
    2
    3
    <span data-title="Please use the form below so that...">
       <i class="material-icons">email</i>
    </span>

    Finish the message so it makes a complete sentence and is useful to visitors.

    The span tag should be placed inside a paragraph tag inside the existing address tag, like this:

    1
    2
    3
    4
    5
    6
    7
    8
    <address>
    ...
    <p>
        <span data-title="...">
            <i class="material-icons">email</i>
        </span>
    </p>
    </address>
  2. In the /main.css/ file, design the popup message to be obvious and inviting. Use the Almanac at CSS Tricks to learn more about these property/value pairs: border radius, box shadow, content, text alignment, font families, and positioning.
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    /* title attribute tool tip */
    span[data-title]:hover {
        position:relative;
        cursor:help;
    }
    span[data-title]:hover:after {
      background-color: white;
      border-radius: 50%;  
      box-shadow: 0px 0px 20px lightgray;  
      color: darkgray;  
      content: attr(data-title);
      left: 0;
      padding:2%;
      position: absolute;
      text-align:center;
      top: 50%;
      z-index: 100;  
      font-family:verdana, sans-serif;
      width:200px;  
    }

    Note that the title attribute will provide a popup message as well as the data-title. However, we are only able to restyle the latter without the default message also popping up. We don’t want two messages at the same time.

Review Peer Sites

Dr. Maryellen Weimer, Professor of Teaching and Learning, Penn State Berks, notes in a 2012 issue of Faculty Focus that,

“Most professionals are expected to offer feedback and otherwise evaluate the work of peers. It’s a complicated skill that requires no small amount of interpersonal finesse.”

Dr. Maryellen Weimer

Since this finesse takes practice and your site needs testing (remember the design process), you and your classmates will spend this week reviewing and writing about each others’ sites.

The peer review earns 10 points if the scoring is accurate and the written review is helpful and well written.

  1. In Canvas, submit links to your site in the Final Peer Review forum.
    • Title your thread with the name of your site.
    • Paste the addresses of your home, form, audio/video, image gallery, typography, and table into the message box.
  2. Score and write reviews for two people’s sites from the Peer Review forum.
    1. Open, select the text of, and copy from the appropriate list below.
    2. In Canvas, Reply to a thread with a topic you want to review.
      • For the first one, review a site that has not already be reviewed.
      • For the second review, you may choose a site that has already been reviewed.
      • If no un-reviewed threads exist, then review any of the author’s demonstration sites
    3. Paste the list into the editing block. Confirm that your text is legible without scrolling sideways. Illegible threads will not be scored.
    4. Score each item on the list:
      • 0 = criterion not met.
      • scale of 1 to 9= criterion partially met.
      • 10 = criterion met.
      • Each extra credit component earns up to 10 points as well.
  3. Write 400 or more words:
    • Write in complete sentences using proper grammar and spelling, covering these aspects:
      • Graphic design and user interface.
      • Usability of the interface and content components.
      • Value/worth/usefulness of the content.
    • Refer back to the best practices noted in each Chapter.

Chat with the instructor in Canvas

Reply to this lesson's thread in this chapter's forum.

[chat id=”peerreview”]

Add a Social Media Icon Font

PurposeExamplesMarkStyleFunctionTestResourcesScoringQuiz

Purpose

Sharing Experiences

Share icon
To build credibility as well as connect with all types of visitors, it is common to provide ‘sharing’ links. Sharing links allow visitors to share your content in their social media accounts by clicking on a functional icon. These ability to quickly share your content in visitors’ sites can streamline marketing of news, services, and products to others, allowing them to get to know you and your company better and exponentially share that information with more people.

It is common to provide links to your social media accounts in your website, but in this lesson, you’ll be adding links that allow others to share your content in their accounts. We’ll use dynamic hyperlinks along with a custom font icon to improve the sharing experience.

In this lesson, we’ll use fonts already hosted elsewhere.

Examples

Media Icon Display

Mark

1. Choose a set of sharing icons.

IcoMoon provides a free set of icons which include the most common social media and blogging formats. The icons are simple yet sophisticated and can be modified to match your site’s future design.

  1. Navigate to IcoMoon online application.
    IcoMoon Application logo
  2. At the top, click on the Settings → Manage Project menu. Rename your project ‘sharing’.
    Manage project for Icomoon
  3. Click Load to see the icon choices.
  4. The free fonts are usually at the top. If not, scroll to find the ‘Icomoon – Free’ set.
  5. Click on each social media icon that represents each of the accounts you want listed in your résumé. Remember to choose icons the represent social media sites where you are hoping others will share your résumé …not sites you belong to!
  6. Click the Generate Font menu at the bottom right.
  7. Click Download to save the font .zip archive file to your hard drive.

2. Serve the fonts from your server.

Just in case Icomoon changes their files or goes out of business, it is a good idea to host the font files on your server.

  1. Unzip the archive file so that the files are extracted.
  2. Take a look at the contents of the unzipped folder. Notice the demo page, json page, the stylesheet, and the folder hold font files. The most common web font file formats, which are included in this folder, are
    • TrueType Font (TTF)
    • Embedded OpenType (EOT)
    • Scalable vector graphics (SVG)
    • Web Open Font Format (WOFF).

    Learn about their differences at W3 Schools.

  3. Change the name of the styles.css file to icons.css.
  4. Right-click on the /about/ folder in the Editor and upload the /fonts/ folder. Right-click on the /about/ folder again and upload the icons.css file.
  5. Once you upload the /fonts/ folder, your /about/ directory should look like this:
    About directory
  6. In the index.php file, add another link tag to the head area, just under the previous link tags, like this:
    1
    <link href="icons.css" type="text/css" rel="stylesheet"><!-- icomoon -->

    Add a comment after it to remind you where the icons came from.

3. Markup icons.

In the index.php just above the ending </section> tag, add a new nav tag with an identifier called ‘sharing’. Then add an icon tag with Google Materials ‘share’ icon. Add icon tags for each social media icon you’ll be using and surround each with an anchor tag, like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
<nav id="share">
  <i class="material-icons">share</i>

  <a href="">
    <i class="icon-google-plus2"></i>
  </a>
 
  <a href="">
    <i class="icon-facebook"></i>
  </a>
 
  ...etc.
</nav>

Each class name starts with icon-. Use the names provided by Icomoon’s app to change the class names in your list of anchors.

Style

Because we are embedding icons as fonts, we can change their color and size like we could text. Since the nav a made earlier already has style changes, all other nav blocks will inherit those styles. So that we can customize the nav block identified as ‘share’ we’ll place the id name next to an anchor to be more specific.

In your main.css file just under the other nav a declarations:

  1. Change the display from block to inline and the background color to transparent, so that the share items are less obtrusive than the main items, like this:
    1
    2
    3
    4
    #share a {
        display:inline;
        background-color:transparent;
    }
  2. Change the default hover style so it is consistent with the navigation block’s style, like this:
    1
    2
    3
    #share a:hover {
        background-color:darkgray;
    }

Function

Remember, you choose icons that represent social media sites where you are hoping others will share your résumé …not sites you belong to!

Add dynamic links to existing icons.

URLs can include scripts which invoke action when linking.

  1. In each href for the share icons, add a dynamic reference and blank target and update the ONID username, like this:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    <!-- Facebook -->
    <a href="http://www.facebook.com/sharer.php?u=http://oregonstate.edu/~ONIDuserName/about/" target="_blank">
         
    <!-- Twitter -->
    <a href="http://twitter.com/share?url=http://oregonstate.edu/~ONIDuserName/about/&text=FIRST and LAST NAME&hashtags=resume" target="_blank">

    <!-- Twitter Alternative -->
    <a class="" href="" data-text="" data-url="" data-hashtags="" data-via="" data-related="">MESSAGE</a>
         
    <!-- Google+ -->
    <a href="https://plus.google.com/share?url=http://oregonstate.edu/~ONIDuserName/about/" target="_blank">
         
    <!-- LinkedIn -->
    <a href="http://www.linkedin.com/shareArticle?mini=true&url=http://oregonstate.edu/~ONIDuserName/about/" target="_blank">
         
    <!-- Pinterest -->
    <a href="javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());">
    or 
    <a href="https://pinterest.com/pin/create/bookmarklet/?media=[post-img]&url=[http://oregonstate.edu/~ONIDuserName/about/]&is_video=[is_video]&description=[post-title]">

    <!-- Instragram -->
    <a href="http://instagram.com" target="_blank">
  2. If you need other dynamic links, look at List of all Social Sharing URLs for Handy Reference – Social Media Sharing Buttons Without JavaScript
  3. Optional: Add a YouTube Subscribe button.

Test

1. View the page

  1. Refresh the window and check to see if the icons have these characteristics:
    • Each is displaying
    • Black rather than default color
    • Hover color change
    • No underline
    • Space between each icon
    • Clicks/touches take you to new site with sharing details.
  2.  Spellcheck the document using Language ToolLanguage Tool (TL). Control-A or Command-A to select the text then click the TL icon from the browser toolbar.
  3. Select and Speak extension for ChromeListen to the page to find and correct grammatical errors.
  4. Chat with the instructor if you need other solutions.

2. Check the files for syntax errors.

 W3.org markup and style validation service
Copy your website URL,
then click this icon to validate.

Use W3.org's Unified Validator to find and fix hidden errors in the HTML, PHP, and CSS documents of your site. Chat with the instructor if you need help.

  1. HTML validation exceptions allowed:
    • The link tag to Google Fonts related to the vertical bar |.
    • Empty img tags (until Chapter 6).
    • Table tablesort attribute.
    • Iframe frameborder, allow, and gesture attributes.
    • Meta for X-UA-Compatible.
  2. CSS validation exceptions allowed:
    • :required pseudo class.
    • Properties and values related to the .gradient class.
    • Clip Path properties related to .shape class.
    • Slideshow animation properties related to .slidebox classes.
    • Drop shadow properties related to .drop-shadow classes.

Did you see the error related to ampersands & ?. Go back to the list of social media links and change the & in each href’s URL to & a m p ; with no spaces. Linked in has one. Instead of =true&url make it =true&amp;url.

Resources

Scoring

This lesson will be scored using the following criteria:

  1. Five or more sharing icons are listed horizontally in the footer.
  2. Share icons have revised hover colors.
  3. Padding has been added to each icon.
  4. Icon anchor hreferences open in new tabs.
  5. Each share icon references a sharing script.
  6. Optional: Share icons have corporate colors applied with hexadecimal code.
  7. Markup validates for HTML5, with exceptions.
  8. Stylesheet(s) validates for CSS3, with exceptions.
  9. Text is written with proper spelling and grammar.

Hosting web font files

Start

Congratulations - you have completed Hosting web font files.

You scored %%SCORE%% out of %%TOTAL%%.

Your performance has been rated as %%RATING%%


Your answers are highlighted below.
Return
Shaded items are complete.
12End
Return

Connect Filezilla to ONID

Download FileZilla
Download FileZilla

Use FileZilla to connect to web servers, backup files, update file permissions, and upload/download when you use a text Editor that doesn’t include FTP capability. Download the application, then connect using the SFTP shell address, your username and password, and port 22.

FileZilla Quick Connection menu

  1. For the Host field, type the secure shell (SSH) address for Secure File Transfer Protocol (SFTP) that represents the ONID server:
    1
    shell.onid.oregonstate.edu
  2. For the Username field, type your ONID user name.
  3. For the Password field, type your ONID password.
  4. For the Port field, type 22.
  5. Click QuickConnect to connect to your web server.
  6. When connected, the web server files will show on the right window, which is called the Remote window.
    • Click into the public_html folder to view the contents of your web server.
    • All files for this class will be transfered into this folder.
  7. In the left window, click into your hard drive’s file structure to a folder that includes web files for this class.
  8. If you have no web files yet, then make a folder on the hard drive to save your files to.

Setup Dreamweaver


Define a Site with Secure FTP to help manage editing and uploading

  1. Launch Dreamweaver and navigate to SiteNew Site… or SiteManage Sites… or on the Files window, click on the Manage Sites button.
    • In the Site Setup screen:
      • Name the site (this is a name that will show up in your list of sites). OSU Students name it ONID.
      • In the Local Site Folder field, choose (or make) a folder on you local hard drive that will be for your site. DO NOT choose a folder on a server; Dreamweaver doesn’t like it.
      • Dreamweaver CS 5 site set up screen
    • In the Servers menu:
      • Click the + box to get to the FTP screen.
      • Name the server (for OSU students this would be ONID or ENGR).
      • Choose SFTP from the dropdown menu.
      • Add the FTP address, which is the server’s domain; something like:
        • shell.onid.oregonstate.edu
      • Add your web hosting account User ID and Password.
      • Add the Root Directory name, which is usually something like:
        • public_html (OSU students use this one.)
        • http-docs/www/
      • Dreamweaver server setup screen
      • Dreamweaver SFTP set up
  2. Once you’ve set up this FTP information, you don’t have to do it again.
    • Any files you add to your local site will be ready to upload to the remote site via the Put buttons.
    • To make uploading to the server very easy, set up your working area so the remote (server) and local (hard drive) file lists are always visible:
      • ViewFiles.
      • Click the Expand to show local and remote sites button Dreamweaver Expand Files icon.
      • Dreamweaver File view
    • Now, you’ll be able to drag and drop files from the hard drive (the LOCAL file list) to the server (the REMOTE file list) and confirm that your file structure is the same on both.
    • You can also use the Put and Get buttons to transfer files from the hard drive and server.
      • Get files from the server or Put files on the server.
    • And, I highly recommend clicking Control/CommandS then Control/CommandShiftU to save and upload using the keyboard. This will reduce stress on your mousing/tracking hand.
  3. Making and editing files
    • Right click on the root folder to make a new folder.
    • Right-click on a folder to make a new file within that new folder.
    • Edit code in the Code screen, not in the Design screen.
  4. Back up.
    • Think of the local site files on the hard drive as your working copy and the remote files on the web server as your backup.
    • But you must (you must) back up your files to another disk each session you work. Why? If you haven’t lost important files yet in your life, you will some day. You have been warned. 😉

Add a Wallpaper Background Image

PurposeExamplesOptimizeStyleFunctionTestResourcesScoringQuiz

Purpose

Current trends for the body’s background vary from one solid color to large photographs with many options in between. A common option is to introduce a simple and subtle texture, called a seamless background or wallpaper. By default, the background property repeats, creating a wallpaper with a single graphic file. The resulting pattern can overpower the important elements of the overall page design. The background’s image should not obstruct the text or complete too heavily with other images on the page, so that visitors will know where to start reading or interacting.

Learning to adjust the original graphic file to enhance the site without overpowering it takes practice. In addition, this background graphic should not take any time to load, so the file size must remain low. Choosing the best file format for the job will depend on the number of colors in and size of the image. If the image has a lot of variations of color, then a JPG file might be best. If the file uses just a few flat colors, then PNG and GIF are good choices. PNG files will allow variations of background-color to show through if transparency is used.

Examples of seamless background wallpaper graphics

A variety of GIF, PNG, and JPG files have been used to render wallpapers in various sites. Click on each image to see how it looks when paired with other site elements:



Optimize

In this lesson you will create a small, subtle graphic, save it in the appropriate file format, and repeat it in the background of the body tag.

1. Start with what you created already.

This technique uses your existing background photo.

  1. Open the original photo file or your finished banner background file.
  2. Remove any layers that do not relate to the wallpaper you want to make.
  3. Save the file as a new document called wallpaper.
  4. Choose an interesting part of the photo by selecting it with the Crop tool. Enter
  5. Use the Magic Wand to select the negative space around the foreground item. Delete.
  6. Add other items or duplicates of your original shapes to finish the middle of the design. Stay away from the edges.
  7. File→Save the file as .PXD (or .PSD) so you can edit again later.
  8. Turn off the white background layer if there is one.
  9. File→Save as .PNG for the web site. (Photoshop: use the File→Save for the Web menu)
    • Reduce size as needed.
    • Choose .png for true transparancy and a file size lower than 30k.
      • Watch the file size; it may be too big to meet your requirements. If so, use TinyPNG to reduce its size. If it is still too big, then redude the complexity and dimensions of the imagery.
  10. Remember, that all background patterns need to be subtle, not loud.

Variation

To create different spacing for the repetition, use 3D Dojo‘s Photoshop technique.

  1. Create a new document with square dimensions in RGB color mode and 72 pixels per inch (ppi) with a white background.
  2. Add shapes to your layout but do not allow them to touch the edge of the canvas.
  3. Select all layers but the background color (white).
    • Duplicate the group.
    • While the group is selected, choose Filter→Other→Offset from the menu.
      • Slide the horizontal and vertical offsets to meet your needs (I chose the median of my canvas width).
      • Click Wrap Around from the check box list.
      • Click OK.
  4. Add other items or duplicates of your original shapes to finish the middle of the design. Stay away from the edges.
  5. File→Save the file as .psd so you can edit again later.
  6. Turn off the white background layer.
  7. File→Save as .PNG for the web site. (Photoshop: use the File→Save for the Web menu)
    • Reduce size as needed.
    • Choose .png for true transparancy and a file size lower than 30k.
      • Watch the file size; it may be too big to meet your requirements. If so, use TinyPNG to reduce its size. If it is still too big, then redude the complexity and dimensions of the imagery.

2. Save and improve the file size

Once you have the file on your hard drive, look at the file size. If it is larger than 30k, then use TinyPNG to reduce it. Compare the resulting file size to confirm it is small enough. If not, then go back to your working file and either change the image size, reduce colors, reduce shadows, and reduce other embellishments, if any.

Upload the optimized file to the /img/ directory.

Style

3. Add the image to the stylesheet.

Call the image from the style sheet in the @media query’s body {} block: (There is no need to provide a decorative background image for smaller screens.)

1
2
3
4
body {
    background-image:url(../img/filename.png);
    background-repeat:; /*Optional; consider repeating just x or y; the default is both. */
    }

Feel free to use the short cut version of the background tag.

Note that repeat"> does not belong in the styles above; remove it; the web application has a glitch in the code.

The ../ in front of /img/ helps the style sheet find the image file inside the images folder which is outside the /css/ folder.

4. Adjust the forground blocks to improve readability.

The wallpaper file is not appropriate for the background of blocks that will contain a lot of text. We want to read your content with ease. If you don’t have color (or enough opacity) in the <nav> and <section> blocks to allow text to be read on top of the new wallpaper file, add some to these elements in the Authoring area:

1
2
3
section {background-color:;}
nav {background-color:;}
footer {background-color:;}

Function

5. Extra Credit

  1. Use the Randomize background images.
  2. Create a background pattern with CSS background-blend mode. Add this background to a block other than the body (or put your wallpaper image in another block and use the blend in the body).

6. Save and upload to the server.

Test

1. View the page.

  • Shift- Refresh the window and look at your page.
  • and look for and fix missing graphics, overlapping graphics, illegible text, misaligned columns, etc. Review the markup and style declarations to see what you missed. Ask questions if you need solutions.

    2. Check the files for syntax errors.

     W3.org markup and style validation service
    Copy your website URL,
    then click this icon to validate.

    Use W3.org's Unified Validator to find and fix hidden errors in the HTML, PHP, and CSS documents of your site. Chat with the instructor if you need help.

    1. HTML validation exceptions allowed:
      • The link tag to Google Fonts related to the vertical bar |.
      • Empty img tags (until Chapter 6).
      • Table tablesort attribute.
      • Iframe frameborder, allow, and gesture attributes.
      • Meta for X-UA-Compatible.
    2. CSS validation exceptions allowed:
      • :required pseudo class.
      • Properties and values related to the .gradient class.
      • Clip Path properties related to .shape class.
      • Slideshow animation properties related to .slidebox classes.
      • Drop shadow properties related to .drop-shadow classes.

    Resources

    Other resources

    These pattern making tools are not for use in this class! However, they are fun and handy and sometimes make lovely backgrounds.

    1. Pattern Cooler
    2. BG Maker
    3. Tartan Maker
    4. Stripe Mania
    5. Stripe Generator
    6. Color Lovours
    7. BG Patterns
    8. Site Origin

    Some online generators require you save a screenshot of the design. Some will download it to your hard drive. And some require it be emailed to you (use caution).

    Scoring

    This lesson will be scored by the following criteria:

    Quiz

    Chat with the instructor in Canvas

    Reply to this lesson's thread in this chapter's forum.

    [quick-chat room=”wallpaper” guests_visible=”1″ send_button=”1″]

    Add a Header Background Photo

    PurposeExamplesOptimizeStyleFunctionTestResourcesScoringQuiz

    Purpose

    A common design trend is to display a large photo, slideshow, or movie in the most prominent location on the web page: the header block (banner). The logo, slogan/tagline/description, and navigation must work together with the photo to ensure readability and entice visitors to continue using the site. Other current design trends for touch devices use large images behind text and blocks of graphics with text. Read more about design trends at 99 Designs (2014).

    Recall that JPG files are primarily used for photographic images. They compress down to small file sizes, though too much compression reduces image quality. JPG files always remain rectangular and do not retain transparent shadows or biomorphic edges. Any background color behind a photo will automatically become white unless another color, pattern or layer is layered behind it.

    Examples

    Example JPG photos behind transparent PNG logos in header blocks

    Some images are more than 50k and some are split into more than one file to provide flexibility. Click on a banner to view the website. Use Inspect Element to view the markup, styles, and background file.
    HVCC banner with logo and menus
    Caracolores banner
    SP Newsprint banner with logos and menus
    Sports Prototype banner
    Active Minds Prototype banner
    Oregon Berry Festival banner
    Pam Van Londen Creating Every Day banner

    Optimize

    In this lesson, you’ll find a large image, crop it to fit the <header>, optimize it to fit, then place it under the logo in the stylesheet.

    The required optimized file size is low (50k) so that you are forced to use JPG compression, which helps keep your site loading quickly. To accomplish the right balance between design and file size, you may need to crop, add color- and texture-reducing filters, and overcompress. These skills require practice, so experiment until you get something that not only meets requirements, but that provides harmony with simple design.

    1. Choose a photo.

    1. Find a copyright-free photo, scan a flat object, or paint electronically and save the file at a high resolution of 300dpi.

    2. Manipulate the image.

    1. Open the file in Pixlr or Photoshop (note that Illustrator is not a good choice for photo manipulation).
    2. Use the Crop toolCrop tool and or ImageImage Size menu to reduce the image to fit the maximum width of the <header> block (which may be the same as the <div id="container"> block).
    3. Crop the image again to fit the most appropriate height for the <header> block. It should not be so tall that you cannot see the top of the <section> which contains the first paragraph. If you are unsure what looks good, try a height of 300px first.

    3. Save the file.

    1. SaveJPG. Slide the compression range so that the resulting file size is below 50k.
    2. Save the image as JPG in the /img/ directory.
    3. If the file you want to use does not optimize to 50k or below, then save the JPG at between 8 and 10 on the compression scale. Then use Online Converter to save it in .WebP format. Note that not all browsers will render this format.

    Style

    4. Add the image to the stylesheet.

    1. Find the @media query section of the main stylesheet.
    2. Use a variety of background properties to locate, repeat, and position the photo:
      1
      2
      3
      4
      5
      background-image:url(../img/filename.webp);  
      background-image:url(../img/filename.jpg);  /* fallback if browser won't render WebP */
      background-repeat:;    /* optional */
      background-position:;  /* optional */
      background-size:;      /* optional */

      Feel free to use the short cut version of the background tag.

    Note that repeat"> does not belong in the styles above; remove it; the web application has a glitch in the code.

    The ../ in front of /img/ helps the stylesheet find the image file inside the /img/ folder which is outside the /css/ folder.

    Extra Credit: Gradations and background images

    Follow this tutorial to include photos and gradations together in the same block.

    5. Adjust the logo to improve readability.

  • If the logo sits on a part of the background that reduces its visibility and readability, then adjust the positioning, margin, padding, or text-alignment to achieve the best result.
    1
    2
    3
    4
    5
    6
    7
    header a img {
        margin:;
        padding:;
        position:relative;
           top:;
           left:;
    }

    6. Save and upload to the server.

  • Function

    1. 1
       

    Test

    1. View the page.

  • Shift- Refresh the window and look at your page.
  • and look for and fix missing graphics, overlapping graphics, illegible text, misaligned columns, etc. Review the markup and style declarations to see what you missed. Ask questions if you need solutions.


    2. Check the files for syntax errors.

     W3.org markup and style validation service
    Copy your website URL,
    then click this icon to validate.

    Use W3.org's Unified Validator to find and fix hidden errors in the HTML, PHP, and CSS documents of your site. Chat with the instructor if you need help.

    1. HTML validation exceptions allowed:
      • The link tag to Google Fonts related to the vertical bar |.
      • Empty img tags (until Chapter 6).
      • Table tablesort attribute.
      • Iframe frameborder, allow, and gesture attributes.
      • Meta for X-UA-Compatible.
    2. CSS validation exceptions allowed:
      • :required pseudo class.
      • Properties and values related to the .gradient class.
      • Clip Path properties related to .shape class.
      • Slideshow animation properties related to .slidebox classes.
      • Drop shadow properties related to .drop-shadow classes.

    Resources

    Scoring

    This lesson will be scored by the following criteria:

    Quiz

    Chat with the instructor in Canvas

    Reply to this lesson's thread in this chapter's forum.

    [quick-chat room=”bannerphoto” guests_visible=”1″ send_button=”1″]

    Setup ShiftEdit


    Connect ShiftEdit to your ONID account. © 2016 Kim Kaaz.
    When logged out of ShiftEdit, log back into your OSU and Google accounts before logging into ShiftEit. © 2016 Kim Kaaz.

    Installation

    This course’s tool of choice is ShiftEdit, a text-editing and file management application that runs right in the Chrome browser. It provides editing in most computer programming languages, secure connections to web servers, and .zip file backup.

    ShiftEdit is free for one web account, which will be your ONID or ENGR web account. If you want to set up more hosting servers, then you may purchase the premium application. ShiftEdit will allow you to work on files remotely on your server then back them up to your hard drive using Secure File Transfer Protocol (SFTP). ShiftEdit provides editing of various programming languages, which for the purposes of this course, is HTML5, CSS, JavaScript, and PHP.

    In a previous lesson, you were instructed to launch ShiftEdit from the Chrome browser.
    ShiftEdit logo

    1. Click the Get Started button.
    2. Click the G (Google) button to login with your OSU ONID/Google Account.

    If you already own Dreamweaver on the computer you’ll use for class, then don’t install ShiftEdit; you won’t need it. Instead, set up Dreamweaver.

    Connect

    With Chrome and ShiftEdit open, set up a connection to yourpublic_html web server folder:

    1. On the left sidebar menus, click on the Site ShiftEdit's Site menumenu.
    2. Choose New Site...
    3. On the Site Settings screen, type the correct values:
      • ShiftEdit new site settings for OSU ONID server
      • Name: ONID
      • Server Type: SFTP.
      • Host: shell.onid.oregonstate.edu
      • Username: Your ONID user name.
      • Password: Your ONID password.
      • Path: Type the remote directory path for /u1/ (some students may need to use /u2/) but replace the /*/ with the first initial of your last name and /**/ to your ONID user name:
        • /users/u1/*/**/public_html/
        • /users/u2/*/**/public_html/
      • Web URL: http://people.oregonstate.edu/~**
      • Click the Turbo Mode button to improve connection speed.
      • Click the Save button.
    4. Backup. ShiftEdit lets us create folders and files directly on our ONID servers and transfer (copy/backup) to our local hard drives for safe keeping (by downloading a .zip archive). If you are using Dreamweaver, then you’ll create files on the local hard drive first then transfer/copy them to the server. Always maintain two copies…one on the server and at least one on the hard drive.
    5. Set up Screens so that you have room to edit and view your live page without flipping to another screen.
      shiftedit-browser

    Chat with the instructor in Canvas

    Reply to this lesson's thread in this chapter's forum.

    [quick-chat room=”shiftedit” guests_visible=”1″ send_button=”1″]

    Add an Aside

    PurposeExamplesMarkStyleFunctionTestResourcesScoringQuiz

    Purpose

    Content asides provide additional note-worthy information for visitors, along side the main content.

    Asides need special placement in the HTML markup as well as two properties. Aside tags must be above the paragraphs they need to sit beside. And their style needs to declare float and width:

    • float:left or right, so it will sit beside the main text.
    • width, so the block has some dimensions.

    In addition, it is customary to design them to stand out by using these properties:

    • padding, to keep text from touching the border or edge.
    • border, to help keep the block visually separate from the main content.
    • margin, to keep the border from touching the main content.

    Embellishments can be added to help the aside stand out and match the theme:

    • Shapes (such as circles, leaves, stars, bursts) made with CSS 3.
    • Background color and images
    • Transforms (such as rotate and skew)
    • Border radius (rounded corners)
    • Box shadow

    Deliverable → Design and use an Aside.

    1. Choose a page of your site for the aside.

    Beginning course: open one of your site’s index.php pages (or other subtopic page).

    Intermediate course: open the /typography/index.php page.

    2. Write some content.

    Beginning If you already have a <p> paragraph sitting between the two PHP include statements, then add more content totaling about 400 words. This content needs to be related to the topic and be written in proper English.

    Intermediate For the Intermediate class, the topic is web authoring (write about what you have learned so far related to graphic design and typography for the web). Write at least 400 words and include at least one list.

  • Save and Upload.
  • 3. Add two Asides.

    1. Just above the first <p>, but below the first PHP include statement, add an <aside class="alignright">.
    2. Between the opening <aside class="alignright"> and closing </aside> tags, add more text, a quotation and <cite>citation, OR a <figure><img /> with <figcaption>:
      1
      2
      3
      4
      5
      6
      7
      8
      <aside class="alignright">
          <h3>Headline...</h3>
          <figure>
              <img src="" alt="" title="" />
              <figcaption></figcaption>
          </figure>
          <p>Paragraph...</p>
      </aside>

      and

      1
      2
      3
      <aside class="alignleft">
          <p>Paragraph...</p>
      </aside>
    3. Save and Upload.

    3. Style the Aside.

    1. In the main.css file’s Authoring Mobile area, add declarations that include values for all of the following elements, classes, and properties:
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      aside {
        background-color:;
        border:;
        border-radius:;
        box-shadow:;
        clip:;
        color:;
        font-size:;
        font-family:;
        padding:;
        width:90%; /* override this in the @media query below */
        }

      Beginning: Since you already created classes for CSS 3 embellishments, add at least two other classes to the existing asides, like this:

      1
      <aside class="alignright corners gradient boxshadows">
    2. In the @media query area, override the wide aside with a skinnier aside:
      1
      aside {width:33%;}
    3. In the @media query area, write classes for alignment options:
      1
      2
      3
      4
      .alignleft   {float:left; margin:0 2% 0 0;}
      .aligncenter {text-align:center; margin:0 auto;}
      .alignmiddle {position: absolute; top: 0; left: 0; bottom: 0; right: 0;}
      .alignright  {float:right; margin:0 0 0 2%;}

      Note that when the aside is styled so it looks nice, its placement can be interchanged with these alignment classes. We can use these three classes on any block as needed. Note that the alignment classes have increased margin for the sides that will sit next to text (so they don’t touch).

    4. Add overflow to main block’s unordered and ordered lists so that bullets next to left-aligned asides won’t overlow/overlap:
      1
      main ul, main ol {overflow:hidden;}

      If you don’t add the main element then all menus that use ul will have spacing problems.

    5. Save and Upload.
    6. View the content page. Does the aside block float to the right? Note that other 400 words you wrote sits next to the aside block. When the <aside> is placed above the text it ought to float next to, and when it is styled with width and float, it will work properly.

    Examples

    Mark

    Style

    Function

    Test

    Resources

    Scoring

    Quiz

    Chat with the instructor in Canvas

    Reply to this lesson's thread in this chapter's forum.

    [quick-chat room=”aside” guests_visible=”1″ send_button=”1″]