HTML Attributes


Attributes provide additional information about HTML elements.

HTML Attributes




href Attribute:

Html links are defined with the <a> tag. The link address is specified in the href Attribute...:

Example :

<a href = "https://www.Example.com"> This is a link </a>



src Attribute:

Html images are defined with the <img src > tag.

Example :

<img src = "path of the file " >



width and height Attributes:

Html images have a size Attribute , which is specified the width & height of the image object :

Example :

<img src = "path of the file " width ="500 " height = " 400 " >



alt Attributes:

The alt Attribute is specifies an alternative text to be used , when an image can not open(display).

The alt attribute is also useful if the image does not exist..

Example :

<img src = "path of the image " alt ="hello " >


Some content coming soon......

HTML attribute.........



arrow_forward arrow_back

mode_edit

Follow OUR Tutorials

Follow us on social media.