# HTML Rules | PMD Source Code Analyzer
Keywords: rule_referenceshtml,

# HTML Rules

Index of all built-in rules available for HTML

## Best Practices

Rules which enforce generally accepted best practices.

- AvoidInlineStyles: Don’t mix content and style. Use separate CSS-files for the style and introduce classes. This hel…
- UnnecessaryTypeAttribute: In HTML5 the explicit type attribute for link and script elements is not needed. Modern browsers …
- UseAltAttributeForImages: Always use an "alt" attribute for images. This provides an alternative text and is extensively us…

Tags: rule_references