• Home   /  
  • Archive by category "1"

Html Assignment

, etc.) text on each page.
-The pages should link to each other with “relative” URLs.
-Each page should also include at least one “absolute” URL linking to an external website.
-You should include at least one image (JPG, PNG, or GIF) on each page. (We’ve not covered image editing yet but feel free to use images from your digital camera or smartphone as well as images downloaded from the Web.)
-All img elements should include src, width, height, and alt attributes with appropriate values.
-You should also include an HTML table somewhere on one of your pages.
-Pay close attention to your HTML tags and be sure to test your pages locally using Firefox, Safari, or Chrome.

Publishing Your Site
Upload your “me” directory, including the HTML and the image files, to the i6 Unix server with an FTP client such as Fetch (from ITS) or WinSCP. Your files should go in the same, “public_html” directory that your assignments page is in. Test your pages again using Firefox, Safari, or Chrome once they are “live” on the Web server to make sure they are accessible.

Finally, create a link from the “HTML” line of your assignments directory to the home page of your new website.

Submitting Your Assignment
Submit the following via NYU Classes. More information on submitting files with NYU Classes is available here.

The URL to your pages in the general form of http://i6.cims.nyu.edu/~netid/
A compressed file containing all the files of your new website
Please note that you are required to submit files along with URLs in order to receive credit for your work.

Grading
This assignment is worth 10 points.

A new website of at least three pages about the student. (3 points)
Website should be in its own subdirectory called “me” and the home page should be an “index.html” file. (1 point)
Each page should contain both paragraph and heading text. (1 point)
Pages should link to each other with relative URLs. (1 point)
Each page should also include an absolute URL linking to an external website. (1 point)
Each page should include at least one image in JPG, PNG, or GIF format. (1 point)
All image elements should include src, width, height, and alt attributes with appropriate values. (0.5 point)
At least one of the pages should include an HTML table (1 point)
The assignments directory page from Assignment 1 should include a relative URL linking to the home page of this assignment. (0.5 point)
Points may be deducted for improperly formed HTML elements.

JavaScript Assignment

❮ PreviousNext ❯


JavaScript Assignment Operators

Assignment operators assign values to JavaScript variables.

OperatorExampleSame As
=x = yx = y
+=x += yx = x + y
-=x -= yx = x - y
*=x *= yx = x * y
/=x /= yx = x / y
%=x %= yx = x % y
<<=x <<= yx = x << y
>>=x >>= yx = x >> y
>>>=x >>>= yx = x >>> y
&=x &= yx = x & y
^=x ^= yx = x ^ y
|=x |= yx = x | y
**=x **= yx = x ** y

The **= operator is an experimental part of the ECMAScript 2016 proposal (ES7). It is not stable across browsers. Do not use it.


Assignment Examples

The = assignment operator assigns a value to a variable.

The += assignment operator adds a value to a variable.

The -= assignment operator subtracts a value from a variable.

The *= assignment operator multiplies a variable.

The /= assignment divides a variable.

The %= assignment operator assigns a remainder to a variable.


Test Yourself with Exercises!

Exercise 1 »  Exercise 2 »  Exercise 3 »  Exercise 4 »  Exercise 5 »


❮ PreviousNext ❯

One thought on “Html Assignment

Leave a comment

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *