Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kevinburke/tecate

Figure out when your HTML is busted
https://github.com/kevinburke/tecate

Last synced: 29 days ago
JSON representation

Figure out when your HTML is busted

Awesome Lists containing this project

README

        

# Tecate.js

Writing HTML is hard. Let's go shopping

### Usage

You have an HTML file and you want to check if you made a mistake writing the
HTML tags. Drop `tecate.js` into the <head> of your HTML document, like
this:

```html








```

Then if there's a problem with your HTML, you'll start getting nice error
messages, like this:

error message

### But you shouldn't put Javascript in the <head>

[I agree][footer]. The problem is if you load the `tecate.js` file after, say,
an unclosed link tag:

```html

```

It won't load properly and you'll never get the message telling you it didn't
load! That's why I recommend putting `tecate.js` in the <head> of your HTML
file.

[footer]: http://stackoverflow.com/a/5329895/329700

### Catching Bugs

Tecate will display an error message straight to the page if you messed up your
HTML. Here are some of the bugs it can catch for you:

##### Missing a Closing Bracket

Say you forgot to end a tag with a bracket, or closed it badly:

```html