Posts

Showing posts from June, 2021

Internal and External CSS

Image
 Example of using Internal CSS in HTML <!DOCTYPE html> <html> <style>      body {background-color: powderblue;}      h1   {color: blue;}      p     {color: red;} </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html> Output: Example of using External CSS in HTML <!DOCTYPE html> <html> <head>      <link rel="stylesheet" href="styles.css"> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html> Output: No colour because no External CSS file detected

LAB 7

Image
Lab # HTML Radio & check   INFORMATION   HTML Forms   HTML Forms are required, when you want to collect some data from the site visitor. For example, during user registration you would like to collect information such as name, email address, credit card, etc. There are various form elements available like text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc. The HTML <form> tag is used to create an HTML form and it has following syntax –     INSTRUCTION   1.       By using Notepad, type the following text: <!DOCTYPE html> <html> <body>   <h2> LAB-07 21-4-2020 </h2>   <h3> Example1 : Radio Button Input </h3>   <input type="radio" name="gender" value="male" checked> Male<br> <input type="radio" name="gender" value="femal...