0% found this document useful (0 votes)
94 views

Assignment: Website: 1. Insert Table

The document provides instructions for completing an assignment to build a website. It includes: 1. Explaining what a DOCTYPE declaration is and providing an example. 2. Describing navigation menus and providing an example. 3. Instructing to insert content between div tags. 4. Demonstrating how to display the last updated date using JavaScript. 5. Advising how to save and run the web page.

Uploaded by

arifudin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views

Assignment: Website: 1. Insert Table

The document provides instructions for completing an assignment to build a website. It includes: 1. Explaining what a DOCTYPE declaration is and providing an example. 2. Describing navigation menus and providing an example. 3. Instructing to insert content between div tags. 4. Demonstrating how to display the last updated date using JavaScript. 5. Advising how to save and run the web page.

Uploaded by

arifudin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

ASSIGNMENT : WEBSITE

1. Insert Table

2. Text Colour

3. What is a Declaration and give a example

The <!DOCTYPE> declaration must be the very first thing in your HTML
document, before the <html> tag.
The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the
web browser about what version of HTML the page is written in.
In HTML 4.01, the <!DOCTYPE> declaration refers to a DTD, because HTML
4.01 was based on SGML. The DTD specifies the rules for the markup
language, so that the browsers render the content correctly.
HTML5 is not based on SGML, and therefore does not require a reference to a
DTD.
Tip: Always add the <!DOCTYPE> declaration to your HTML documents, so
that the browser knows what type of document to expect.

EXAMPLE :
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>

4. What is Navigation Menu and give example


Navigation is the most significant element in web
design. Since web-layouts dont have any physical
representation a user can stick to, consistent navigation
menu is one of the few design elements which provide
users with some sense of orientation and guide them
through the site. Users should be able to rely on it which is
why designers shouldnt mess around with it.

Example :

cvv

5. Insert Background Colour.

6. Set page to center

2
Create the basic HTML skeleton of the website.

5
Place any content for the site between the <div> </div> tags.

7. Insert Last Update


<BODY>
<CENTER>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin

var days = new Array(8);


days[1] = "Sunday";
days[2] = "Monday";
days[3] = "Tuesday";
days[4] = "Wednesday";
days[5] = "Thursday";
days[6] = "Friday";
days[7] = "Saturday";
var months = new Array(13);
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";
var dateObj = new Date(document.lastModified)
var wday = days[dateObj.getDay() + 1]
var lmonth = months[dateObj.getMonth() + 1]
var date = dateObj.getDate()
var fyear = dateObj.getYear()

if (fyear < 2000)


fyear = fyear + 1900
document.write(wday + ", " + lmonth + " " + date + ", " +
fyear)
// End -->
</SCRIPT>
</CENTER>
</BODY>

8. Page Break
<html>
<body>
This is the text for page #1.
<p style="page-break-before: always">
Page #2...
<p style="page-break-before: always">
Page #3...
</body>
</html>

9. Create Marquee Text

10. How to Save and Run Web

Step 1 : Click Save As..

Step 2 : Write the File name and change the


format file as htm
Ex: DIN.htm
Step 3 : Click save at any folder..and open the file
that format htm or html

You might also like