Tips to learn how to use HTML Code

The key learning from using HTML source standpoint, but it is a foreign language to be less rich in Khmer. Nest, please continue to show how and some way of using the tag, which has shown in previous articles. Text nest parted tag select and use optgroup to speak again.



-------
1. Select tag or <select> .... </ Select>: is the tag used for the user to choose options any of the options presented by the Dropdown List.
For example.

<form>
<select>
<option>Male</option>
<option>Female</option>
</select>
</form>

2.optgroup tag or <optgroup> ... </ optgroup>: is the tag used for the capture option tag above parts according to rank, you write code set, it can not click or select it, but it's there in black bold (Bold), and stood in the position front option tag a Tab.
For example.


<select>
<optgroup label="Computer Language">
<option>C</option>
<option>C++</option>
<option>C#</option>
<option>ASP.NET</option>
</optgroup>
<optgroup label="Database">
<option>SQL SERVER</option>
<option>ORACLE</option>
<option>DB2</option>
</optgroup>
</select>