HTML ATTRIBUTES

09:39:00 , 2 Comments


What is Attribute?
  • Attributes are Special Words.
  • Attributes provide Information.
  • Attributes are mainly used in the opening tag.
  • All HTML Elements have some attributes.

So Html Attributes can may defined as :

Those Special Words which are used inside a tag which gives Information about a HTML Element.

For Example :

< img src="URL to Img" width="200" height="400" alt="Image Name">

Here in The Example : "img" tag is used in which src ,width , height and alt attribute is used within the "img" tag which explains or give information to the tag.

So HTML attributes are in name value form separated by "=" and value covered with Double Inverted Commas.


These are the Some HTML attributes with their Functions/Usability :

 <img src="URL TO IMG">    Specifies the Path or Destination of Image Input.
 <video border="value">    Specifies the Border Thickness of Video Input.
 <img height="value"width="value">    Specifies the Height and Width of an Image Input.
 <a href="URL Here">    Specifies the Destination path of a Hyperlink.
 <p color="ColorName"align="center">    Specifies the Color and alignment of a paragraph.


For a Complete List of Html Attributes with their usage Click the Download Button.

Mughees Ashraf

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.

2 comments: