Where does “data-toggle” attribute of bootstrap framework come from?

In HTML5, any attribute that starts with data- is a valid custom attribute. Basically, it’s a way to attach custom data to elements that aren’t explicitly defined in the HTML specification.

In earlier versions of HTML, this does not validate, however. Don’t worry about that too much though. Browsers generally just ignore attributes they don’t know about. This doesn’t stop libraries like jQuery from reading them.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)