HTML ATTRIBUTES
HTML ATTRIBUTES
HTML attributes provide additional information about HTML elements.
HTML ATTRIBUTES
- All HTML elements can have attributes
- Attributes provide additional information about elements
- Attributes are always specified in the start tag
- Attributes usually come in name/value pairs like: name="value"
The href Attribute
The <a>
tag defines a hyperlink. The href
attribute specifies the URL of the page the link goes to:
example:
<a href="https://www.google.com">google</a>
if you will click on this I mean to say that (google) you will get a google home page where you search for something. besides this thing, you add some other website or your own website. like;👍
- <a href="https://www.facebook.com"> facebook</a>
- <a href="https://www.youtube.com"> youtube</a>
we will learn many kids of attributes like img,scr,
Comments
Post a Comment