Is there any way (server- or client-side) that I can actually extend HTML to include new tags? For example, it would be cool if I could write something like a schema fragment that defined a blogpost, which contains a postname, a postauthor, a posttime, and a postcontent, and thereafter refer to blogpost in my HTML rather than resorting to the basic HTML div and p tags.
Is there any way (server- or client-side) that I can actually extend HTML to
Share
Sounds like HTML5 is right up your alley!
You can use elements like
sectionto wrap up all your posts, andarticlefor each post, plus basics likeheader,nav, andfooter. There isn’t fine grained elements like postauthor or posttime but you can provide other attributes to help define these.Hmm, seems I spoke to soon, you can use this too: