How can I add new tags to the xhtml document without making the markup ‘invalid’?
for eg:
instead of <span class="time"> I’d like to use <time>. Is this possible? because I’ve seen a facebook app do something like this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to declare a new namespace for your invented elements:
or
Of course, this isn’t going to make an ounce of sense to your browser but I presume you have good reasons to want to do this.