Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Monday, 8 March 2021

HTML Sample Example

HTML Sample Example 

  1. <!DOCTYPE>  
  2. <html>  
  3. <head>  
  4. <title>Web page title</title>  
  5. </head>  
  6. <body>  
  7. <h1>Write Your First Heading</h1>  
  8. <p>Write Your First Paragraph.</p>  
  9. </body>  
  10. </html>  


Description of HTML Example

<!DOCTYPE>: It defines the document type or it instruct the browser about the version of HTML.

<html > :This tag informs the browser that it is an HTML document. Text between html tag describes the web document. It is a container for all other elements of HTML except <!DOCTYPE>

<head>: It should be the first element inside the <html> element, which contains the metadata(information about the document). It must be closed before the body tag opens.

<title>: As its name suggested, it is used to add title of that HTML page which appears at the top of the browser window. It must be placed inside the head tag and should close immediately. (Optional)

<body> : Text between body tag describes the body content of the page that is visible to the end user. This tag contains the main content of the HTML document.

<h1> : Text between <h1> tag describes the first level heading of the webpage.

<p> : Text between <p> tag describes the paragraph of the webpage.




Thursday, 4 March 2021

Student Information Page in HTML

cODE

 Student Information Page in HTML

* Copy this code and paste in the NotePad or in Notepad++



*Then save this file with ".demo.html extension 

*If you are working in NotePad++ then its view will be changed like this


*Then open that file with any of your browser app


The code is 👇👇👇👇👇


  1. <Html>  
  2. <head>   
  3. <center><b><u> <a style="color: red">Registration Form </b></u></a> 
  4. <title>  
  5. Registration Page  
  6. </title>  
  7. </head>  
  8. <body bgcolor="Lightskyblue">  
  9. <br>  
  10. <br>  
  11. <form>  
  12.   
  13. <label> Firstname </label>         
  14. <input type="text" name="firstname" size="15"/> <br> <br>  
  15. <label> Middlename: </label>     
  16. <input type="text" name="middlename" size="15"/> <br> <br>  
  17. <label> Lastname: </label>         
  18. <input type="text" name="lastname" size="15"/> <br> <br>  
  19.   
  20. <label>   
  21. Course :  
  22. </label>   
  23. <select>  
  24. <option value="Course">Course</option>  
  25. <option value="BCA">BCA</option>  
  26. <option value="BBA">BBA</option>  
  27. <option value="B.Tech">B.Tech</option>  
  28. <option value="MBA">MBA</option>  
  29. <option value="MCA">MCA</option>  
  30. <option value="M.Tech">M.Tech</option>  
  31. </select>  
  32.   
  33. <br>  
  34. <br>  
  35. <label>   
  36. Gender :  
  37. </label><br>  
  38. <input type="radio" name="male"/> Male <br>  
  39. <input type="radio" name="female"/> Female <br>  
  40. <input type="radio" name="other"/> Other  
  41. <br>  
  42. <br>  
  43.   
  44. <label>   
  45. Phone :  
  46. </label>  
  47. <input type="text" name="country code"  value="+91" size="2"/>   
  48. <input type="text" name="phone" size="10"/> <br> <br>  
  49. Address  
  50. <br>  
  51. <textarea cols="80" rows="5" value="address">  
  52. </textarea>  
  53. <br> <br>  
  54. Email:  
  55. <input type="email" id="email" name="email"/> <br>    
  56. <br> <br>  
  57. Password:  
  58. <input type="Password" id="pass" name="pass"> <br>   
  59. <br> <br>  
  60. Re-type password:  
  61. <input type="Password" id="repass" name="repass"> <br> <br>  
  62. <input type="button" value="Submit"/>  
  63. </form>  
  64. </body> 
  65. </center> 
  66. </html>  


SIMILAR QUESTIONS

HTML Sample Example