Assessable Tasks

Assessable tasks are those core tasks required to create modern web design.

TASKS / ACTIVITIES DATE REQUIREMENTS / INDICATORS
Marking‑up Content week 1 Is the markup valid and semantically correct HTML5? Are images the correct formatand size?
User Experience week 2 Are UX concerns driving the design process?
Design Process week 2 Are all 8 steps articulated? Are they reflected in the portfolio and final?
Styling the Content week 3 Is the CSS valid, clean, external, and using structural selectors wherever possible?
Layout out the Content week 4 Are multiple layout strategies used to construct the website? Document Flow? Positioning? Floats? Flex Box? Grid?
Constructing the Portfolio Site week 5 Is the site logically organized? Is it SEO friendly? Is it tracked using Google Analytics? (only for non‑Parsons hosted websites)
Is the web site Future Proof? week 3‑6 Is the website responsive to a change in viewport size, from smart phones to 4K Screens?
Does the typography communicate? week 6 Does the typography promote legibility? Accessibility?  Does it communicate the messaging, tone, sentiment, and aesthetics?
Exploring CSS3 and beyond week 9‑11 Are advanced CSS modules used to create the look, feel, and functionality of the website? Does it stand out?
Modularity and Interactivity week 12 Are PHP and Javascript used in the final website?
CMS: WordPress week 9‑13 Are You capable of creating a site using WordPress?
Forms week 14 Are forms used in the final website?

03 Demo Instructions

In class demonstration for week three: introduction to CSS. Finished file.

  1. pick up the HTML5 template from the class portal
  2. Give it a title.
  3. There is an embedded style sheet that we will not use.
    <style type="text/css"> 
    .example {
    }
    </style>
    
  4. There is a link to an external style sheet.
     <link rel="stylesheet" href="CSS/styles.css" media="all">
  5. We will use an external style sheet. Create a folder called “CSS” and a file called “style.css” External style sheets are just blank files, filled with css rules attached to selectors that target the elements in the HTML document.
  6. If we were to start adding rules, we would be adding our rules on top of the default rules of the browser. Since we do not want to depend on the rules of this or that browser, we neutralize them with a browser reset.
  7. After the Browser reset, we begin by writing that this is where the user style sheets starts.
    /*USER STYLES*/
  8. We start by targeting the most general tags, and slowly work our way to more specific tags.
  9. The most general tag is the <body> tag. Do we want to keep the white background? What fonts do we want, etc? How about:
    body {
    background: hsla(0,100%,70%,1);
    font:  400 1.5em/1.6em  "Times New Roman", Georgia, Serif;
    }
  10. Be careful with this font property, as it combines a number of properties, and you need to execute it exactly as it is here. 400 refers to the weight of the font. 400 is normal. 700 is bold. 1.5/1.6 provides us with both the font size and the line height. I then name the font family, were Times New Roman is requested, and if that is not available , Georgia, then any serif font. See Class 6 for more font information.
  11. Since every other tag will be written inside the body tag, they will inherit some of these properties. The font property is inheritable, the background property is not.
  12. The next strategy is to limit the width of the window when looking at the website on a computer screen, and to center it in the middle. We limit the width to 940px and place it in the middle by using the CSS property margin with value auto like so: margin: auto;.
    section {
    width: 940px;
    margin: auto;
    background: hsla(30,100%,98%,1);
    }
  13. The background of the section tag is only as large as the information inside of the tag. Right now it takes on the size of the picture. Let’s swap the picture with the text that one of you has written. The section expands to contain the new content.
  14. The CSS reset has reset most properties, so we need to define all of our CSS. We start by providing the section tag with 40px padding. This keeps the content from hitting the edges of the section tag.
  15. Save the document, make the browser window active by clicking on it and hit command-R to refresh the browser.
  16. We can keep the top from touching the top of the window by giving it a positive top and bottom margin. This is done by adding 40px before the auto. margin: 40px auto;
  17. CSS always starts on top, then goes clockwise, to the right, bottom, and finally left. If you only have one value, all sides take on that number. If you specify two numbers, the first signifies the top and bottom, the second the right and left sides. If there are three numbers, you can give different values to the top and bottom, and the sides stay the same. With four values all the sides are specified separately.
  18. Let’s define the section by adding a #444 border. We can do that with a shortcut that allows us to specify width, kind and color at the same time; border: 3px solid #444;
  19. The entire code for the section now looks like this:
     section {
    width: 1100px;
    margin: 40px auto;
    padding: 70px 30px;
    background: hsla(30,100%,98%,1);
    border: 3px solid #444;
    }
  20. What if I were to give the header a background color? If I color the header, it looks kind of clumsy, because of the padding I gave the section. I want to counteract that by giving the header negative margins for each side, but not the top or bottom. That is accomplished by margin: 0 -60px; Giving it a little extra makes it stick out over the section, and has the effect of raising the header above the rest of the document, which helps define its importance in the visual hierarchy. I also want a little space between the header and whatever comes next. 30px should do it. margin: 0 -60px 30px; I give it a border border: 1px solid #444; and 20px of padding to finish it off.
    header{
    background: hsla(0,100%,90%,1);
    margin: 0 -60px 30px;
    padding: 20px;
    border: 1px solid #444; 
    }
  21. Next up is to style the h1 header. If we make it 2em (that is a size based on the width of an em dash). OK, that is not brash enough. Lets go with 4em. The serif font does not work and I change it to Helvetica. There are more interesting fonts available, but for now, lets keep it simple.
  22. The navigation is a list. Lists items by default act like blocks. That means they go down like paragraph returns. We want them to go across, so we need to target the list items in the header and change the display from block to inline-block. With a little margin we can separate the menu items. We can go further, but lets leave that till class 5.
    header li {
    display: inline-block;
    margin: 0 10px;
    }
  23. It is easy to have paragraphs display one below the other. It is more difficult to display them side by side. Going vertical is natural, going horizontal is what will give you your headaches.
  24. To give us some practice, I will demonstrate the float technique to place items horizontally. This is the technique used by the NYTimes.com to create their layout. You can see this for yourself by installing the Plugin. Click on the bug that is installed to the right of your address bar, select outline in the pop-up and select outline frames. You will see almost every box in the layout light up.
  25. The float technique was originally used for floating pictures, but five years ago it was adopted by the NYTimes to float layout elements. Tables were used for layout before that time.
  26. The first step is to float an image to the right. Create a figure, img and figcaption and link to an appropriately sized picture. Since I may want to move pictures to the right more often, I create a class called pict-r, and use the class attribute in the figure class="pict-r" . A selector for the class is placing a period before pict-r in the CSS style sheet .pict-r . I also specify a smaller font for the caption, and align it to the right, and put a border on the image, though I offset it by 2px using padding.
    .pict-r {
    float: right;
    margin-left: 40px;
    }
    img {
    border: 3px solid silver;
    padding: 2px;
    }
    figure {
    }
    figcaption {
    font:  400 .7em/.7em  Helvetica, san-serif;
    text-align: right;
    }
  27. The picture moves to the right. The caption is flush right. The picture has a border around it, and the text runs around that picture.
  28. We use the same idea, but now we float a layout element to the left. THe layout element is created by introducing a div in the markup that encloses the text I want to float to the left.
  29. This time I use an ID to target the div. An ID can only to used once on a page. The id attribute is placed in the div tag: id="left" and in the style sheet, a hashtag is used as the selector: #left
    #left {
    float: left;
    width: 44%;
    margin-right: 3%;
    padding-right: 3%;
    border-right: 2px solid silver;
    margin-bottom: 10px;
    }
  30. I used percentages as an easy way to figure out the width. It is always a percentage of the width of the parent element. I could have figured out the pixels values and done it that way as well.
  31. When I decided to put a top and bottom holding line it, a problem arose, and I needed to push the last paragraph below the float. There is a CSS property to do this, called clear, meaning clear float. That allowed me to put the last paragraph below the two columns.
  32. To finish it off, I gave the paragraphs a 13px spacing at the bottom.
     .bottom {
    border-bottom: 2px solid silver;
    padding-bottom: 10px;
    margin-bottom: 20px;
    }
    .top {
    clear: left;
    border-top: 2px solid silver;
    padding-top: 10px;
    margin-top: 20px;
    }

15 Final Presentation

Week 15
12/4

Final exhibition of your work. Class discussion, critique and celebration of your new found powers to build anything you can dream of, on the web. Show your final, walk us through your code. What was the most difficult/frustrating part of the project? What was the most rewarding?

Homework

Final Assessment:

Class Evaluation

  • 15 minutes to fill out the course evaluation.

Materials

Additional materials for this unit can be found by following these links:

Goal

The goal of this unit is to:

  • provide each student with the time to exhibit their work to the rest of the class.
  • receive feedback from everyone.
  • to celebrate that you have learned a new and imminently usable skill and now belong to the modern world wide web culture.

Outcomes

At the end of this unit, students will have:

  • spent about ten minutes each presenting their final assignment.
  • expressed the UX and IA decisions that went into the project
  • explained the problems they set out to solve
  • show the way that they tackled those problems.
  • used the work-sheets to help present and express themselves.

Definitions

These are the general criteria that The Webby Awards use to evaluate web sites. You should be familiar with them.

Content
Content is the information provided on the site. It is not just text but music, sound, animation, or video — anything that communicates a sites body of knowledge. Good content should be engaging, relevant, and appropriate for the audience. You can tell it’s been developed for the Web because it’s clear and concise and it works in the medium. Good content takes a stand. It has a voice, a point of view. It may be informative, useful, or funny but it always leaves you wanting more.
Structure and Navigation
Structure and navigation refers to the framework of a site, the organization of content, the prioritization of information, and the method in which you move through the site. Sites with good structure and navigation are consistent, intuitive and transparent. They allow you to form a mental model of the information provided, where to find things, and what to expect when you click. Good navigation gets you where you want to go quickly and offers easy access to the breadth and depth of the site’s content.
Visual Design
Visual design is the appearance of the site. It’s more than just a pretty homepage and it doesn’t have to be cutting edge or trendy. Good visual design is high quality, appropriate, and relevant for the audience and the message it is supporting. It communicates a visual experience and may even take your breath away.
Functionality
Functionality is the use of technology on the site. Good functionality means the site works well. It loads quickly, has live links, and any new technology used is functional and relevant for the intended audience. The site should work cross-platform and be browser independent. Highly functional sites anticipate the diversity of user requirements from file size, to file format and download speed. The most functional sites also take into consideration those with special access needs. Good functionality makes the experience center stage and the technology invisible.
Interactivity
Interactivity is the way that a site allows you to do something. Good interactivity is more than a rollover or choosing what to click on next; it allows you, as a user, to give and receive. It insists that you participate, not spectate.
It’s input/output, as in searches, chat rooms, e-commerce and gaming or notification agents, peer-to-peer applications and real-time feedback. It’s make your own, distribute your own, or speak your mind so others can see, hear or respond. Interactive elements are what separates the Web from other media. Their inclusion should make it clear that you aren’t reading a magazine or watching TV anymore.
Overall Experience
Demonstrating that sites are frequently more — or less than the sum of their parts, the overall experience encompasses content, structure and navigation, visual design, functionality, and interactivity but it also includes the intangibles that make one stay or leave. One has probably had a good overall experience if (s)he comes back regularly, places a bookmark, signs up for a newsletter, participates, emails the site to a friend, or stays for a while, intrigued.

15 Parting Essay

You now know a lot more about CSS and HTML than you did when you walked in. It was difficult to first wrap your head around how this new language worked. You had to practice coding. Once you shed the obvious mistakes, coding HTML and CSS proved to be not nearly so difficult as you had first imagined. With the confidence you’ve gained you are hopefully liberated in your design sensibilities and impose it upon the code, and not the other way around. Make the code work for you.

If you’ve become really good at HTML and CSS you can give back and offer your services at the University Learning Center

Keep yourself in the loop of the continually evolving web by paying attention to what the browsers are doing, like Google Chrome Developer and Mozilla Developer.

Know that the web will be the next computing platform. HTML and CSS are to play a gargantuan role. Know it. Use it. Keep on top of it as it evolves.

Have you become interested in front end web design? Know it takes more than HTML and CSS.

Push the limits. It is amazing what a little CSS can do. Check out Diana Smith’s CSS Francine and the Explanation.

Use the web to facilitate your professional aspiration with real target audiences to make you a better and more responsive student.

Be good, enjoy what you do and have an effective web presence.

And have an interesting and rewarding life.

All the best,

onno

13 CMS: WordPress / Final Review

Week 14
11/27

Forms and Peer Review. HTML forms are a standard way to collect information from the user. Activity: Create a simple form. Your final project should be a functional web site by this time. Activity: Peer Review: Students split up into pairs and review each other’s web sites.

Homework

You will be working on your final and other assignments. If you have extra time on your hands, you can build a WordPress template.

Materials

Additional materials for this unit can be found by following these links:

Goal

The goal of this unit is to:

  • Everyone is pretty busy with their finals but I thought to wrap up the course with a guided tour of a WordPress template.
  • look at how PHP creates the WordPress Website out of different sections.
  • take a detailed look at the WordPress style sheet.

Outcomes

At the end of this unit, students will have:

  • been exposed to a content management system (CMS).
  • worked through WordPress template.
  • understood how PHP combines the page out of disparate files.
  • will have been helped with any outstanding issues remaining in their final project.

Step-by-Step

20 Review homework and answer questions.
40 Show and Tell: Content management System — WordPress: new site

15 Student Evaluations: I will leave the room while you fill out the evaluations.
10 Break
80 In Class Help on the Final

News and External Resources

Sources of information that will enrich your knowledge about web design and will help you to stay current:

  1. Move the Web Forward is the hub for how to engage the web community once you have joined it. You have all joined this community by now, and this will be a continually updated resource at the center of the web design universe.
  2. Changing the World! Web Governance
  3. Paul Irish Industry leader.
  4. Eric Meyer The original Industry Leader that helped bring in Standards based web design.
  5. Jeff Zeldman Another industry leaders that helped bring in standards based web design.

There are, of course, many more resources but in this ever changing fast moving web culture, you can count on these to move the web forward. This will keep you going.

  1. One last article that introduces freelance bidding sites.

    As long as you are a student, your courses provide you with projects but if you are graduating, I highly recommend checking these sites out, and doing a number of projects, if not for the money, for the experience, so that you can build up your portfolio.

Definitions

These are the terms that participants should be familiar with during this unit:

14 Forms / Peer Review

Week 13
11/20

From Content Management Systems like WordPress, to CSS systems like Twitter’s Bootstrap, to web page applications, like Adobe to Artificial Intelligence, there are a lot of ways to build a website, The basis of most professional websites is a CMS. We will take a look at how a WordPress template pulls together different PHP modules into a single HTML page, and how the CSS controls the look of the site. Activity: Modify a WordPress template, using it as the basis for our own design. Activity: 15 minutes will be taken to complete on-line student evaluations. Activity: In-class final Workshop #3.

Homework

1) For class: Create a form to collect user information for your site. 2) Write up the web site you reviewed and hand that to the person whose site you reviewed and to me. Read: chapter 16. 3) For final: Use the feedback from the peer review to finish your website. Due: The following week.

Materials

Additional materials for this unit can be found by following these links:

Goal

The goal of this unit is to:

  • Be able to incorporate forms into the final website.
  • Understand how to critically review web site design and execution.
  • Have your web site reviewed by a peer.
  • Critique and review a peer’s web site.
  • Have me review your web site.

Outcomes

At the end of this unit, students will have:

  • Learned how to construct forms in HTML.
  • Activated forms on the server side using a PHP script.
  • Implemented forms on their own website.
  • To have been a user and test a peer’s web site
  • Critiqued and reviewed that website.
  • Had their web site critiqued and reviewed.
  • Used the feedback to finish web site.

Step-by-Step

20 Review homework and answer questions.
20 Forms
20 Implement Forms and PHP script on server.
20 How to peer review a website
10 Break
20 User test partner’s site
30 Peer review partner’s site
40 Switch Roles

News and External Resources

Sources of information that will enrich your knowledge about web design and will help you to stay current:

  1. Opera Developer Blog
  2. Safari Developer Blog
  3. Mozilla Hacs

There are, of course, many more resources but Safari, Firefox and Opera are the standards compliant browsers that have carried web forward. Microsoft is also becoming a player but all of you use Macs.

Talking Points

LYNDA.COM is available to all Newschool students by logging in, going to the library page, clicking on databases and search for lynda.com. You will have to sign up and activate an account but this will will give you access to both the video and the supplementary exercise files.

LYNDA.COM video Series: Validating and Processing Forms with JavaScript and PHP

Validating web forms is a critical skill for any web developer, ensuring that the data that’s submitted is complete, accurate, and not malicious before it’s sent off to the server. Join author Ray Villalobos in this course as he shows how to validate input from site visitors with HTML5, JavaScript, and jQuery and then process the data with PHP. Plus, learn how to email form data and save it in a MySQL database so that it’s ready for other applications.

Assignment Links

Links that I expect to be up and the end of the semester:

Example of landing page from a previous semester.

    Week 2

  1. Assignment 1 (5 pages marked up)

    Week 3

  2. Index.html landing page— these links and a picture next to your name.
  3. Worksheet: behind the scenes on creative process.
  4. NY Times Wireframe
  5. Portfolio Photoshop Comp

    Week 4

  6. Portfolio exhibiting the CSS selections

    Week 5

  7. Portfolio Photoshop comp to HTML/CSS.

    Week 6

  8. Portfolio: rough, including SEO, Google Analytics and Styled Navigation

    Week 7

  9. Midterm Quiz
  10. Midterm: Portfolio (can be the same link as week 6)

    Week 8

  11. Typography Poster
  12. Final Worksheet with topic

    Week 9

  13. Responsive Redesign of Portfolio

    Week 10

  14. CSS3 Collateral ( and post the exercise you did in class)

    Week 11

  15. CSS3 Animatics (and post the exercise you did in class)

    Week 12

  16. Final: Rough

    Week 12

  17. Multimedia Demonstration

    Week 13

  18. Final: Modular Navigation

    Week 14

  19. Final: User Testing

    Week 14

  20. Final: Peer Review

    Week 14

  21. Forms

    Week 15

  22. WordPress CMS

    Week 15

  23. Link to Final

    The final website sells something. It does not have to be lots of pages but the quality has to be ready for public scrutiny. It should have many of the topics we covered, like CSS3, Multimedia, PHP, forms media queries, etc.

Definitions

These are the terms that participants should be familiar with during this unit:

14 Peer Review

Peer review is an important life skill. Do it effectively and with tact, be positive and insightful and help the person see things about their site that they did not catch, from effective design and user experience point of view to mistakes or better solutions to implementing code.

Be Constructive and Instructive

Be positive, let your partner know what you liked. Praise, comment, and correct in that order. Make positive comments about the design, its execution and overall effectiveness of the site before explaining what does not meet expectations. Look at the code to see if it is properly annotated, well organized and valid. You will run their code through validator (and css validator. I expect that the site was already valid HTM and CSS. If not, it should be by the time you are finished.

Instruct if your partner needs to understand things that you are aware of and they are not. You can help them grow in the same way that you grew this semester. Sharing is caring, and it is always good to spread the love. You really know your stuff when you can teach it!

Critical Review Examples

If you are in need of an example please check out Web Standards Sherpa, a website dedicated to constructive criticism, to highlight standards compliant solution that solve real world problems. You can see articles that review the headlines of the New York Times and there are many others, including a critique of their own site.

The goal of WebStandardsSherpa.com is to provide web professionals the opportunity to receive feedback, glean advice and learn best practices from experts in the field to help improve the quality of their own work. It’s very instructive to see professional and pedagogically useful critique at work.

Reacting to Criticism

You do not have to incorporate your classmate’s suggestions. Trust your own judgement about your design, determine which issues are most important, though pay attention to comments if they are made by more than one peer, and get another opinion if you aren’t sure about something.

User Testing

One way to get feedback is to user test your site. You will use the SilverBack application to record the user test. Download the application, which is free for 30 days.

Doing a user test is straight forward. Create a project, and create a session which will record the your peer review partner’s “user interaction” as they go through your website.

Peer Review Check List

Be constructive, not just “yes” or “no”. Goint through these lists will help you dot your “i”s and crossed your “t”s, so to speak.

Using the HTML5 boilerplate should help to make your site work for most browsers. Try to test your site on Chrome, Firefox and Safari for Mac and Edge for Windows.

Help Your Partner. Everyone has learned a lot but not everyone will have learned everything equally well. You have the opportunity of helping your partner fixissues with their website where they may not have figured out the best way to do something. We are in this all together, and being able to help someone is rewarding initself.

Print out or fill in online the two pdf documents: the questions below and Adobe’s website analysis. Evaluate and answer questions. Send them to your peer review partner and CC me. If your partner has not yet finished coding their site they need to coordinate with you when it is finished, so you can do the review.

  • Intuitive reaction

    1. Take the five-seconds test. What’s your immediate response? Your split second intuition is often canny in its ability to present an accurate picture that can get lost in more deliberated responses.
    2. Describe how the site make you feel.
  • Clarity of Communication

    1. Does the clearly communicate to its intended audience?
    2. Is the experience seamless?
    3. Do the pictures and the design facilitate the communication?
  • Accessibility

    1. Are any of the pictures too large or too small? If so, fix them.
    2. Is there an easily discoverable means of communicating with the author or administrator?
    3. Is the HTML semantic (can screen readers to navigate the site)?
  • Consistency

    1. Does the site have a consistent and clearly recognizable “look-&-feel”?
    2. Do repeating visual themes to unify the site?
    3. Is it consistent even without graphics or an external style sheet? (it can happen)
  • Navigation

    1. Are the links obvious in their intent and destination?
    2. Is there a convenient, obvious way to maneuver among related pages, and between different sections?
  • Design & maintenance

    1. Does the site make effective use of hyperlinks to tie related items together?
    2. Are there dead links? Broken scripts? Pages that are not completed or look unfinished?
    3. Is page length appropriate to site content?
  • Code

    1. Is the code clean and well documented?
    2. Is it optimized for Search Engines (SEO)?
    3. Does it have Google’s Analytics code?
    4. Does it use the HTML5 boilerplate?
    5. Does the HTML validate? Use the Unicorn Unified Validator Service and Check the HTML and CSS. You are to report your findings in your conclusion.
  • HTML5 and CSS3 goodness

    1. List the CSS3 features used. Were they used to good effect?
    2. Is the HTML5 semantically correct?
    3. Is the website future proof? Does it use media queries? Check to see how it works on the iPhone/Android?
  • Overall Assessment?

    Make a list of fixes, suggestions and possible solutions to any issue that came up when assessing the website using the aforementioned considerations.

    Send this report to your partner later today, if you need more time to write it up than class provides, and send a copy to me.

14 Forms

Forms are vital tools for collecting information from users, such as their name, email address, opinions, etc. A form will take input from the user and may store that data into a file, place an order, gather user statistics, register the person or subscribe them to a newsletter.

HTML

The form itself is created in HTML, and starts with the <form>element and ends when that element closes. All the form elements are within the form element, mostly consisting of various input elements.

The input element changes according to its attributes. If there are no attributes, it provides a one line text field:

HTML Code:

<form>
	<input>
</form>

Result:


Attributes

You add the type="text" or type="submit" attributes to the <input> tag to specify if it is text or a submit button. Add a name="name" attribute to reference the form element when it is sent. The size attribute sets the width, measured in blank spaces, and the number of characters can be limited using the maxlength="" attribute.

The submit button is created by using the input tag with a type attribute set to submit. The value="Send" attribute provides the text for the button, so the value send will label the submit button as “send”. Pressing the button engages the <form> action.

There has to be a mechanism for the form to send the information it collects. The <form> element contains a method attribute method="post" that is usually set to post. It can also be set to get, which appends the form information to the URL.

The <form> also has an action attribute action="url.php", which specifies the URL the data is sent to. In this example, it is set to use the email client with the “mailto:” command.

HTML Code:

<form method="post" action="mailto:name@address.com">
	Name: <input type="text" size="30" maxlength="60" name="name"> <br />
	<input type="submit" value="Send"> 
</form>

Result:

Name:

Filling out your name and sending it will open up your email client, and create an email addressed to name@address.com. and the body of the email contains whatever name you’ve entered. This paring up of the name of the form element with the information entered needs to happen for each form element that gets sent.

Radio Buttons

Of the different types of input, the type=radio allows for only one choice out of a number of options. This is accomplished by using the same name for each of the options, so that only one can be chosen. Each option has its own value however, which is sent when that option is selected.

HTML Code:

<input type="radio" name="color" value="red"> Red  
<input type="radio" name="color" value="green"> Green  
<input type="radio" name="color" value="blue"> Blue  

Result:

Additive Colors:

Red

Green

Blue

Check Boxes

Check boxes are similar to radio buttons but its possible to click on more than one option.

HTML Code:

<input type="checkbox" name="color" value="cyan"> C 
<input type="checkbox" name="color" value="magenta"> M 
<input type="checkbox" name="color" value="yellow"> Y 
<input type="checkbox" name="color" value="black"> K 

Result:

Subtractive Colors:

C

M

Y

K

Drop Down Lists

Another way to present the choices is as a drop down menu, which are especially good when there are lots of options. The drop down list is created by the <select> with each choice enclosed by an option tag.

HTML Code:

<select name="shade">
<option>white</option> 
<option>light grey</option>
<option>grey</option>
<option>dark grey</option>
<option>black</option>
</select>

Result:

Shade?

HTML Text Area

All of the input fields have been single lines up to this point. The textarea provides a larger area to enter text, specified in rows and columns. A row is one line of text high while column unit is a character wide. Another setting is the wrap, which can be either virtual, which wraps the words for the person entering the text, but the text is sent without returns, or, physical, where the text is sent wrapped, just as it appears in the text area. You can also turn text wrap off.

HTML Code:

<textarea rows="5" cols="80" wrap="physical" name="comments">
Enter Comments Here:
</textarea>

Result:

Enter Comments Here:


If you enter text and press the send button, you can see that the words are concatenated (meaning added together) with plus signs and because the wrap is physical, the return is represented by the code: %0D%0A.

PHP script

Thus far the actions for all of these examples has been the “mailto:” which sent the text to the email client. Sending an email with PHP is easy enough. All you need is the PHP mail() function:

mail("recipient@domain.com", "This is the message subject", "This is the message body");

It gets more complicated when you need to connect up and receive the information, to add security measures, verify the form entry, and so on. Most hosting services have an email script that you can use, and all you need to do is send the form to that script in the action="email-script.php" attribute.

Setting Up Your Form

There are a lot of PHP email scripts on the web, and Free Contact Form is one that is simple and easy to set up. It has all the parts you need. See the demo.

  1. These instructions are for the first version of this script: Download the package.
  2. installation.txt contains basic instructions:
  3. METHOD 1 (Automated)
    1. Upload all files to your website.
    2. In your browser, open the file freecontactforminstall.php and install.
  4. METHOD 2 (Manual)
    1. Create the file ‘freecontactformsettings.php’ using a code/plain text Editor.
    2. Insert the following code into this file :
      <?php
      
      $email_to = "youremailaddress@yourdomain.com"; // your email address
      $email_subject = "Contact Form Message"; // email subject line
      $thankyou = "thankyou.htm"; // thank you page
      
      // if you update the question on the form -
      // you need to update the questions answer below
      $antispam_answer = "25";
      ?>
      
    3. Enter your email address in place of youremailaddress@yourdomain.com
    4. Change the email subject (if you like)
    5. Change your thank you page reference (if you like)
    6. Save the file.
    7. Copy ALL files onto your website using an FTP program
  5. Test it out. The thank you page has been redirected with the return button bringing you back here.


Fields marked with * are required.

Alternatives

You need not develop your own php file if you use Form Spree. This allows you to go beyond the options provided for in the php script.

Setting it up is easy and free. Here’s how: You don’t even have to register.

  1. Setup the HTML form

    Change your form’s action attribute to the action input given below. Replace “your@email.com” with your own email.

    <input type=”text” value=”http://formspree.io/your@email.com” />

  2. Submit the form and confirm your email address.

    Go to your website and submit the form once. This will send you an email asking to confirm your email address, so that no one can start sending you spam from random websites.

  3. All set, receive emails

    From now on, when someone submits that form, we’ll forward you the data as email.

HTML5 Forms

Before HTML5, forms had to be carefully vetted with JavaScript to make sure that the information the user input was fundamentally correct, like an email address actually had the form of an email address, and a URL actually had the form of a URL. With HTML5 greatly enhanced forms support, this can be taken care of by the browser. Though there are still some browser compatibility problems, the time is coming when form checking is built right in.

12 HTML5 Multimedia

Week 12
11/13

Multimedia features of HTML5. HTML5 introduces a host of new features, the most visible are sound, video and the canvas element. Activity: Incorporate multimedia.
Activity: In-class final Workshop #2.

Homework

1) For class: Use audio, video or canvas to sell your final Project. 2) For final: Finish the remaining pages of your website for peer review. Read chapter 17. Due: The following week. Third Quarter Assessment: Have your Final Worksheet including all 7 steps, photoshop comp and opening page ready and uploaded.

Materials

Additional materials for this unit can be found by following these links:

Goal

The goal of this unit is to:

  • To incorporate Video, Audio and the Canvas element into your website.

Outcomes

At the end of this unit, students will have:

  • Coded a video for the web and embedded it in a page.
  • Exported audio into all necessary formats and embedded it into a page
  • Set up the canvas element and is able to create basic shapes.
  • Used the illustrator plugin to incorporate vector art into a page.

Step-by-Step

20 Review homework and answer questions.
40 Demo: Canvas
10 Break
40 Demo: Audio & Video
40 Final: Progress Review

Quick Primer on Using Video

Video and canvas add a dimension of multimedia to the web experience that goes well beyond print. This should excite many of you but it can be daunting at the same time. The language of story telling on video, tools like After Effects, Final Cut Pro and Premier and the production requirements of making the videos are another world altogether.

When it is done right, video gets people’s attention, conveys emotion and personality, and engages engages people in a way that photo and text alone can’t. It can improve the website experience but it can also cripple it, suck up bandwidth, drive people away, and suck the energy out of what could otherwise be a good website by attracting too much of the attention.

Ask yourself, when you use video:

  • What are the goals for my video strategy?
  • What types of videos will I post?
  • Will I be concepting, shooting, editing and uploading videos?
  • How can I measure success or failure?

That said, Flash integrates well with video. Too bad that Apple threw it a monkey-wrench by not supporting it on its iPhone or iTablets.

The MetaProject exemplifies how flash integrates with video seamlessly working together.

You can, however, use Google’s swiffy to convert flash sites to HTML5, SVG, and javascript.

Problems of keeping video in the background like images. It takes a lot of room, requires a lot of bandwidth and careful planning, and the right video. Random Dance uses video on the splash page, and then uses it throughout the site.

Still, video can be difficult to integrate, so think about that as you work on your final. You need not integrate video or canvas in your final, just show me that you can do it in the homework.

News and External Resources

Subscribe to the following two magazines using (RRS): A list Apart has been a beacon for web development since the web’s earliest days with timely articles, and it still remains one of the best resources out there. Smashing Magazine is another popular web design magazines that you should be reading.

There are a zillion other resources on the web, and you need to plug in to stay up to date. As this especially exciting time shows, the best is yet to come. Plug in and keep abreast of the creative solutions that become standardized practices.

Though the time it has taken each of you to understand HTML and CSS has varied, everyone should be on board by now. The more you code, the better you become.

All of you should be reaching out to the larger web community. If I have been a cheerleader that encourages you to do that, then I can feel confident that you will fish for a lifetime.

Final Assignment Links

Updated links that I expect to be up and live as they will be graded for your final grade.

Example of landing page from several semesters ago.

    Week 2

  1. Website Analysis*

    Week 3

  2. landing page— links to your assignments and a picture next to your name.
  3. HTML markup of Analysis
  4. Worksheet: behind the scenes on creative process for midterm (7 steps)*:

    Week 4

  5. Portfolio exhibiting the CSS selections
  6. HTML Wire Frame from PhotoShop comp

    Week 5

  7. incorporate CSS Layout Strategies in web site

    Week 6

  8. Quiz
  9. Peer Review Notes / Advice

    Week 7

  10. Typography Poster
  11. Finished Midterm: Portfolio

    Week 8

  12. Final Worksheet*

    Week 9

  13. Responsive Redesign of Portfolio

    Week 10

  14. CSS3 Collateral
  15. Class Exercise

    Week 11

  16. CSS3 Animatics
  17. Class Exercise

    Week 12

  18. Final: Modular Navigation

    Week 13

  19. Multimedia Demonstration

    Week 14

  20. Forms
  21. Peer Review Notes / Advice

    Week 15

  22. Final — You have 5 days extra to hand it in before I determine my final grade

Each assignment exhibits a skill. If you have used that skill in building your portfolio, link to that page and explain how it satisfies the homework. For example, for Week 11 CSS Animatics, if you used a hover that fades in your final, point to the page that exhibits that feature and let me know where to look if it is not completely obvious.

The final website sells something. It does not have to be lots of pages but the quality has to be ready for public scrutiny. It should have many of the topics we covered, like CSS3, Multimedia, PHP, forms, media queries, etc.

Definitions

These are the terms that participants should be familiar with during this unit:

Codec

A codec is a device or computer program capable of encoding and/or decoding a digital data stream or signal. The word codec is a portmanteau of ‘compressor-decompressor’ or, more commonly, ‘coder-decoder’. A codec (the program) should not be confused with a coding or compression format or standard – a format is a document (the standard), a way of storing data, while a codec is a program (an implementation) which can read or write such files. In practice “codec” is sometimes used loosely to refer to formats, however.
A codec encodes a data stream or signal for transmission, storage or encryption, or decodes it for playback or editing. Codecs are used in videoconferencing, streaming media and video editing applications. A video camera’s analog-to-digital converter (ADC) converts its analog signals into digital signals, which are then passed through a video compressor for digital transmission or storage. A receiving device then runs the signal through a video decompressor, then a digital-to-analog converter (DAC) for analog display. The term codec is also used as a generic name for a video conferencing unit.

H.264
Out of the three standards, H.264 has the momentum, the quality and the recognition among media professionals. It also has the backing of a massive consortium of some of the industry’s biggest companies, including Microsoft and Apple, via MPEG LA. And therein lies its critics chief complaint: H.264 is not free.
For consumers, yes, it’s free. And most developers won’t have to worry about licensing issues (for now). However, that may not be the case for video distribution sites. The ins and outs of H.264 patent licensing go well beyond the scope of this article (and gets really confusing to boot) but suffice it to say that people have questions.
For most developers, the patent issue will largely boil down to a philosophical argument between open standards and image quality. H.264 provides a higher image quality and better streaming than Ogg (see below) and VP8 (WebM). It also enjoys a performance advantage due to hardware acceleration on multiple platforms including PC and mobile devices.
Lastly, consider ease of production, not an insignificant issue. All major video editors, including Final Cut, Adobe Premiere and Avid, export to H.264 format. The same can’t be said for Ogg Theora or VP8. If your shop is producing its own video, and a lot of it, using H.264 exclusively will shave a big chunk off your workflow.

Ogg Theora

Ogg is the only standard that is truly unencumbered by patent. However, it is also arguably the lowest in quality, though not by much. Multiple head to head comparisons against H.264 have favored the latter. While Ogg encodes to a slightly tighter file, it produces a lower image quality than H.264 and suffers even more in its streamability.

VP8 (WebM)

Between the two extremes of high quality but patent-encumbered (H.264) and marginal quality but royalty-free (Ogg) rests VP8, probably the most controversial standard of the three. So far, tests have shown that H.264 provides a slightly higher quality video than VP8 but that difference is negligible for most commercial purposes.
The bigger question is that of open standards. On one side of the debate, you have Google backing away from H.264 in favor of its “open” WebM standard, even going so far as to release WebM under a Creative Commons license. On the other hand, you have pretty much everyone else arguing that, in this case, “open” may not really mean “open”. Using the example of the JPEG lawsuits, for example, Microsoft points out that even if WebM is not patent encumbered by Google’s account, without explicit user indemnification from Google, many companies and individuals could still open themselves to patent infringement lawsuits, ostensibly from MPEG LA, by deploying WebM video.