# HTML: Is there an easy way to make sure all my tags are closed?

**URL:** <https://boards.straightdope.com/t/html-is-there-an-easy-way-to-make-sure-all-my-tags-are-closed/470265>\
**Category:** Factual Questions\
**Created:** [October 30, 2008, 4:44pm UTC](https://boards.straightdope.com/t/html-is-there-an-easy-way-to-make-sure-all-my-tags-are-closed/470265 "2008-10-30T16:44:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Red\_Barchetta](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Red\_Barchetta](https://boards.straightdope.com/u/Red_Barchetta)\
**Post date:** [October 30, 2008, 4:44pm UTC](https://boards.straightdope.com/t/html-is-there-an-easy-way-to-make-sure-all-my-tags-are-closed/470265/1 "2008-10-30T16:44:09Z")

</div>

Is there a program that can easily check if all my HTML tags are closed? I don’t want to deal with any other “validation” nonsense, I just need an easy way to check the tags.

Is there a way?

---

<div class="post-metadata">

**Author:** ![Superfluous\_Parentheses](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Superfluous\_Parentheses](https://boards.straightdope.com/u/Superfluous_Parentheses)\
**Post date:** [October 30, 2008, 4:47pm UTC](https://boards.straightdope.com/t/html-is-there-an-easy-way-to-make-sure-all-my-tags-are-closed/470265/2 "2008-10-30T16:47:05Z")

</div>

> [@Red\_Barchetta](#):
>
> Is there a program that can easily check if all my HTML tags are closed? I don’t want to deal with any other “validation” nonsense, I just need an easy way to check the tags.
> 
> Is there a way?

Use an editor with automatic indentation, and let it indent the whole file. If it looks wrong, you’ve made a mistake.

Of course, validation is a lot more reliable…

---

<div class="post-metadata">

**Author:** ![Beadalin](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Beadalin](https://boards.straightdope.com/u/Beadalin)\
**Post date:** [October 30, 2008, 4:52pm UTC](https://boards.straightdope.com/t/html-is-there-an-easy-way-to-make-sure-all-my-tags-are-closed/470265/3 "2008-10-30T16:52:43Z")

</div>

Both [Macromedia’s Homesite](http://www.adobe.com/products/homesite/) and [BareBones BBedit](http://www.barebones.com/products/bbedit/) do code validation. Both offer free trials, so you can see if they meet your needs.

---

<div class="post-metadata">

**Author:** ![Roland\_Orzabal](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@Roland\_Orzabal](https://boards.straightdope.com/u/Roland_Orzabal)\
**Post date:** [October 30, 2008, 5:40pm UTC](https://boards.straightdope.com/t/html-is-there-an-easy-way-to-make-sure-all-my-tags-are-closed/470265/4 "2008-10-30T17:40:15Z")

</div>

Rejoice, for [TagCheck](http://www.angelfire.com/biz/rhaminisys/tagcheck.html) will validate your tags for you without indundating you with style “errors”. I stumbled upon this when I had a similar problem, and I’ve used it many times since. Hope it helps.

---

<div class="post-metadata">

**Author:** ![happ](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@happ](https://boards.straightdope.com/u/happ)\
**Post date:** [October 30, 2008, 5:40pm UTC](https://boards.straightdope.com/t/html-is-there-an-easy-way-to-make-sure-all-my-tags-are-closed/470265/5 "2008-10-30T17:40:34Z")

</div>

[Notepad ++](http://notepad-plus.sourceforge.net/uk/site.htm) makes this easier, as it brackets the tags so you can easily see if something was left open.

---

<div class="post-metadata">

**Author:** ![lexi](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lexi/32/6806_2.png) [@lexi](https://boards.straightdope.com/u/lexi)\
**Post date:** [October 30, 2008, 6:38pm UTC](https://boards.straightdope.com/t/html-is-there-an-easy-way-to-make-sure-all-my-tags-are-closed/470265/6 "2008-10-30T18:38:38Z")

</div>

Here is an online html validator: [http://validator.w3.org/](http://validator.w3.org/)

It will not just check for valid tags, but also if your html is 100% compliant.

---

<div class="post-metadata">

**Author:** ![Markxxx](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@Markxxx](https://boards.straightdope.com/u/Markxxx)\
**Post date:** [October 30, 2008, 6:58pm UTC](https://boards.straightdope.com/t/html-is-there-an-easy-way-to-make-sure-all-my-tags-are-closed/470265/7 "2008-10-30T18:58:41Z")

</div>

If you don’t validate your HTML chances are your website will look awful in some browsers. I understand a lot of people don’t care if there websites don’t work, but in that case just use a validation site, and go down the list of errors and it will say “unclosed tag” So close all the unclosed tags and ignore the other errors
