Knowing what RDFA vocabulary to use

There are many vocabularies. And you could create your own, too, of course (but you probably shouldn’t before you checked possible alternatives). You’d have to look for vocabularies for your specific needs, for example by browsing and searching on http://lov.okfn.org/dataset/lov/ (they collect and index open vocabularies), on W3C’s RDFa Core Initial Context (it lists vocabularies … Read more

Should a heading be inside or outside a ?

It is impossible to put a heading element inside a p element in HTML markup, not just formally but because browsers implicitly terminate an open p element when they encounter a heading. So the question is meaningless: an element that cannot exist in a certain context cannot have any meaning (semantics) within that context. Instead … Read more

Using custom HTML Tags

Most of these responses are good general advice, but not proper answers to the question, which I think is perfectly legitimate. HTML5 is already a moving target; browsers implement specs and innovate at different paces. There is no single thing called “valid HTML”, at least not that is worth using. If you are building a … 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