Write HTML code to insert checkbox showing at least 4 Hobbies

 Create Check Box

Hello Friends, Aaj hum HTML me Check box create karna sikhenge to chaliye age badte hai..
Ap niche humare coding dekh sakte hai ... and coding ke niche hum coding kaise work kar raha hai janenge.



Start Coding



Coding ke bad and coding ko smajhne ke bad hum niche OUTPUT dekh sakte hai ..
to chaliye coding ko samjhte hai ..


1. HTML FORMAT - 

sabse pahale coding me HTML format Ready kiye hai .. example <html> tag <head> tag <title> tag and <body> tag and sabhi ka close tag ( </body> </html> is type se sab ko close kiye hai) ab ap format samjh gaye honge .


2.<body>  -

Body ke under hum main code likhte hai.

3.<h1> Select Your Hobbies </h1> - 

Body tag me hum ak header1 liye hai ( <h1> Select Your Hobbies </h1> ) ye h1 header create karta hai.

4. <hr /> - 

Uske bad humne ( <hr /> ) hr tag use kiye hai ye horizontal line create karta hai jo ap output me dekh sakte hai.

5.<form> -

 Uske bad humne <form> form tag use kiye hai jisme hum checkbox ko rakhte hai.

6. <strong> -

strong tag ka use karke hum yaha per label create kar rahe hai jisme Hobbies likha hai.


7. <input value='field_value' id='field_id' name='field_name' type='checkbox' /> - 

  • value - yaha per hum input tag ke under value liye hai jisme hum rakhte hai jo humare database per jake store hota hai database se jab connection karenge tab apko achhe se samjh aa jayega ki kaise store hota hai abhi hum design part cover kar rahe hai. to ap mere sath bane rahe chalo age badte hai.

  • id - value ke bad humne id liye hai jisme hum firld ki idname  rakhte hai means design karte time hum is field ko id ke name se identify karenge.

  • name - yaha per humne field name rakhe hai jisse design karne me easy hota hai means database wala part hota hai. hum is field ko unique name se identify karte hai. 

  • type - yaha par humne field type define kiye hai checkbox karke. 

8. <br /> - 

br tag ka use new line ke liye kiya jata hai yaha per bhi humne new line me jane ke liye br tag ka use kiye hai.

9. <input type='button' value='submit></button> - 

yaha par humne button create kiye hai jsime hum type button liye hai and value bhi  button diye hai.

10. Last me hum form and body tag and html tag ko close kiye hai.


Output

Apko achhe se samjh aa gaya hoga ki hum HTML par kaise hobbies ke liye checkbox create kar sakte hai.
Yadi kuch bhi problem ho to coding se related to hum ko comment kar sakte hai .


HTML starting se sikhne ke liye ya HTML ke previous post me jane ke liye niche link par click kar sakte hai .


Thankyou | be happy | visit again.





Post a comment

0 Comments