HTML Generic Attributes

 Eduaction Management 959 Lahore

Code With Jahangir 

HTML Generic Attributes

FREE COURSES 

FREE CERTIFICATE

HTML Generic Attributes

Generic attributes include various attributes which are mostly used. Some common generic attributes are:

The “align” Attribute:

align attribute uses align name for HTML element and uses left, right, and center values to indicate the text accordingly. It is used for horizontal aligns tags.

 

The “valign” Attribute:

valign attribute uses valign name for HTML element and uses top, middle, and bottom values to indicate the text accordingly. It is used for vertical aligns tags.

 

The “bgcolor” Attribute:

bgcolor attribute uses bgcolor name to HTML element and uses numeric, hexadecimal, RGB code values to change the element's background color accordingly.

 

The “width” Attribute:

The width attribute uses the width name of the HTML element and uses numeric values to change the element’s width according to the numeric given.

 

The “height” Attribute:

The height attribute uses the height name of the HTML element and uses numeric values to change the element’s height according to the numeric given.

  

The “src” Attribute:

The src attribute is mostly used by the img element that we’ll be going to discuss later. This src attribute specifies the URL path to that element that is to be displayed. We can choose any of the two paths:

       Absolute path: This path contains the path of the external content.

       Relative path: This path contains the path of the internal content only. Relative paths are mostly used because content cannot be suddenly removed or changed. These are placed within a separate folder and that path is very well known to us

 

The “alt” Attribute:

The alt attribute is mostly used by the img element. This alt attribute specifies the alternate text to that image that is to be displayed. For some issues, if that image is not visible then alt text helps to tell us about the description of that image.

Eduaction Management 959 Lahore

Code With Jahangir 

HTML Generic Attributes

FREE COURSES 

FREE CERTIFICATE

Previous Post Next Post

Contact Form