HTML Tutorial
Pagina 1 din 1
HTML Tutorial
<table width="300" border="1">
<tbody>
<tr>
<td>
<p>Alege nationaliatea</p>
<p>Romana: <input type="radio" name="nationalitate" /> </p>
<p>Engleza: <input type="radio" name="nationalitate" /> </p>
<p>Rusa: <input type="radio" name="nationalitate" /> </p>
</td></tr></tbody></table>
<p>Specificand un nume pentru categoria din care face parte formularul vom instiinta browser-ul pentru ca ulterior el sa faca diferenta intre mai multe formulare de tip radio permitand astfel alegeraea unei singure variante de raspuns pentru fiecare formular in parte.</p>
<p>Exemplu avansat: </p>
<table width="300" border="1">
<tbody>
<tr>
<td>
<p>Alege nationaliatea</p>
<p>Romana: <input type="radio" name="nationalitate" /> Engleza: <input type="radio" name="nationalitate" /> Rusa: <input type="radio" name="nationalitate" /> </p>
<p>Alege sexul</p>
<p>Barbat: <input type="radio" name="sex" /> Femeie: <input type="radio" name="sex" /> </p>
</td></tr></tbody></table>
<hr class="clear-contentunit" />
<h2>HTML - Butoane radio selectate "by default"</h2>
<p>La fel ca si la checkbox-uri, butoanele radio pot fi selectate pentru a facilita "munca" userului.</p>
<table width="300" border="1">
<h2>Afisare</h2>
<table width="300" border="1">
<tbody>
<tr>
<td>
<p>Alege nationaliatea</p>
<p>Romana: <input type="radio" checked="checked" name="nationalitate" /> </p>
<p>Engleza: <input type="radio" name="nationalitate" /> </p>
<p>Rusa: <input type="radio" name="nationalitate" /> </p>
</td></tr></tbody></table>
- Cod:
<p><p> Alege nationaliatea</p></p>
<p>Romana: <input <font color="#0000ff">type="radio" name="nationalitate"</font> /></p>
<p>Engleza: <input<font color="#0000ff"> type="radio" name="nationalitate" </font>/></p>
<p>Rusa: <input <font color="#0000ff">type="radio" name="nationalitate" /></font> </p>
<tbody>
<tr>
<td>
<p>Alege nationaliatea</p>
<p>Romana: <input type="radio" name="nationalitate" /> </p>
<p>Engleza: <input type="radio" name="nationalitate" /> </p>
<p>Rusa: <input type="radio" name="nationalitate" /> </p>
</td></tr></tbody></table>
<p>Specificand un nume pentru categoria din care face parte formularul vom instiinta browser-ul pentru ca ulterior el sa faca diferenta intre mai multe formulare de tip radio permitand astfel alegeraea unei singure variante de raspuns pentru fiecare formular in parte.</p>
<p>Exemplu avansat: </p>
- Cod:
<p><p> Alege nationaliatea</p></p>
<p>Romana: <input type="radio" <font color="#0000ff">name="nationalitate" </font>/></p>
<p>Engleza: <input type="radio" <font color="#0000ff">name="nationalitate"</font> /></p>
<p>Rusa: <input type="radio" <font color="#0000ff">name="nationalitate"</font> /> </p>
<p><p>Alege sexul</p></p>
<p>Barbat: <input type="radio" <font color="#0000ff">name="sex"</font> /> </p>
<p>Femeie: <input type="radio" <font color="#0000ff">name="sex"</font> /> </p>
<table width="300" border="1">
<tbody>
<tr>
<td>
<p>Alege nationaliatea</p>
<p>Romana: <input type="radio" name="nationalitate" /> Engleza: <input type="radio" name="nationalitate" /> Rusa: <input type="radio" name="nationalitate" /> </p>
<p>Alege sexul</p>
<p>Barbat: <input type="radio" name="sex" /> Femeie: <input type="radio" name="sex" /> </p>
</td></tr></tbody></table>
<hr class="clear-contentunit" />
<h2>HTML - Butoane radio selectate "by default"</h2>
<p>La fel ca si la checkbox-uri, butoanele radio pot fi selectate pentru a facilita "munca" userului.</p>
<table width="300" border="1">
- Cod:
<p><p> Alege nationaliatea</p></p>
<p>Romana:
<input type="radio" name="nationalitate" <span class="style9"><font color="#0000ff">checked="yes"</font></span> />
Engleza:
<input type="radio" name="nationalitate" />
Rusa:
<input type="radio" name="nationalitate" />
</p>
<h2>Afisare</h2>
<table width="300" border="1">
<tbody>
<tr>
<td>
<p>Alege nationaliatea</p>
<p>Romana: <input type="radio" checked="checked" name="nationalitate" /> </p>
<p>Engleza: <input type="radio" name="nationalitate" /> </p>
<p>Rusa: <input type="radio" name="nationalitate" /> </p>
</td></tr></tbody></table>
TeMciuC.- Membru
- Mesaje : 367
Data de inscriere : 11/10/2011
Varsta : 31
Localizare : Moldova / Vadul lui Voda
Puncte : 1055
Reputatie : -2
Subiecte similare
» Basic HTML
» HTML BASIC
» Generator Culori HTML
» [GHID]Text HTML
» Tutorial Skinrui CS 1.6 [pack] + tutorial
» HTML BASIC
» Generator Culori HTML
» [GHID]Text HTML
» Tutorial Skinrui CS 1.6 [pack] + tutorial
Pagina 1 din 1
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum