Lab #6: HTML HTML Forms QUESTIONS 1. Explain about the HTML code above. The HTML code above have the elements which is mainly use to make a form in html. I am going to explain these elements one by one. Elements Explanation <form action="/action_page.php"> - This is the element which is a container for different types of input elements, such as text files, checkboxes, radio buttons, submit buttons. <label for="fname"> - This element defines a label for several elements such as <input type = “text”> <input type="text" id="fname" name="fname" value=""> - This element will display a single line text input field for users to input their data. <input type="submit" value="Submit"> - ...
CINDY BEH XIN YI AI200259 Lab #9: HTML Styles - CSS INFORMATION CSS stands for Cascading Style Sheets. CSS saves a lot of work. It can control the layout of multiple web pages all at once . CSS describes how HTML elements are to be displayed on screen, paper, or in other media. CSS can be added to HTML elements in 3 ways: · Inline - by using the style attribute in HTML elements · Internal - by using a <style> element in the <head> section · External - by using an external CSS file INSTRUCTION 1. By using Notepad, type the following text: Example 1 ...
CINDY BEH XIN YI AI200259 Lab 07 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, text area 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="female"...
Comments
Post a Comment