Assignment - 1 HTML & CSS: Output
Assignment - 1 HTML & CSS: Output
<html>
<head>
<link rel="stylesheet" type="text/css" href="blog1.css">
<title>blog1</title>
</head>
<body>
<p>My blog about my life</p>
</body>
</html>
CSS
p{
text-align:center;
margin-top:30px;
font-weight:bold;
background-color:yellow;
font-size:38px;
}
Output
Step 2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>blog2</title>
Name – Sahil Sarwar (150)
CSS
h3{
font-size: 30px;
font-weight: bolder;
}
p{
text-align: left;
font-size: 20px;
}
Output
Step 3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>blog3</title>
Name – Sahil Sarwar (150)
</body>
</html>
CSS
body{
border-left: 3px solid green;
}
li{
padding: 15px;
font-size: 25px;
text-align: left;
}
.lista{
font-size: 30px;
font-weight: bolder;
padding: 15px;
}
.listb{
font-size: 25px;
font-weight: bold;
Name – Sahil Sarwar (150)
padding: 15px;
text-align: left;
}
ul{
padding: 15px;
list-style: none;
}
Output
Step 4
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>blog4</title>
<link rel="stylesheet" href="blog4.css">
</head>
<body>
<h3>Last points</h3>
<p>
<a href="#">Meeting with supervisor</a>
<br>
<a href="#">New Car!!!</a>
<br>
<a href="#">Visit my parents</a>
</p>
</body>
</html>
CSS
body{
border: 3px dashed green;
}
Name – Sahil Sarwar (150)
h3{
font-size: 35px;
font-weight: bolder;
text-align: right;
padding: 2px;
}
p{
font-size: 25px;
padding: 2px;
text-align: right;
}
Output
Step 5
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>blog5</title>
</head>
<body>
<center>
<p>
Contact us:
<a href="#">email@something.com</a>
</p>
</center>
</body>
</html>
Name – Sahil Sarwar (150)
Output
Step 6
Output
Question 2
Step 1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
Name – Sahil Sarwar (150)
</body>
</html>
CSS
h3{
font-size: 50px;
font-weight: bolder;
font-family: Tahoma;
padding-left: 60px;
}
p{
font-size: 30px;
font-family: Tahoma;
padding-left: 60px;
color: grey;
}
body{
margin-left: 5%;
}
Name – Sahil Sarwar (150)
Output
Step 2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS2</title>
<link rel="stylesheet" href="js2.css">
</head>
<body>
<h3>Introduction</h3>
<p>JavaScript is a cross-platform,object-
oriented scripting language. It is a small and lightweight language. Inside a
host environment(for example- a web browser), JavaScript can be connected to t
he objects of its environment to provide programmatic control over them.</p>
<p>JavaScript contains a standard library of objects, such as Array, Date
and Math, and a core set of language elements such as operators, controlb stru
ctures, and statements. core JavaScript can be extended for a variety of purpo
ses by supplementing it with additional objects: for example:</p>
<ul>
<li>Client side JavaScript extends the core language by supplying
</li>
</ul>
</body>
</html>
CSS
h3{
font-weight: bolder;
font-size: 45px;
margin-top: 50px;
margin-left: 5%;
Name – Sahil Sarwar (150)
}
p{
font-size: 40px;
margin-top: 10px;
margin-left: 10%;
padding-top: 10px;
color: grey;
}
li{
font-size: 40px;
margin-right: 10%;
margin-left: 10%;
color: grey;
}
body{
padding-right: 10%;
}
Output
Step 3
<html>
<head>
<title>My JS</title>
</head>
</html>
Name – Sahil Sarwar (150)
Output
Question 3
<!DOCTYPE html>
<html lang="en">
<head>
<title>Table</title>
<link rel="stylesheet" href="table.css">
</head>
<body>
<h3>
CURRICULUM
<br>
VITAE
</h3>
<header>
PERSINAL DATA
</header>
<P>
<i>Name:</i>
Azamat
<br>
<i>Surname:</i>
Azamat
<br>
<i>Date of birth:</i>
30.07.74
<br>
<i>Place of birth:</i>
Bishkek, Kyrgystan
</P>
Name – Sahil Sarwar (150)
<header>
EDUCATION
</header>
<table>
<tbody>
<tr>
<td class="l">2005-2009</td>
<td class="r">Computer Engineering inthe technocal University
of Kyrgystan in Bishkek</td>
</tr>
<tr>
<td class="l">2001-2005</td>
<td class="r">High School "Manas" in Osh</td>
</tr>
<tr>
<td class="l">1995-2001</td>
<td class="r">Primary School</td>
</tr>
</tbody>
</table>
<header>
PROFESSIONAL EXPERIENCE
</header>
<table>
<tbody>
<tr>
><td class="l">2007-2009</td>
<td class="r">Computer teacher in High School in Bishkek</td>
</tr>
<tr>
<td class="l">2005-2007</td>
<td class="r">Secretary of Department of Software</td>
</tr>
</tbody>
</table>
</body>
</html>
CSS
body{
border:3px solid black;
margin: auto;
width:35%;
Name – Sahil Sarwar (150)
height:55%;
}
h3{
text-align: center;
background-color: lightgray;
color: blue;
letter-spacing: 8px;
font-weight: bolder;
font-size: 40px;
margin-left: 10px;
margin-right: 10px;
padding: 10px;
}
p{
font-family:Arial, Helvetica, sans-serif;
font-size: 25px;
margin-left:10px;
margin-top:0;
padding-bottom: 50px;
}
header{
font-weight: bold;
font-size: 30px;
color: brown;
letter-spacing: 8px;
margin-left: 10px;
}
table{
padding:20px;
}
td{
font-family:Arial, Helvetica, sans-serif;
margin-left:7px;
padding-bottom:20px;
}
td.l{
font-weight: bold;
font-size: 25px;
padding-left: 20px;
padding-right: 50px;
font-family:Arial, Helvetica, sans-serif;
width: 250px;
}
td.r{
font-size: 25px;
font-family:Arial, Helvetica, sans-serif;
}
Name – Sahil Sarwar (150)
Output
Question 4
Step 1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kitten Kare</title>
<link rel="stylesheet" href="kitten.css">
</head>
<body>
<h3>Kitten Kare</h3>
<nav class="navbar">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
</ul>
</nav>
</body>
</html>
CSS
h3{
font-size: 50px;
background-color: lightgrey;
padding: 30px;
Name – Sahil Sarwar (150)
margin-bottom: 0px;
}
.navbar{
background-color: black;
}
.navbar ul{
overflow: auto;
margin: 0px;
padding: 1px;
}
.navbar li{
float: left;
list-style: none;
margin: 6px 6px;
border-right: 2px solid white;
padding-right: 10px;
}
.navbar li a{
padding: 3px 3px;
text-decoration: none;
color: white;
font-size: 30px;
}
body{
margin-left: 30px;
}
Output
Step 2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kitten2</title>
Name – Sahil Sarwar (150)
CSS
h3{
font-size: 50px;
font-weight: bold;
}
p{
font-size: 30px;
}
body{
padding-left: 100px;
}
Output
Step 3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>kitten3</title>
Name – Sahil Sarwar (150)
CSS
h3{
font-size: 40px;
font-weight: bold;
}
li{
font-size: 30px;
}
Output
Stop 4
<html
><head>
<title>Kitten Kare</title>
</head>
<frameset rows="13%,80%" frameborder="no">
<frame src="kitten.html">
<frameset cols="70%,9%" frameborder="no">
<frame src="kitten2.html">
Name – Sahil Sarwar (150)
<frame src="kitten3.html">
</frameset>
</frameset>
</html>
Output