Html: Difference between revisions
Jump to navigation
Jump to search
(→label) |
(→label) |
||
Line 18: | Line 18: | ||
<input type="submit" value="Submit"> | <input type="submit" value="Submit"> | ||
</form> | </form> | ||
</pre> | |||
=== [http://www.w3schools.com/tags/tag_div.asp div] | |||
<pre> | |||
<div style="color:#0000FF"> | |||
<h3>This is a heading in a div element</h3> | |||
<p>This is some text in a div element.</p> | |||
</div> | |||
</pre> | </pre> | ||
== PHP == | == PHP == |
Revision as of 11:33, 16 November 2012
Some useful html tags
form
<form action="demo_form.asp"> First name: <input type="text" name="FirstName" value="Mickey"><br> Last name: <input type="text" name="LastName" value="Mouse"><br> <input type="submit" value="Submit"> </form>
label
<form action="demo_form.asp"> <label for="male">Male</label> <input type="radio" name="sex" id="male" value="male"><br> <label for="female">Female</label> <input type="radio" name="sex" id="female" value="female"><br> <input type="submit" value="Submit"> </form>
=== div
<div style="color:#0000FF"> <h3>This is a heading in a div element</h3> <p>This is some text in a div element.</p> </div>