HTML Head Title Title Head Body h2 h2 A Img A BR A A BR A A BR A Input A BR Body HTML
HTML Head Title Title Head Body h2 h2 A Img A BR A A BR A A BR A Input A BR Body HTML
HTML Head Title Title Head Body h2 h2 A Img A BR A A BR A A BR A Input A BR Body HTML
<html >
<head>
<title></title>
</head>
<body>
<h2>Html links</h2>
</body>
</html>
Qn 2
<html >
<head>
<title></title>
</head>
<body>
<h1>Inline elements</h1>
<abbr title="Kantipur City College">KCC</abbr>affiliated to purvanchal university
(abbr)<br />
<p>Yuraj khadka</p>
<p><bdo dir="rtl">Yubraj khadka</bdo>(right to left) (bdo)</p>
<p> <bdo dir="ltr">Yubraj khadka</bdo>(left to right)(bdo)</p>
<p><cite>The Scream</cite>by Edward Munch.Painted in 1893.(cite)</p>
</body>
</html>
Qn 3
<html >
<head>
<title></title>
</head>
<body>
<h1 style="background-color:rgb(0,0,0)">rgb(0,0,0)black</h1>
<h1 style="background-color:rgba(225,0,0,1)">red</h1>
<h1 style="background-color:#00ff00">green</h1>
<h1 style="background-color:hsl(0,100%,50%)">red</h1>
<h1 style="background-color:hsla(0,100%,64%,0.5)">Hello</h1>
</body>
</html>
Qn4
<html >
<head>
<title></title>
</head>
<body>
<h1>Details and Summary tag</h1>
<details>
<summary>C++</summary>
<p>C++ is one of the world's most popular programming languages.<p>
<p>C++ can be found in today's operating systems, Graphical User Interfaces, and embedded
systems.</p>
<p>C++ is portable and can be used to develop applications that can be adapted to
multiple platforms.</p>
<p>As C++ is close to C# and Java, it makes it easy for programmers to switch to C++ or
vice versa
</p>
</details>
</body>
</html>
Qn 6
<html >
<head>
<title>selector</title>
<h1>simple class and id and universal grouping selector </h1>
<style>
.demo {
text-align:center;
color:yellow;
}
p#p1{
color:red;
}
</style>
<style>
* {
text-align:center;
color:blue;
}
</style>
<style>
p{ color : red;}
</style>
</head>
<body>
<h2 class="demo">Mathatics</h2>
<p class="demo">Set is a collection of well define object.</p>
<h2>mathmatics</h2>
<p>set is a collection of well define object</p>
<p id="p1">Html</p>
</body>
</html>
<html >
<head>
<title></title>
<style>
h1, p {
color:red;
}
</style>
</head>
<body>
<h1>Heading 1</h1>
<p>paragraph1</p>
</body>
</html>
Qn 5
<html >
<head>
<style>
h1 {
color: blue;
}
p { color:red};
</style>
<title>internalselector</title>
</head>
<body>
<h1>Programming subject</h1>
<p>C++</p>
<p>C</p>
<p>HTML</p>
</body>
</html>
<html >
<head>
<link rel="stylesheet" type="text/css" href="style1.css" />
<title>External CSS</title>
</head>
<body>
<p>
The complexity of the logic diagram tha implements a Boolean functions
is related directly to the complexity of the algebric expression from which the
functions
is implemented
</p>
</body>
</html>
<html >
<head>
<style type="text/css">
p{color:green}
</style>
<title>css</title>
</head>
<body>
<p>The complexity of the logic diagram tha implements a Boolean functions
is related directly to the complexity of the algebric expression from which the
functions
is implemented</p>
<p style="color:red">The truth table representation of a function in unique but the
function can appear in many
different forms.</p>
</body>
</html>
Qn 7
<html >
<head>
<style>
div p {
background-color:yellow;
}
</style>
<title></title>
</head>
<body>
<h1>Combinator selector</h1>
<h1>Descendant selector</h1>
<div>
<p>paragraph 1.</p>
<p>paragraph 2.</p>
<section><p>paragraph 3.</p></section>
<p>paragraph 4.</p>
</div>
</body>
</html>
<html >
<head>
<style>
div > p {
background-color: red;
}
</style>
<title></title>
</head>
<body>
<div>
<p>paragraph 1.</p>
<p>paragraph 2.</p>
<section><p>paragraph 3.</p></section>
<p>paragraph 4.</p>
</div>
<p>paragraph 5.</p>
</body>
</html>
<html >
<head>
<style>
div ~ p {
background-color: aqua;
}
</style>
<title></title>
</head>
<body>
<p>paragraph 1.</p>
<div>
<p>paragraph 2.</p>
</div>
<p>paragraph 3.</p>
<code>some code</code>
<p>paragraph 4.</p>
</body>
</html>
<html >
<head>
<style>
div + p {
background-color: aqua;
}
</style>
<title></title>
</head>
<body>
<div>
<p>paragraph 1 in a div.</p>
<p>paragraph 2 in a div.</p>
</div>
<p>paragraph 3 after a div.</p>
<p>paragraph 4 after a div.</p>
<div>
<p>paragraph 5 in a div.</p>
</div>
<p>paragraph 6 after a div.</p>
</body>
</html>