Translate HTML while keeping its structure in view
When translating HTML, the words should change while the technical structure is preserved where possible. EditMyHTML is not an automatic translation engine. You translate the visible text yourself and can check its HTML code alongside it.
Open the free HTML text editor
Which parts do you translate?
In the TEXT view, you edit visible content: headings, paragraphs, list items or a link's displayed text. Tags such as <p> and <strong> are not translated. IDs, classes and technical data attributes are not ordinary text.
Text in attributes needs separate attention. A title attribute or alternative text can contain language, but it does not appear as an ordinary paragraph in the TEXT view. Check these details in the HTML code when needed. The editor does not translate them automatically.
Example: translate a German description into Spanish
The translation should preserve the paragraph, emphasis and link. The following URL is deliberately unchanged because no alternative destination has been specified.
Source code
<p id="hinweis" class="info">Entdecke unsere <strong>neuen Ideen</strong>. <a href="/ideen/">Mehr erfahren</a></p>
Intended translation
<p id="hinweis" class="info">Descubre nuestras <strong>nuevas ideas</strong>. <a href="/ideen/">Más información</a></p>
Paste the source code on the left and translate the text sections on the right. Do not change technical identifiers such as hinweis and info just because they contain German words. Other parts of the website may depend on them.
Check links and sentence structure carefully
Translating a link's text does not automatically require a new destination. Use a language-specific URL only when you know the correct target page. Do not invent translated paths. Relative URLs will resolve from wherever the HTML is eventually used.
If the target language requires a different sentence structure, you may need to change which words are emphasized or linked. Move or format these parts deliberately and check the code afterwards. For these edits, you cannot assume the HTML structure will remain literally unchanged.
Avoid common mistakes
- Do not translate tags or attribute names.
- Change IDs, classes, placeholders and technical identifiers only when explicitly instructed.
- Do not confuse link destinations with displayed link text.
- Check the paste settings before pasting a translation from Word.
- Check special spacing requirements: EditMyHTML cleans up non-breaking and repeated spaces in visible text.
Final checks before handing over the result
- Read the full translation in the TEXT view.
- Compare headings, lists and emphasis with the original.
- Check link destinations, IDs, classes and existing placeholders in the HTML.
- Check language-related attributes such as
titleseparately if needed. - Use “Check HTML”, then check the appearance in the target system.
The strictest literal preservation applies to text changes that are unambiguously safe. For other edits, the editor uses its existing fallback processing. Back up the original and check the output; the editor replaces neither language review nor technical acceptance in the target system.
