Skip to content

Instantly share code, notes, and snippets.

@chandresh
Created June 23, 2013 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chandresh/5843478 to your computer and use it in GitHub Desktop.
Save chandresh/5843478 to your computer and use it in GitHub Desktop.
Class Work for today
Class Work:
Create account in github.
3 pages:
1. Homepage:
- image
<img src="xyz.jpg" >
- css file
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
- The image should have borders using css.
- body should have a background color, of your choice, should not be white :)
- 2 links to about & contact us page.
--------------
2. About us
- a lot of text within a p tag.
- atleast 2-3 images.
- Link to homepage & contact page.
------------
3. Contact:
- a form with 4-5 fields:
- name
- email
- phone
- comments
- Link to homepage and about us page.
-----------------------
extra: Validate the form using JavaScript to make sure that the users type in all the information.
@chandresh
Copy link
Author

Issues I found so far in the code shown:

  1. You need to use relative path ("abc.jpg") instead of full-path (c:/xyz/abc.jpg) in the links & img tag.
  2. Most of you are not using stylesheet to specify the styles. Mostly have inline styles.
  3. Some of you are not writing HTML first. Some of you have been writing the css first and then HTML and thats a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment