assignment 1chapter 4
assignment 1chapter 4
DEVELOPMENT
Assignment #01
SUBMITTED BY:
Tahreem Rafaqat
ID: 223316
Amna Altaf
ID: 223317
SEMESTER:
5th
SUBMITTED TO:
Sir Sheraz Tariq
Program 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Welcome</title>
</head>
<body>
<p> Hello and Welcome to XHTML!</p>
</body>
</html>
Output:
Program 2
Output:
Program 5
Output:
Program 6
Output:
<head>
<title>Contacts</title>
</head>
<body>
<p>Click
<a href = "mailto:[email protected]">here</a>
to email me</p>
<p>All information on this site is <strong>© of
pakaims & Associates, Inc. 2004.</strong></p>
<p><del>You may download 3.14 x 10<sup>2</sup>
</body>
</html>
Output:
Program 8 Code:
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>Links</title>
</head>
<body>
<ul>
</ul>
</body>
Program 1
Code:
<!DOCTYPE html>
<html>
</html>
Output:
DEVELOPMENT
Assignment #03
Tahreem Rafaqat
Name
ID 223317
Semester 5th
<title>Welcome to JS Program</title>
<script type="text/javascript">
document.writeln(
"<h1>Welcome to JS first program!! <br> Web programming is amazing.</h1>"
);
</script>
</head>
</html>
Output:
Program 3
Code:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
document.writeln("<h1 style =\"color :magenta\">");
document.writeln("Welcome to JS first program!! <br> Web programming is
amazing.</h1>");
</script>
</head>
</html>
Output:
Program 4
Code:
<!DOCTYPE html>
<html>
<head>
</head>
</html>
Output
Program 4
Code:
<!DOCTYPE html>
<html>
<head>
num1 = parseInt(firstnum);
num2 = parseInt(Secondnum);
num3 = parseInt(Thirdnum);
</body>
</head>
</html>
Output:
Program 5
Code:
<!DOCTYPE html>
<html>
<head>
if ( hour < 12 )
document.write( "<h1>Good Morning, " );
if ( hour >= 12 )
{
if ( hour < 6 )
document.write( "<h1>Good Afternoon, " );
if ( hour >= 6 )
document.write( "<h1>Good Evening,
" ); } // end if
document.writeln( name +
</script>
</head>
<body>
</body>
</html>
Output: