- 2
How this tag is working?
Checkout my code. In this code, you'll see that I've written "Hello" between <zxcvbnm> tag and changed it background-color. But in HTML, there is no tag such as <zxcvbnm>. Then how is it working? https://code.sololearn.com/WqsG8y8x0R3o/?ref=app
11 ответов
+ 3
Answered in the link below...
https://stackoverflow.com/questions/2802687/is-there-a-way-to-create-your-own-html-tag-in-html5/33769802
+ 6
Yeah, mainly HTML can take any unknown tag, it will actually work. But I don't know why this unknown tags work.
Like : 'xjdhcrhjdjg', 'hblgjfigjgjf', 'higtfhfkdkg', etc
+ 5
Nope. They can't create there own tag
+ 5
But I don't know why HTML accepts it...
+ 4
Anshu Khanra
But there is no background-color. The user is asking for that.
Btw body is also a tag.
+ 2
It worked because you described it in CSS...that means HTML5 may have treated it like a tag name for use in CSS
+ 2
Dipro Biswas Anshu Khanra HTML is XML based language so as you can define any tag as you want in XML you can do the same in HTML.
HTML is a simple particular XML convention.
+ 2
If you define your own tags all will run very well, your web page will be rendered but your web page will not be recognised as a correct web page on the web because it don't match the HTML convention.
XML is used to format documents
and HTML is XML specialised in web documents formating.
- 1
I think people can create their own tags and define it's function.
- 1
Check this out on stack overflow
https://stackoverflow.com/questions/2802687/is-there-a-way-to-create-your-own-html-tag-in-html5/33769802
- 3
Anshu Khanra
DOM architecture.
HTML DOM generated from utf8 text file might not support it. And it might not be supported by JavaScript to update tag attribute and property.
DHANANJAY PATEL