Media Literacy, Blogging, & Photography

UW High School Institute

Tag: html (page 1 of 2)

Layout and Positioning Strategies

Ch. 11: Layout and Positioning: Arranging Elements

***Remember that you can view the source code (html) and css of each layout that is linked below. Right-click, “View source” or “View page source”, and see the html. To view the css, click the css linked on the html code (code reads href = “starbuzz.css” or some version of that). ***

***It is fine for you to mimic and copy the layout strategies below.***

Understanding the “flow” of elements — pp. 472-478

Floating elements as a layout strategy — pp. 479-482.

1. Reformatting the Starbuzz web page to a two-column web page using the floating strategy — pp. 483-500.

2. The jello layout — pp. 500-503.

3. Absolute positioning — pp. 503-509.

4. CSS table display layout — pp. 510-520.

Review of CSS layout strategies — pp. 521-522

Floating images in a header — pp. 523-527.

Using absolute positioning for an image — pp. 527-529.

Fixed positioning — pp. 530-536.

Relative positioning — p. 536

The Box Model with CSS

Ch. 9: The Box Model with CSS

A new and improved Head First Lounge — pp. 362-366

Box model basics: Content, padding, border, margin — pp. 367-372

Applying the box model — pp. 373-391

Classes vs. ids — pp. 392-397

Using multiple stylesheets — pp. 398-404

Week 5: Dreamweaver Set-Up & HTML Standards


  1. This week:
    1. Finish Ch. 5 on Images
    2. Set up our websites in Dreamweaver
    3. Cover Ch. 7 in Krug
    4. Start (and hopefully complete) HTML book Ch. 6 and 7.
  2. Assignment #4: Website with Images is now due on next Tues. 2/28
  3. Check grading comments on Assignments #1 and #2.
  4. Quiz #1 “Be the browser” grades will be available on Thurs. 2/23.
  5. Quiz #2 is on next Thurs. 3/2

Krug, Ch. 7: Designing the Home Page

Not everything from this chapter applies to your relatively small-scale websites. Here are some of the highlights.

The home page should communicate: (see p. 86)

  1. The site identity and mission
  2. Site hierarchy (accomplished by persistent navigation)

The home page *could* also communicate: (see p. 86)

  1. Content promos
  2. Feature promos
  3. Timely content

No matter what, the home page should convey the big picture.  It should answer the questions:

  1. What is this?
  2. What do they have here?
  3. What can I do here?
  4. Why should I be here–and not somewhere else?

Why are these questions important?

Because visitors make snap judgments in milliseconds that are hard to change later.

How do we convey the answers to these questions? (see p. 93)

  1. The tagline should describe you or your site in a handful of words.
  2. The Welcome blurb should not say “Welcome to my website,” rather, it should display a short description of the website.
  3. The “Learn more” is akin to the “About” page pitch (e.g., “learn more about my goals), if you have one on the home page.

Ch. 6: Web Standards

HTML through the ages — pp. 219-226

Adding the <!doctype html> tag — pp. 227-232

Meet the W3C validtor — pp. 233-238

Adding the <meta charset=”utf-8″> tag to the <head> nest — pp. 239-243

Reminders and exercises — pp. 244-249

Week 3: More Building Blocks for Construction and Planning


  1. What is one thing that you learned from the guest speaker?
  2. Assignment #2 is due on Tuesday by 11:59 p.m., uploaded Word file or PDF to WyoCourses — the Draft Design & Layout.
  3. There will be a quiz on Thursday during class. I will give more details about the quiz on Tuesday.

Krug, Ch. 4: Why Users Like Mindless Choices

Each click should be mindless and unambiguous. That is more important than the number of clicks.

Present users with brief, easy-to-process, and timely options in your navigation. If it takes three clicks to get somewhere, that’s fine. Three easy clicks are better than bombarding the user with all of the options on a text-heavy, confusing, and distracting page.

Krug, Ch. 5: Omit Needless Words

Most likely, 50% of the words on a web page can hit the road.

What are the advantages of less words?

  1. Less distraction
  2. Useful content POPS
  3. Pages are shorter.

Here is a website that could benefit from these guidelines.

What should you delete?

  1. The “welcome” talk and the promo talk
  2. Instructions; we don’t read them. Example.

Chapter 3: Building Blocks – Web Page Construction

From Chapters 1 and 2, we know how to build a basic webpage with text and links. We know about paths as well. Now, we’re going to learn more HTML elements (tags), the difference between block and inline elements, and what nesting means.

We’ll do this whole chapter together, with the exception of the exercises in the back of the chapter.

Creating a rough sketch of your web page on pp. 78-81.

Working from an outline to create a web page on pp. 82-84.

Quotes with the <q> and <blockquote> elements on pp. 85-93.

Block elements vs. inline elements vs. void elements on pp. 94-99.

Ordered and unordered lists on pp. 100-106.

Nesting on pp. 107-109.

Class exercise: Find what’s wrong with the code on p. 110.

A few more elements to learn on pp. 114.

Week 2: Building Blocks for the Web

Krug Chapter 2: How We Really Use the Web

What is the sad reality about how we use websites? (hint: billboard vs. great literature)

Why do we scan? –> On a mission. Don’t need to read everything. It’s a basic skill.

What is satisficing and why do we do it? –> We use the first reasonable option because we’re in a hurry, guessing is fun, and no harm is done if our guess is wrong.

We muddle through. It’s not super important, so we figure it out quickly and be done with it.

But…you want users to “get it” and not muddle through. Because

  • They will feel smarter
  • They will feel in control and explore more
  • They will find what they want

But how do we do this?

The solution is Ch. 3: Billboard Design.

Krug Chapter 3: Designing for Scanning, Not Reading

What is billboard design?

Six major tenets:

1. Take advantage of conventions

  • We have expectations about: Where things will be located on a page. How things work. How things look.
  • As beginning web designers, use these conventions.
  • Be consistent, but be clear first
  • In the end, you can be creative, yet make the creativity usable

2. Create effective visual hierarchies

  • Visual hierarchies (i.e., prominence, grouping, and nesting) reveal relationships
  • This relates to the design principles of proximity and emphasis as well

3. Break pages up into clearly defined areas

  • Use design principles to make the header, navigation, body, subsections of the body, and footer distinct areas

4. Make it obvious what’s clickable

  • What are some visual clues to “clickable”?
  • How does CSS fit into this idea of clickable?

5. Eliminate distractions

6. Format content to support scanning

  • Use a lot of headings
  • Make the headings VERY DISTINCT
  • Keep paragraphs very short, just like in newswriting.
  • Use bulleted lists to break up the text
  • And, highlight key words

And Now…Let the Coding Begin…

First, it’s helpful (and very awe-inspiring) to know the history of the Internet before we start building our own webpages.

Now you’re familiar with the Internet’s skeleton, let’s start learning about its guts – the web!

R&F Chapter 1: Universal Language of the Web

Servers, browsers, and hypertext markup language (HTML) – pp. 2-8.

Class exercise on p. 7.

Instructor-led exercises on pp. 9-31.

Individual exercises on pp. 32-42.

R&F Chapter 2: Hypertext

Instructor-led exercises on pp. 43-67.

Individual student exercises on pp. 68-76.


Adding a Resume and Achieving that “Wow Factor”

Adding a Resume

For the final website, you need the resume in both PDF and HTML versions. This means the resume should be downloadable by PDF and should be coded in HTML (or appear as an image). See classmate Olga’s resume page for a good example of how she met this criteria.

To embed the PDF, save your resume as a PDF file from Word (go to Save & Send –> Create PDF Document). Ensure you save it in the same folder as your website files. Then, in the HTML code, insert the PDF file as a link: <a href=”my_resume.pdf” target=”_blank”>Download my resume</a>.

To insert the resume as an image, open the Word document in Adobe Illustrator (or another editing program that can open .doc files). Go to File –> Save for Web & Devices –> Save as .jpg file in the same folder as your other website files. Then, in the HTML, insert the image element code: <img src=”my_resume.jpg” alt=”My resume as an image.”  border=”1px black solid”>.

If you have any trouble, please let me know.

Improving the Application of Design Principles

Many of you need to improve the professional look and feel of your website. You may have met the requirements for the final website, but you are missing the bonus “wow factor” that “A” websites possess. To meet the “wow factor” requirement for an “A”, you must apply design principles in a clean and professional manner. Let’s review the design principles before examining some example websites.

Here are a few student websites that have the wow factor and some that don’t.

Wow Factor Websites

  • Example 1: Uses simple repeating background image with a jello layout
  • Example 2: Simple color scheme with repeating background image and jello layout
  • Example 3: Simple color scheme, clean look with simple graphic and font

Websites That Lack The Wow Factor

  • Example 1: Poor color scheme, inconsistent font choice, and more problems
  • Example 2: Poor color scheme, but otherwise it is OK. See what a poor color scheme can do?
  • Example 3: Odd choice of fonts, poor color scheme, distracting and odd background image. Layout looks pretty good though.

Aiming for the Wow Factor: Adding a Simple Repeating Background Image

What is a simple repeating background image? Check out my personal website to see what I mean. Right-click to “view background image” andimg09 you’ll see that there is a simple rectangle that is set to repeat in my CSS. See the corresponding CSS code below:

#bodyindex { background: #DEDEDE url(images/img12.png) repeat-x left top; }

#bodypages { background: #DEDEDE url(images/img09.png) repeat-x left top; }

To explain: I created an index page that looked slightly different from the rest of the web pages, so it has its own division (#bodyindex, just for the index) and its own image (img12.png, just for the index page). The other web pages use the #bodypages division and the img09.png image. Notice that I’m only repeating it horizontally once (that is the “repeat-x left top” rule). Then, when the image is done repeating, it defaults to the background color of #DEDEDE (the light tan color).

To refresh your memory on the background selector options in CSS (such as background-repeat, background-position, etc), please see p. 380-383 in the textbook.

Aiming for the Wow Factor: Adding Rounded and Stylized Borders

Notice how my dropdown menus on my personal website have rounded edges. This effect looks professional and is easy to create using the border-radius property in CSS. See. p. 386-389 in the textbook for a refresher on how to create and style borders using CSS. In another example, classmate Hannah has applied a stylized border to her home page.

Aiming for the Wow Factor: Adding a Logo or Photo That’s Consistent Across Pages

On my personal website, you’ll notice that the home page has a larger photo with my name and the content pages have a cropped smaller version of the same photo. This creates visually consistency across pages.

Consider using a consistent image across your websites as well. For example, classmate Gabrielle has used a golf-related image for her golf-themed website.

Classmates Jordan and Olga have created logos that are used consistently across their websites.

To create a simple logo, go into Photoshop or another graphic design program and experiment with the text tool, shapes, and lines to create an original logo for your website. Simple is fine. It does not have to be fancy or complicated.

Photo Galleries & Slideshows

Photo Galleries

If you want to organize your photos in a gallery, then here are some options that I’ve created for you. Feel free to adapt this as you see fit.

Photo galleries are great for a large number of photos to display. If you only have a few photos to display, or want to display photos in a slideshow manner, see the section called Photo Slideshows below.

I will walk you through some of the major coding concepts. Otherwise, it’s up to you to play around with the HTML and CSS to adjust to your website. Please let me know if you have questions.

Example 1

Example 2

Example 3

Photo Slideshows

Dynamic photo slideshows are even more complicated than static photo galleries. Let’s skim over a tutorial to get an idea of what’s involved.

We can work through the key pieces of code that you need to understand in order to adapt the code for your own website.

Photo slideshows are great for less than than a dozen photos or so. If you’d like to showcase all of your photos on a webpage, then go with a photo gallery. If you want to highlight a few important photos on a home page or content page, then go with a short slideshow.

Note: The more photos you add, the more complicated the code gets and the more you’ll have to work to re-write the code to fit your needs.

Example 1: Automatic slideshow with no captions

Example 2: Automatic slideshow with captions and play/pause buttons, very complicated code

Example 3: Automatic slideshow with captions when you hover

Example 4: Automatic slideshow with captions all the time

You could also download the code from the first example we looked at and edit that code as well.

Drop-Down Navigation & Appendix Top 7

Drop-down Menu

Drop-down menus can make navigating your website easier. I added a drop-down menu to my personal website.

In order to give you a cleaner version of the drop-down menu, we will examine the clean example on my website by first looking at the HTML and then look at the CSS.

The HTML is very simple. Let’s start there. Open a new notepad document and follow me.

You’ll see that the CSS is a little more complicated. Let’s copy and paste the CSS into a new notepad document.

  • We will break down the major components of the CSS file to understand what’s going on.
  • We will use our book’s Appendix section to learn more about the CSS once we’ve typed it in and done the example ourselves.
  • We will play around with the CSS code by deleting and altering rules in order to see what happens. –> This is a great way to learn what specific rules are doing in CSS!
  • If you need to use drop-down navigation, you will add the code to your website and adapt it as necessary. I will help you, if needed.

Also, don’t forget that I’ve added a new section of HTML & CSS Resources in our sidebar of links on our blog here.

Appendix Top 7

Appendix #1:  More CSS selectors (and the word-spacing  property)

Appendix #2:  Vendor (i.e., browser) specific CSS properties

Appendix #3: CSS transforms and transitions (we will do this example together)

Appendix #4: Interactivity (this is what JavaScript looks like)

Appendix #5: HTML5 APIs and web apps

Appendix #6: More on Web fonts

Appendix #7: Tools for creating web pages

Updating to HTML5 Markup

Ch. 12, Modern HTML: HTML5 Markup

Monday and Wednesday

Download the correct HTML (right-click, view source, copy and paste code into Notepad, save as “blog.html”) and CSS file (click link, copy and paste code into Notepad, save as “starbuzz.css”) for this assignment

Why change from <divs> to HTML5 markup — pp. 545-547.

Updating the Starbuzz website to HTML5 (conceptual) — pp. 548-558.

Adding a blog to a web page — pp. 559-572.

Adding navigation to your website — pp. 573-577.

Adding video — pp. 578-593.

Embedding video with YouTube

Adding audio — p. 710

See the Starbuzz Blog with an mp4 video that autostarts.

See the Starbuzz Blog with multiple video sources that does not autostart and for an embedded audio file using HTML5.


Required attendance workday. Submit Assignment 6 – Website with CSS Formatting & Layout by 11:59 p.m.


Divs and Spans

Ch. 10: Divs and Spans

Understanding “divs” are divisions — pp. 413-425

Computing width and total width for boxes — pp. 426-430

Adding padding, margin, and background images. Centering elements within a div — pp. 431-434

Adjusting heading colors and line-height for divs — pp. 435-441

CSS shortcuts — pp.442-445

Adding a footer div — p. 445

Spans are for inline elements — pp. 446-451

Styling the “a” tag states: unvisited, visited, hover — pp. 452-456

Understanding “pseudo-classes” — pp. 453-456

Predicting the “cascade” in cascading style sheets — pp. 457-464



Older posts