The validity of the code is the compliance of the resource source code with the requirements of the World Wide Web Consortium (W3C) and compliance with HTML standards. This universal characteristic of the code is relative, and the validation process is associated with the verification of compliance with doctrines. There is validation for syntax errors, nested tags, DTD, the presence of third-party elements.