PDA

View Full Version : What is "id" in this code? [html]


Nik_s3
04-15-2007, 07:57 PM
Hi, is someone that could explain to me what is the role of this part of code?

<label for="cb_rules_agree"><input type="radio" name="agree" id="cb_rules_agree" value="1" /><strong><phrase 1="$vboptions[bbtitle]">$vbphrase[read_agree_abide_by_rules]</phrase>

cb_rules_agree is only a label that doesn't have effects on the code?

What does It change if I delete this:

<label for="cb_rules_agree"><input type="radio" name="agree" id="cb_rules_agree" value="1" /><strong><phrase 1="$vboptions[bbtitle]">$vbphrase[read_agree_abide_by_rules]</phrase>

Thank you.

TruthElixirX
04-15-2007, 10:38 PM
It depends, sometimes it is just an identifier, but most of the times it refers to PHP, CSS, or javascript. I would recommend not deleting it.

If you do though, just save the old copy, delete it, see if it changes anything, and if it breaks anything, put it back.

Nik_s3
04-16-2007, 05:45 AM
Ok! Thank you. :)