Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is HTML "is" attribute?

Tags:

html

dom

I have seen it a lot here and there, yet I could find any description or documentation about it!

Example:

<paper-input-decorator label="Your Name">     <input is="core-input"> </paper-input-decorator> 
like image 642
Walid Ammar Avatar asked Dec 11 '14 23:12

Walid Ammar


People also ask

What is attribute in HTML?

An HTML attribute is a piece of markup language used to adjust the behavior or display of an HTML element. For example, attributes can be used to change the color, size, or functionality of HTML elements. Attributes are used by including them in an opening HTML tag: <tag_name attribute_name="value">Content</tag_name>

Is HTML an attribute?

There is no is attribute in HTML. It is a proposed extension that appears in the Custom Elements specification (which evolved from the Polymer spec mentioned below). It allows you to say that an existing, standard element is really a custom element. … which allows for backwards compatibility.


1 Answers

It is part of the W3C Draft spec for Web Components' Custom Elements.

Latest Working Draft: http://www.w3.org/TR/custom-elements/#type-extension-semantics

Latest Editor's Draft: http://w3c.github.io/webcomponents/spec/custom/#type-extension-example

like image 109
paulie4 Avatar answered Sep 21 '22 21:09

paulie4