
How to use the online HTML editor
The visual side works like a word processor. The code side shows the HTML for it and updates as you type. It works the other way too: type or paste code on the code side, and the visual side follows.
- Format your textUse the toolbar for headings, bold, lists, links and tables.
- Clean itClick Clean and pick a preset. The report says what was removed.
- Copy or saveClick Copy code and paste it into the HTML block of your site, or save an .html file.
Convert Word or Google Docs to clean HTML
A paste from Word brings a lot of hidden code: font names on every line, "mso" styles that only Word reads, class names and empty paragraphs. Google Docs wraps the text in spans with long style lists. So the editor keeps only the structure when you paste: headings, lists, links, bold and italic. A note under the editor lets you keep all the formatting or paste plain text instead.
What each cleaning option removes
| Option | Before | After | Keep it for email? |
|---|---|---|---|
| Word and Google Docs junk | <p class="MsoNormal"> | <p> | No, remove it |
| Inline styles | <p style="color:red"> | <p> | Yes. Email apps ignore most style sheets. |
| Classes and IDs | <p class="intro"> | <p> | No, email has no style sheet to match them |
| All attributes except href, src and alt | <img src="a.png" width="80"> | <img src="a.png"> | Yes, keep them. Width and height help email layouts. |
| Span and font tags | <span>Hi</span> | Hi | Only if the spans carry colors |
| Runs of non breaking spaces | 9 to 5 | 9 to 5 | No, remove them |
| Tags with only a non breaking space | <p> </p> | (nothing) | No, use margins instead |
| Empty tags | <b></b> | (nothing) | No, remove them |
| Comments | <!-- note --> | (nothing) | Keep the ones that start with [if mso] |
The "Text only" preset removes every tag and leaves the words in paragraphs.
Visual editor or code: what does WYSIWYG mean?
WYSIWYG means "what you see is what you get". You see the finished text, and the editor writes the tags for you. Make a word bold on the visual side and <strong> shows up around it on the code side. That makes it a quick way to learn HTML: change something on one side and watch the other.
Is it safe to paste HTML from other sites?
HTML can carry code that runs when the page opens. A script tag, an onclick attribute or a link that starts with javascript: can all run code, and on this page that code could read what you type. So the editor removes them before anything reaches the visual side, the preview or a shared link. The preview runs in a sandbox, a frame where scripts can't run at all. A shared link always opens as a preview first, so you can look before you load it.
Bold, italic and headings in HTML
| Tag | Means | Looks like | Screen readers |
|---|---|---|---|
<strong> | Important text | bold | Some voices stress it |
<b> | Stands out, no extra meaning | bold | Read like normal text |
<em> | Stress, like when you say it louder | italic | Some voices stress it |
<i> | Titles, foreign words, terms | italic | Read like normal text |
<h1> to <h6> | Headings, from the page title down | Big to small | Announced as "heading level 2" |
Use one h1 for the page title, then h2 for sections and h3 inside them. Don't skip from h2 to h4. The status bar under the editor warns you when a heading skips a level.
Instagram and other social apps don't read HTML. For a bio or a caption, the bold text generator makes bold letters from special Unicode characters. To find an arrow or a © sign with its HTML code, use special characters and HTML entities.
Keyboard shortcuts and hidden tools
| Tool or shortcut | What it does | Example |
|---|---|---|
| Tools, Ctrl + K | Every command in one list. Type to find one. | Type "minify" and press Enter |
| Tag tools | Delete, unwrap or rename tags, or list their values | Delete img tags that have no alt |
| Find and replace | Search the text, the code or attribute values, with patterns | Change every http:// link to https:// |
| Colors | Pick a color and put its hex or RGB code into the code side | Insert color: #1f576d; into a style attribute |
| Draft sheet | A second sheet for notes and bits of code, apart from your page | Keep the links that Tag tools listed |
| Snippets | Eight boxes for code you use often, to copy or insert | A button or a signature you add to every page |
| Placeholder text | Adds Lorem ipsum paragraphs for a layout | Ctrl+K, then "lorem" |
| Share as link | Packs the page into a link. Nothing is uploaded. | Send a draft to a friend |
| Ctrl + S | Saves an .html file | In Chrome and Edge it saves back to the opened file |
| Shift + Enter | Line break inside a paragraph | Addresses and poems |