Mobile app version of vmapp.org
Login or Join
Gloria169

: Can I safely include "self-defined" HTML Tags in a HTML Website? I have seen a website that has a doctype of <!DOCTYPE html> This website uses HTML Tags that I have never seen before

@Gloria169

Posted in: #Html #Tags

I have seen a website that has a doctype of

<!DOCTYPE html>


This website uses HTML Tags that I have never seen before like <section>.

My Question:

1.) Is this kind of "generic Doctype" recommended for a normal website? (I've never seen this this before, what are the pro and cons?)

2.) When is it valid to use such "self defined" HTML Tags? Is this valid with this doctype Declaration?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gloria169

1 Comments

Sorted by latest first Latest Oldest Best

 

@Goswami781

This is the doctype for HTML 5.


You are safe to use this Doctype as it won't break older browsers and modern browsers will understand it.
This is a valid tag for HTML 5. If you really want custom tags, you'd need to create a custom doctype for your document to reference, but that's discouraged.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme