image: The img tag is used to attach image to the html file through its src attribute.
a: Anchor tag is used to link a url with its href attribute.
Following is the hierarchy required for the tags:
- title is declared in the head of the html
- div is declared inside the body and it gives a structure to the html
- image can be defined anywhere inside the body
- a tag can be declared anywhere where-ever linking is required inside the body.
Code
<!doctype html>
<html lang="en">
<head>
<title>Practical 2 - CSU953 - CSE 2026</title>
</head>
<body class="position-relative top-50 start-50 translate-middle-x">
<a href="https://shooliniuniversity.com"><img src="https://shooliniuniversity.com/assets/images/logo.png"></a>
</body>
</html>