You are on page 1of 3

Q1)

<!DOCTYPE html>

<html lang="en">

<head>

<title>Document</title>

</head>

<body>

</body>

</html>

Q2)

The anchor tag (<a>) defines a hyperlink, which is used to link one page to another. You can make a link
open in a new tab when clicked by adding the target=”_blank” attribute.

Q3)

An attribute provides additional information about an element in HTML.

Q4)

A heading can be written in 6 different ways in HTML ranging from h1 to h6.

Q5)

HTML:

<!DOCTYPE html>

<html lang="en">

<link rel="stylesheet" href="S08_project.css">


<head>

<title>Document</title>

</head>

<body>

<h2>Lorem ipsum dolor sit amet consectetur.</h2>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Harum, perferendis inventore? Neque
aperiam nemo in numquam unde sunt maxime! Magni soluta nesciunt esse mollitia ullam aut dolorem,
veritatis numquam dolor. Iusto sint voluptates aliquam eum et quo cumque consequuntur
necessitatibus?</p>

</body>

</html>

CSS:

h2, p{

background-color: blueviolet;

Q6)

HTML:

<!DOCTYPE html>

<html lang="en">

<head>

<title>About Me</title>

<link rel="stylesheet" href="S08_project.css">


</head>

<body>

<h2>Who am I?</h2>

<p>I am Rajvardhan Jha and I am 10 Years Old!</p><br>

</body>

</html>

CSS:

body{

background-image:url(https://wallpaperaccess.com/full/731628.jpg);

background-repeat: no-repeat;

background-attachment: fixed;

background-size: cover;

Q7)

The id selector selects the id attribute of an HTML element to select a specific element. An id is always
unique within the page and it selects a unique element.

The class selector selects the class attribute of an HTML element. A class is not unique within the page
and it can select multiple element.

You might also like