What this solution does
The module automatically checks the HTML code in InfoBlock content fields: detailed descriptions, announcement texts, and 'HTML' type properties. It identifies markup errors that hinder promotion and stable site operation and suggests how to fix them.
Benefits for SEO and technical quality
Full content indexing. Search robots (Yandex, Google) correctly read valid markup, preventing parts of the text from dropping out of the index due to broken or unbalanced tags.
Traffic from image search. Filled alt attributes display images in search results and improve page relevance.
Efficient crawl budget. Without empty or nested links, robots do not waste crawl resources on dead transitions, ensuring correct distribution of link weight.
Behavioral factors. Pages with correct markup display consistently on all devices, reducing bounce rates and improving search rankings.
Technical quality
Stable JS and anchor operation. Unique IDs and balanced tags ensure predictable functionality of scripts, tabs, accordions, and anchor links.
Protection against content errors. Mistakes made during edits by managers or copywriters are detected before publication, not after a traffic drop.
HTML Code Validation for Announcements, Detailed Descriptions, and Properties
Save time by automatically validating thousands of cards in minutes instead of manually reviewing code.
How it works
The module scans HTML fields and generates a CSV file containing links to elements with errors, along with recommendations for fixing each issue.
Detected error types and solutions
CRITICAL — attribute without an opening tag. An attribute (class=, href=, src=) appears at the start of the text without a tag. Solution: add the missing tag. Example: class="btn">Text becomes button class="btn">Text.
STRUCTURE — tag imbalance. The number of opening and closing tags does not match (e.g., three div tags with only two /div). Solution: add the missing closing tag or remove the extra opening tag.
DOM — parsing error. Unclosed tags, invalid nesting, or broken markup. Solution: close unclosed tags, remove duplicates and garbage characters, and restore proper nesting.
ATTRIBUTE — empty href. A link with href="" leads nowhere, negatively affecting SEO and accessibility. Solution: specify a valid URL or replace the a tag with a span tag.
The module validates HTML code for announcements, detailed descriptions, and properties against standards. It identifies accessibility errors, such as missing alt attributes on images, which prevents screen readers and search engines from processing them. Content images require a brief description, while decorative images should have an empty alt attribute.
The tool detects duplicate ID attributes, which break JavaScript functionality and anchor links. Unique IDs are recommended, or duplicates should be replaced with classes.
It flags non-standard nested links where an a tag is placed inside another a tag. Browsers arbitrarily break this structure. The inner link must be moved outside the outer link, and div or span tags should be used for grouping.
The module identifies unescaped ampersand symbols that are not valid entities. These must be replaced with &. This can be efficiently done using find-and-replace in a code editor.
The module supports multi-site environments.
If “HTML code validation for previews, detailed descriptions, and properties” fits the task, General iT can install the module, configure it and verify the result in the project.