Website Css
Website Css
Ans.
<html>
<head>
<title>Page 1 hello</title>
</head>
<body>
<h1>This is a Heading</h1>
</body>
</html>
Q2. Write all text style tags in HTML. ?
Ans.
<html>
</head>
<body>
</body>
</html>
Q3. Write an HTML CODE to create a HTML page , which has properly aligned paragraphs with image
along with it.
Ans.
<html>
<head>
<style>
.container {
display: flex;
align-items: center;
.text {
margin-right: 20px;
</style>
</head>
<body>
<div class="container">
<div class="text">
</div>
</div>
</body>
</html>
Q4.write a program to display list of all items in different style.?
Ans.
<html>
<head>
<title>Item List</title>
</head>
<body>
<h2>Unordered List</h2>
<ul>
<li>hello 1</li>
<li>hi2</li>
</ul>
<h2>Ordered List</h2>
<ol>
<li>First hello</li>
<li>Second hi</li>
</ol>
<h2>Description List</h2>
<dl>
<dt>Item 1</dt>
</dl>
</body>
</html>
Q5. write a program of table using an example of a class record.?
Ans.
<html>
<head>
<title>Class Record</title>
</head>
<body>
<h2>Class Record</h2>
<table border="1">
<tr>
<th>Student Name</th>
<th>Grade</th>
<th>Remarks</th>
</tr>
<tr>
<td>John Doe</td>
<td>A</td>
<td>Excellent</td>
</tr>
<tr>
<td>Jane Smith</td>
<td>B</td>
<td>Good</td>
</tr>
</table>
</body>
</html>
Q6. Write an Html code to demonstrate the usage of inline CSS.
<html>
<head>
</head>
<body>
</body>
</html>
Q7 Write an Html code to demonstrate the usages of internal CSS.
<html>
<head>
<style>
body {
background-color: lightgrey;
h1 {
color: green;
</style>
</head>
<body>
</body>
</html>
8 Write an Html code to demonstrate the usages of external CSS.
<html>
<head>
</head>
<body>
</body>
</html>
9 Write an html code to create a home page having three links: about Us, Our services and contact Us.
Create separate web page for three links.
a) <html>
<head>
<title>Home Page</title>
</head>
<body>
<ul>
</ul>
</body>
</html>
b) <html>
<head>
<title>About Us</title>
</head>
<body>
</body>
</html>
c) <html>
<head>
<title>Our Services</title>
</head>
<body>
<h1>Our Services</h1>
</body>
</html>
D)<html>
<head>
<title>Contact Us</title>
</head>
<body>
<h1>Contact Us</h1>
</body>
Q 10 Write an Html code to create a login form.
<html>
<head>
<title>Login Form</title>
</head>
<body>
<h2>Login</h2>
<label for="username">Username:</label>
<br>
<label for="password">Password:</label>
<br>
</form>
</body>
</html>
11. Write an html to create a Registration Form. <html>
<html>
<head>
<title>Registration Form</title>
</head>
<body>
<h2>Register</h2>
<label for="name">Name:</label>
<br>
<label for="email">Email:</label>
<br>
<label for="password">Password:</label>
<br>
</form>
</body>
</html>
About US
Q12.write an html code to create your Department Website.
<html>
<head>
<style>
.container {
display: flex;
align-items: center;
.text {
margin-right: 20px;
</style>
</head>
<body>
</div>
</body>
</html>
<html>
<head>
<title>Department Website</title>
<style>
body {
}
header, footer {
background-color:Green;
color:white;
text-align: center;
padding: 7px 3;
nav {
margin: 10px 0;
nav a {
margin: 0 10px;
color: green;
text-decoration: none;
</style>
</head>
<body>
<header>
</header>
<nav>
<a href="file:///C:/Users/pc4/Desktop/Courses%20.html">Courses</a>
<a href="file:///C:/Users/pc4/Desktop/y%20.html">Faculties</a>
<section id="about">
</section>
<section>
<section>
</section>
<footer>
</footer>