Attributes provide additional information about HTML elements.
It is a necessary attribute that describes the source or path of the image. It instructs the browser where to look for the image on the server.
<!DOCTYPE html> <html> <body> <img src="help4code.jpg" alt="help4code.com" width="100" height="142"> </body> </html>The location of image may be on the same directory or another server.
<!DOCTYPE html> <html> <body> <h1>About help4code</h1> <p title=About W3Schools> Help4code.com is the largest collection of programs </p> <p><b> Here all technologies programs are available. </b></p> </body> </html>
<html> <head> <title> Href attribute </title> <body> <a href="https://www.google.co.in/">Google link</a> <hr> <a href="https://help4code.com/">help4code</a> <hr> <a href="www.nagpuruniversity.org/">RTMNU link</a> <hr> <a href="https://mahah.sscboard.maharashtra.gov.in/">SSC board link</a> <hr> <a href="msbte.com/msbte/">MSBT link</a> </body> </html>