Web Design- Adding Image in Html Document
Web Design- Adding Image in Html Document HTML IMG TAG - Used to insert image in html document - <img> tag is used to insert image -Attributes src: specifies destination of image alt: displays name if image not loads the picture height : displays height of image width: gives width of image inserted Some codes of img tag <html> <head> <title>Understanding about image tag</title> </head> <body> <h3>Adding image in html</h3> <img src="Background.png" height=500px width=700px align="center" alt="background"><br> <img src="Background.png" alt="Image" align="middle"> <img src="Background.png" alt="Image" style="display:block; margin:auto;"> <h1>Hello! i am John.</h1> <br> <h2> This is my official website </h2> </body> </html> Output: Click here to watch tutorial