HTML TAGS PART 2

 BR TAG:

<br> tags are used for new line

PRG:

<html>
<body>
<p> COMPUTER LANGUAGES <br>
 C  <br>
 C++ <br>
 JAVA  <br>
 PYTHON </p> 
</body>
</html>

BUTTON TAG:

Button used to create button which are used to navigate from page to page.

<html>
<body>
<button> click </button>
</body>
</html>

In output you will find clickable button ,

LINK TAG:

<a href ="www.google.com"> click </a>

href = hyperlink reference

<html>
<body>
<a href ="https://www.google.com"> click here </a>
</body>
</html>
 
onclicking click here , it navigate to google.com

USING IMAGE AS LINK:

<html>
<body>
<a href="https://www.google.com">
<img src="googlelogo.jpg" alt="logo" width "100" height "200">
</a>
</body>
</html>


here <img> tag is used ,src means source 
here href ,alt,width,height is attributes

When image can't load the value in alt displays like below image



COMMENT YOUR OPINION BELOW👇💬


Comments