Validate HTML Files in BBEdit

  Justin Busch       July 2, 2007      Tutorials Mac Apps


Validating HTML documents is an important step in web development that can sometimes be overlooked in the hasty attempt to publish web pages. Validation checks your HTML against the formatting standard developed and maintained by the World Wide Web Consortium. Valid HTML markup ensures that a web browser will be able to correctly interpret what you have coded.

Thank goodness BBEdit, one of the best Mac web development applications, can do this right out of the box! Here’s how to do it:

  1. Open or create an HTML document in BBEdit.

    BBEdit on Mac

  2. From the Markup menu, open the Check sub-menu and select Document Syntax (or use the Shift + Command + Y keyboard shortcut) to bring up BBEdit’s HTML syntax checker.

    BBEdit on Mac

  3. BBEdit’s HTML syntax checker will display warnings and errors in the open files. Each warning and error will indicate which open file and at which line the issue occurs. This is followed by a brief description of what is wrong with the markup. Selecting an error or warning will display where in the document the issue occurred and attempt to highlight the offending markup.

    BBEdit on Mac

  4. Switch back to your document to make the changes. Remember to start correcting issues from the top of this list first as some of the later issues may be a result of one leading issue. After making changes, run the Syntax Checker again to verify that all issues have been resolved.

    BBEdit on Mac

That’s it! You’ve validated your HTML document.

Subscribe to our email newsletter

Sign up and get Macinstruct's tutorials delivered to your inbox. No spam, promise!


© 2021. A Matt Cone project. CC BY-NC-SA 4.0. Made with 🌶️ in New Mexico.