2 Replies - 660 Views - Last Post: 16 June 2013 - 04:51 AM

#1 Abisheak  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 15-June 13

Syntax doubts

Posted 15 June 2013 - 11:34 PM

Here are certain syntax that I came across while referring "The complete reference" and i have no clue of what those are,
Accesskey;
dir;
data-x;
itemid;
itemprop;
itemref;
itemtype;
tabindex;

could someone please elaborate these elements?

and also what is the difference between form value and form name?

thank you
Is This A Good Question/Topic? 0
  • +

Replies To: Syntax doubts

#2 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1148
  • View blog
  • Posts: 7,149
  • Joined: 07-September 06

Re: Syntax doubts

Posted 15 June 2013 - 11:58 PM

accesskey is the Alt+<X> key that you can hit to get the corresponding link "clicked". It is for quick access.
dir is the direction text should go, for non-left-to-right languages.
data-<X> is the HTML way of allowing you to specify custom attributes without the browser thinking they are meant for something they aren't.
itemid is the unique ID of some microdata.
itemprop says that the tag which has it contains a specific property.
itemref deals with non-descended properties for microdata.
itemtype is a URL for a document describing the item, properties, and context.
tabindex is used to order the way form elements and links are accessed via the tab key.

Not sure what you mean by form value and form name, however if you are talking about standard forms then it comes down to this:
name is used to specify the key for a variable to be sent to the server from a form.
value is the value of the variable (with name being the variable name) for data sent to a server from a form.

For example, if you have this:
<form method="post" action="http://example.com">
  <input type="text" name="username" value=""/>
  <input type="submit"/>
</form>


And submit that to a server, the server would get a whole bunch of data in key-value pairings where the "name" is the key, and the "value" is the value:
{"username": ""}


(the above is an example of what I mean in JSON).

If you want more information on these I would also suggest checking google/bing, there is quite a bit of information on HTML around the web.

Hope that helps.
Was This Post Helpful? 0
  • +
  • -

#3 Abisheak  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 15-June 13

Re: Syntax doubts

Posted 16 June 2013 - 04:51 AM

thanks bro .that was really helpful .
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1