Tidy 49

From Htmlpedia
Jump to: navigation, search

Tidy: <...> inserting "..." attribute

Cause:

A mandatory attribute for this tag is not defined.

Example:

Sample: <script> inserting "type" attribute. The <script> tag has a required attribute type.

Bad<script language="Javascript">
Good<script type="text/javascript">

Sample: <style> inserting "type" attribute. The <style> tag has a required attribute type.

Bad<style>
Good<style type="text/css">

Solution:

Check the definition of the tag. Look for the required attributes. Add the requested attribute.

References: