Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> input[type=checkbox], input[type=radio] { vertical-align: middle; position: relative; bottom: 1px; } input[type=radio] { bottom: 2px; } </style> </head> <body> <form> <label> <input type="checkbox" /> Label text </label> <br/> <br/> <input type="checkbox" id="myChk" /> <label for="myChk">label tag with the for attribute</label> </form> </body> </html>