SY306 Lab One
Your First Online Business ? and some redirection
Upon receiving your 2/C class loan, you decide you want to invest your money and start your own business. You want to create an online store. Now it is time to show your talent and flair. You get to pick your store (or selling platform - see online ?Lab Guidance?).
General Web Page Guidance:
All labs (that are web pages) should conform to basic standards and propriety. See the Lab Guidance document for specific guidance and for reminders that you may not use editors such as FrontPage, DreamWeaver, etc. for any assignment in this course.
For this particular lab, you must include all of the requirements listed below (for full credit). But keep in mind that merely doing these requirements is not enough. Carefully consider the website?s programming accuracy, functionality, artistic quality, and creativity (again, see the guidance).
You are encouraged to do some research. Browse the web for similar websites, pictures, and links. Discover webpage designs and functionality you would like to include in your site.
7. Validate your default.html page (you can click on the provided button) and correct any errors. Practice validating as you go ? do not leave it to the last minute! You are very likely to encounter validation errors, and at first they may be somewhat confusing. Allow enough time to work through these and get help as needed.
9. In Lab01, create a file ?index.html? (not index.htm). Use the starter.html page to begin. This page should look reasonably like the home page for your online store. In other words, the general message might be ?Welcome to the Mids Store Online!? not ?Welcome to Lab #1?. Your ?index.html? has to contain the following: (you can also create other HTML pages if desired, but the elements below should be in index.html)
a. Proper head element with title and meta element with character set defined (this must be in every html file and after this lab it will not be mentioned again, just expected)
b. An appropriate title of the page (heading). This is not the <title> in the head element, but the title or heading one sees upon opening your web site.
c. 1+ hyperlinks to another site. Avoid links that say ?click here? ? use a descriptive term instead.
d. 1 hyperlink to a page ?products.html? on the same folder, that you will be creating later in this lab
e. 1+ image(s), using appropriate attributes. For any image you get from the web, please include the original URL as a comment in your file.
f. 1+ ordered or unordered list(s)
g. A hyperlink to your own email address
h. A few reasonable comments in the source of your HTML files, explaining major sections or what is being accomplished. This may seem artificial for a simple page now, but is good practice. See examples in the main SY306 web page.
· The table has a caption, header and/or footer, and body, using the appropriate tags.
· The table provides some useful information regarding the products available on your website
· The body of your table should have at least 3 rows and 3 columns. You can include product descriptions, prices, etc. Be creative!
· The table must use spanning techniques to have one data element span two or more rows or two or more columns. The effects of the spanning should be visible (i.e. if you have a border for your table, the table looks different if you remove the spanning attributes)
Later we will generate this table dynamically, based on the products existing in your database, and we will provide a way to buy the products, but for now you just have to list the products.
· If your form is in a new signup.html page, include a link to signup.html in the index.html.
· Your form collects necessary information from the user such as username, password, name, rank, e-mail address, address, etc as appropriate for your topic.
· Your form should contain all of the following input types:
· checkbox, radio button, or select
· Use http://mope.academy.usna.edu/~adina/sy306/tools/FormChecker/submit.cgi as the action for your form. (Later in the course you will learn how to write this) Test that each of the inputs correctly transmits its information by viewing the output of submitting your form.
· Should you use GET or POST? ? pick the one that is appropriate for your form.
· At least one of the input fields in your form must use the ?required? attribute ? test that indeed your browser does not allow you to submit the form unless that field has a value. Did the browser block the submission? What browser did you use?
11. Ensure your pages work with Firefox and Chrome.
12. Ensure all your pages validate and that you have met all requirements. All your pages must have the validation button and the last modified data on them (same code as the starter page).
NOTE: all HTML files for this lab must validate as HTML5 without errors for full credit. The penalty for a file that does not validate is 10%. See the course home page for the validator links or just click the ?HTML5? button at the bottom of each page to invoke the local validator.
NOTE: Some of the requirements above you may not normally wish to be present in your particular web site. However, part of the lab process is to learn to use differing tags and attributes. Therefore incorporate them into this web site using your creativity and skills.
There are two ways to view your files:
Firefox: File -> Open File (go to public_html, then appropriate file).
The second method fetches your pages directly from your drive. The first method fetches your pages from the web server and displays them, so using this method provides more assurance that your files are configured as they need to be. The validator button also only works when using the first method.
If you change your page, but it doesn?t seem to change what is in the web browser, use the View -> Source (or Page Source) command from your browser. This will show you the raw HTML that your browser is displaying. You can also right click on a web page, and select View Source.
Throughout this course, expect extra credit to be worth a nominal number of points ? the main purpose is for your additional practice and challenge. Multiple parts may be given; you can attempt all, some, or none of these.
a) On your default.html page, under the name ?good sign-up? make a link to the file specified in the action of your form, with all of form variables specified in the URL, such that all variables are filled out. Clicking this link should have the same effect as if I filled out the form and submitted it. Hint: if your form uses the GET method (change this temporarily if necessary), then you can create the needed URL for this by filling out your form correctly and hitting submit ? look at the resulting URL!
b) On your default.html page, under the name ?bad sign-up?, make a link to the file specified in the action of your form, will all the form variables specified in the URL, but the required variable (see the last bullet from part 3 ? Form requirements) has no value, and the ?hidden? variable has a value different than the value specified in the form. Hint: You can manually modify the ?good sign-up? URL.
1) Your main web page should be called "default.html" (without the quotes) and it should contain your name, alpha, a link to Lab01/index.html, and the disclaimer.
2) All of your files for Lab01 should be in a folder called "Lab01" (without the quotes) under your public_html.
3) Your web pages for Lab01 should be called "index.html", ?products.html?, and optionally ?signup.html? (without the quotes) and placed inside the folder Lab01.
4) Your instructor will assume that your web pages are viewable at http://mope.academy.usna.edu/~mXXXXXX/default.html , http://mope.academy.usna.edu/~mXXXXXX/Lab01/index.html and
http://mope.academy.usna.edu/~mXXXXXX/Lab01/products.html where XXXXXX is your alpha number.
5) All files must be complete and saved to your public_html folder before you submit the hardcopy of your assignment. Do NOT modify your files after you have submitted your assignment. For next week you will modify default.html and create Lab02/, but nothing in Lab01/ should change.
6) Turn in the following hardcopy on or before the due date, stapled together in the following order (coversheet on top):
a) A completed assignment coversheet. Your comments will help us improve the course.
b) The first page of the output of the HTML5 validator, as run on the final version of your Lab01/index.html. This should show that your document correctly validated, but turn it in anyway if you can?t get your page to validate.
Your default.html should contain the following disclaimer (other pages don?t have to). Feel free to cut and paste from the assignment page.