what are the characteristics of a well formed HTML document?
A well formed HTML has many characteristics. Some characteristics that I know of are…
- All opening tags are closed properly with the corresponding closing tag.
- There are no overlapping tags.
- Start and end tags have matching case. In addition, it is a good idea to follow XML guidelines. Element types and attributes are usually lowercase, except multipart names such as onServerClick, which use camel case notation (i.e. 1st character of 1st word is lower case, rest of 1st characters for subsequent words is upper case.)
- All attributes are enclosed in quotation marks.
- There is a single root. In case of HTML, it must be <html> closed in the end by </html>
- The 5 reserved characters are escaped appropriately, or by using the CDATA data type.
