A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Hot answers tagged


This is not possible in core Magento 2, the container node only supports these attributes: name label before after as output htmlTag htmlId htmlClass You would need to load a template inside that container and add your attribute there.

Only top voted, non community-wiki answers of a minimum length are eligible