Reputation: 111
In the development of html web pages. What is the difference between :
align="middle"
align="center"
Upvotes: 0
Views: 805
Reputation: 22770
Historicaly speaking, middle refers historically to being in the centre of both vertical and horizontal dimensions. I remember (vaguely) using this syntaxing back on HTML3 and the very early days of web design, particularly for centering table cell contents both in the X and Y planes.
As far as I can tell middle
can now only be used in inline <table>
construction code, and is the same output as center.
center refers more often (but not always) to the horizontal plane only, so horizontally centres an element such as horizontally centering text in a column.
Nowerdays (ie since 2006) if middle
is a valid value at all, it is simply another word for center
and wll be silently converted by the HTML renderer.
Generally speaking, as of 2017 (and several years beforehand!) you should not be using these sort of construction syntaxes in HTML at all, instead passing all this technical layout construction stuff to CSS).
Upvotes: 1