HTML Attributes

HTML attributes are used to add additional information to elements. For example, you can use the href attribute to specify the URL of a link. The syntax for an HTML attribute is:

attribute_name="attribute_value"

For example, the following code of the anchor tag creates a link to the TumkurLab homepage:

<a href="https://www.tumkurlab.com">TumkurLab</a>

Task

Add the code given below after © 2023 My Portfolio. Add the URL https://www.example.com/ within the href attribute and text Your Name and run the code to see the results and experiment with the code to get used to it..

Created by <a href="">Your Name</a>
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT