Anda di halaman 1dari 2

Homework 1

WEB PAGE Requirements: After reading through chapters 1 and 2, its time to create your own page. 1. Getting Started o Begin by opening up your favorite text editor to write your code. o Create a template html document which includes all your basic tags necessary for any html page. a!e sure that it includes a "octype declaration #see page $% to find out why&. 'ave this file and use this file to begin any homewor! file. 2. Requirements( o )ou are to create a simple hobby page. *t will include a few of the following items and these items styled with items covered in chapter 2( o A header #e.g. y hobby name& o A paragraph with a description of my hobby o An image that is appropriate for my hobby o A small list of lin!s for my hobby. #'ee the +eb ,in!s section of the classroom for a lin! on how to properly style lin!s.& o inimum of - selectors #body, h tags, p, a, hr, etc.& o inimum of - declarations #margins, bac!ground, font, color, margin, width, etc.& o ...'pecial /ote.... 0here is not be A/) tags or attributes used that can be done via styles. )ou must get accustomed to doing styles instead of attributes and deprecated tags. 1xamples of what /20 to use include( o 0he 3center4 tag and the 5align6center7 attribute. )ou can use C'' declarations li!e 5text8align7, and 5margin8left7 9 5margin8right7 to center text and elements. o 0he 5width7 and 5height7 attributes on the image. )ou can set width and height attributes of an image using C''. 'ee the following lin! for more information( http(99www.w$schools.com9css9css:dimension.asp 3. Final Requirements o 0he style used on your first page will be demonstrating 5embedded styles7. 0his file will be named 5+ee!11mbedded.html7. o 0he second file will be identical to your embedded file except it will use an external stylesheet instead of embedded styles. o 0his file will be named 5+ee!11xternal.html7. o 0he stylesheet will be name 5style.css7. Create a lin! page, index.htm, which lin!s both of your files( Week1Embedded.html and Week1External.html. Create a ;*< file that contains all images, html, and C'' files for submitting. Attach the =ip file to the assignment lin! in the online classroom.

A sample hobby page.

Anda mungkin juga menyukai