Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange attribute in DIV tag

Tags:

html

tags

I am seeing some attribute I have never seen before in a div tag. I haven't touch html for a while but googling the attribute didn't return much useful info.

    <div dataquery="#item_1306"  comp="box.components.Flashplayer" id="box_Flashplayer_2"     propertyquery="#box_Flashplaye_2" class="box_Flashplaye_style2"...

My question is, do you know what are these "dataquery" "comp" and "propertyquery" attributes?

Thanks alot folks.

like image 568
user433500 Avatar asked Nov 24 '12 17:11

user433500


People also ask

What are the attributes of div tag?

The <div> tag defines a division or a section in an HTML document. The <div> tag is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript. The <div> tag is easily styled by using the class or id attribute. Any sort of content can be put inside the <div> tag!

Can a div have a name attribute?

If you need to 'name' a div in order to address it from javascript or otherwise uniquely identify it on a page, you can use the id attribute. That said, most modern browsers will handle a name attribute on a div with no issues but it does not conform to HTML standards.

What is a div /> element?

The div element is a generic container with no particular semantic meaning. It's commonly used in web authoring for styling purposes, in conjunction with the style and class attributes. It can also be helpful to provide common attributes for the elements contained by it, like for example lang or title .

Does div have value attribute?

div elements don't have a . value property that would get submitted to the backend; use an input element for that.


1 Answers

HTML is often enhanced with custom attributes these days, and HTML5 explicitly allows for that. Normally these attributes should be prefixed with "data-", but obviously this is not the case here.

The meaning depends most probably on a script included in the page.

For example, in twitter bootstrap it is common to see attributes like <body data-spy='scroll'> which is than interpreted by a script and allows for monitoring the amount a user scrolls.

When including Facebook like buttons you may have attributes like data-style which controls whether a box, or a button, or hwatever is used.

like image 92
scravy Avatar answered Sep 24 '22 06:09

scravy