Professional Documents
Culture Documents
S08 Project
S08 Project
<!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)
Q4)
Q5)
HTML:
<!DOCTYPE html>
<html lang="en">
<title>Document</title>
</head>
<body>
<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>
<body>
<h2>Who am I?</h2>
</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.