The end tag of HTML and W3C standard


According to the principle of W3C, each start tag of XML must have an end tag corresponding to it, that is, < HTML > must have a < / HTML > end, which is a complete element, unless it is a self closing tag, which is a tag such as < img SRC = “…” / > etc.
Html is a child of XML, so we should also follow the principles of XML, which is the standard.
Therefore, < meta charset = UTF-8 > does not add / > to finish, does not meet the standard, only suitable for the version before HTML 4.0. At present, most websites use XHTML standard writing method for SEO and multi browser support.

Recommended Today

Settings of alias configuration element in mybatis configuration

1、 Method 1: use typealias <pre style=”margin: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; font-family: &quot;Courier New&quot; !important; font-size: 12px !important;”><typeAliases> <typeAlias alias=”User” type=”com.**.entity.User”/> </typeAliases></pre> The disadvantage of this method is that each additional entity class needs to be configured with the corresponding class 2、 Method 2: using package <pre style=”margin: 0px; padding: 0px; white-space: […]