ExpertConnect - Mentoring & Discussions

You can join mentoring & discussions for Free Ask Question, Give Answer, Discuss IT Problems, Learn, and Grow

2017-10-20 14:24:55 15

HTML

Hypertext Markup Language is the standard markup language for creating web pages and web applications. With Cascading Style Sheets and JavaScript, it forms a triad of cornerstone technologies for the World Wide Web.

Topic menu

2018-03-19 18:02:13 1
Profile picture of Emily  White
Emily White
Public
Posted: Mar 19, 2018

In HTML attributes I have noticed some of the attributes starting with “data-“. What kind of attributes are these?

Comment (1) ·  Like (1)
Profile picture of Wajih Qidwai

Wajih Qidwai Mar 19, 2018

Attributes starting with “data-“are custom attribute, defined by page author and the entire purpose is to avoid any collision with html defined attributes. If you want to define a CustomerNumber attribute on a span Tag then it should be like <span data-CustomerNumber=”001”>. Any attributes, starting with data-, are ignored by html

Like

Write a new comment...
Ready to post? select an option: