Computer Science, asked by Anupk, 1 year ago

What is the difference between Align and Valign attribute of the tag in HTML??

Answers

Answered by Devesh225
52
Align means horizontal alignment = left center right
Valign means vertical alignment= top middle bottom
Answered by adventureisland
2

On both, you may use inherit. Furthermore, text-align is a CSS property. The vertical alignment of a text in the element is specified using the HTML valign property.

Align attribute of the tag in HTML :

  • Because text-align is horizontal, the suitable values are left|right|center|justify; however, because valign is vertical, the proper values are top|middle|bottom|baseline.
  • On both, you may use inherit. Furthermore, text-align is a CSS property, but Valign seems to be an HTML attribute.

Valign attribute of the tag in HTML :

  • The vertical alignment of a text in the element is specified using the HTML valign property.
  • Many table-related components, such as <tr>, <td>, <tbody>, <col>, and <tfoot>, are supported by this property. It aligns the material at the top.

Similar questions