Valid to use (anchor tag) without href attribute? [duplicate]

The <a>nchor element is simply an anchor to or from some content. Originally the HTML specification allowed for named anchors (<a name=”foo”>) and linked anchors (<a href=”#foo”>). The named anchor format is less commonly used, as the fragment identifier is now used to specify an [id] attribute (although for backwards compatibility you can still specify … Read more

input type=”submit” Vs button tag are they interchangeable? [duplicate]

http://www.w3.org/TR/html4/interact/forms.html#h-17.5 Buttons created with the BUTTON element function just like buttons created with the INPUT element, but they offer richer rendering possibilities: the BUTTON element may have content. For example, a BUTTON element that contains an image functions like and may resemble an INPUT element whose type is set to “image”, but the BUTTON element … Read more