Modified isTag to accept a value param. Require tags that are custom HTML5 tags or title or style to specify tag type