Tidy HTML formatting in Gutenberg HTML blocks

Unfortunately, I don’t believe there’s anything available that would allow this unless you do some extensive customization to the block editor. TAB is used very often by users who have limited dexterity (I use it myself) so entering TAB on the keyboard will be used to move to the next element on the page.

How do I change the text content of a div for a comment validation error message?

if your above Javascript is working fine and you want to insert that into a page. Kindly add the following code to your functions.php. I have tested this code it’s working fine. function handle_comment_error() { ?> <script> document.getElementById(“comment-error”).innerHTML = “Please enter your comment.”; </script> <?php }add_action(‘wp_head’, ‘handle_comment_error’); Let me know if you face any issues.

Div not working in WordPress post

End-of-line has no meaning in HTML, except if it separates text, where it is taken as one blank. If WordPress is eliminating blank lines, it’s only optimizing your code. To add a blank line, use the HTML br Tag: <br> Or the more syntactically correct (but equivalent): <br/>