The equivalent of align for images is float
, for div elements it is either margin
or text-align
depending on if you are dealing with the block itself or some inline content inside it. You can see an example on (full disclosure time) my website. Left and right block alignment is by setting the left and right margins to 0/auto or auto/0 instead of auto/auto. Left and right inline alignment is with left or right instead of center for text align.
Named anchors have been superseded by id
on a generic element.
So while you might have previously written:
<p><a name="example">The quick brown fox jumped over the
lazy dog</a></p>
or, if you were following the bad practice of linking to a point instead of something notable:
<p><a name="example"></a>The quick brown fox jumped over the
lazy dog</p>
you would now write:
<p id="example">The quick brown fox jumped over the
lazy dog</p>