Now that same HTML div tag can be generated as follows.
Earlier, the tag type was decided by
the positional argument to the
but now we can just call the required tag type on the
We can pass the tag body and attributes in the block format as well.
HTML5 compliant by default
tag helper is also HTML 5 compliant by default, such
that it respects HTML5 features such as void elements.
The old syntax of
is still supported but might be deprecated and removed
in future versions of Rails.