In: Computer Science
Here is the code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p>this is an example</p>
<img src="logo.jpg" >
</body>
</html>
Explaination: For paragraph we use <p> tag and for image <img> tag and to show the alternate text "alt" attribute is used.
For better understanding of indendation, i am attaching screenshot from my editor and output from browser.
Output:
So,when it cannot find image or image cannot load,at that time it shows alternate text.
Note:-If you have any query or doubt,feel free to ask in comment section.