diff options
Diffstat (limited to 'files/pt-br/learn/html/howto/use_data_attributes/index.html')
| -rw-r--r-- | files/pt-br/learn/html/howto/use_data_attributes/index.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/files/pt-br/learn/html/howto/use_data_attributes/index.html b/files/pt-br/learn/html/howto/use_data_attributes/index.html index 20daf02206..d1c6154dc1 100644 --- a/files/pt-br/learn/html/howto/use_data_attributes/index.html +++ b/files/pt-br/learn/html/howto/use_data_attributes/index.html @@ -1,7 +1,8 @@ --- title: Utilizando data attributes -slug: Web/Guide/HTML/Using_data_attributes +slug: Learn/HTML/Howto/Use_data_attributes translation_of: Learn/HTML/Howto/Use_data_attributes +original_slug: Web/Guide/HTML/Using_data_attributes --- <p>O <a href="/en-US/docs/Web/Guide/HTML/HTML5" title="/en-US/docs/Web/Guide/HTML/HTML5">HTML5</a> foi criado pensando na extensibilidade dos dados que precisam ser associados a um determinado elemento mas não necessariamente tem um significado definido. <a href="/en-US/docs/Web/HTML/Global_attributes#data-*">Atributos data-* </a>nos permite armazenar informações extras em elementos HTML padrões e semânticos, sem a necessidades de hacks como <a href="/en-US/docs/Web/API/Element.classList">classList</a>, atributos fora do padrão, propriedades extras no DOM ou o método depreciado <a href="/en-US/docs/Web/API/Node.setUserData">setUserData</a>.</p> |
