Report
Report
We designed our first page and insert some images and text using HTML and CSS
to make our web more interested. Here is the code and the result.
<!DOCTYPE html>
<html>
<head>
<title>home page</title>
<style>
body{
background-color:palevioletred;
text-align: left;
text-decoration: none;
}
.icon-bar{
background-color: brown;
text-align: center;
font-size: 50px;
margin: 10px;
}
header{
text-align: center;
}
img{
width: 200px;
height: 200px;
border-radius: 100px;
}
</style>
</head>
<body>
<div class="icon-bar">
Q1. Create HTML web pages then link them together and use different inline and
internal styling on each page.
We linked our second page with the first one by using <a></a> tag here is the
code and the result.
Code
<!DOCTYPE html>
<html>
<head>
<title>my first page</title>
<style>
body{
background-color: lightblue;
colour:lightblue;
text-align: left;
font-family: Arial,sans-serif;
}
a{
color: purple;
text-decoration: aqua;
}
</style>
</head>
<body>
<h1>KANO POLYTECHNIC STUDENTS</h1>
<h2>COMPUTER SCIENCE DEPARTMENT</h2>
<P>SOFTWARE DEVELOPMENT STUDENTS</P>
<a href="grp.html"><button>previous</button></a>
</body>
</html>
Result.
<html>
<head>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8">
<title>Hello, World!</title>
</head>
<body>
<h1>GROUP MEMBERS</h1>
<h2>SOFTWARE AND WEB DEVELOPMENT</h2>
<label for="numberInput">ENTER A NUMBER</label>
}
</script>
<style>
body{
background-color: lightpink;
colour:darkgreen;
text-align: left;
font-family: 'Times New Roman', Times, serif;
}
a{
color: navy
text-decoration:none;
}
</style>
<a href="grp.html"><button>PREVIOUS</button></a>
</body>
</html>
<script>
function traverseDOM() {
// Target a specific element
var para2 = document.getElementById("para2");