As you probably know, the xhtml standard requires all tags to be properly closed.
This regular expression will search for unclosed img tags. It could be easily modified to grab any other unclosed html tags. view source
<img([^>]+)(\s*[^\/])>
Is a particular url valid? The following regexp will let you know.
/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \?=.-]*)*\/?$/
This regexp will find CSS attributes, such as background:red; or padding-left:25px;.
\s(?[a-zA-Z-]+)\s[:]{1}\s*(?[a-zA-Z0-9\s.#]+)[;]{1}
What's the best browser for Web Development?
View Results