ict

    Master this deck with 21 terms through effective study methods.

    Generated from uploaded pdf

    Created by @renntl

    What HTML element is used to display data in rows and columns?

    The <table> element is used to display data in rows and columns.

    What are the essential tags required to create a table in HTML?

    <table>, <tr>, <th>, and <td> are the essential tags required to create a table in HTML.

    Why is the <th> tag preferred for subject names in a table?

    The <th> tag displays text in bold and center-aligned by default, making headings clearly visible.

    How do you create a table to display marks of students in HTML?

    You can create a table using the <table> tag, with <tr> for rows, <th> for headings, and <td> for data cells.

    What is the purpose of the <form> tag in HTML?

    The <form> tag is used to create an HTML form for collecting user input.

    What are the two commonly used methods for sending form data, and how do they differ?

    The two commonly used methods are GET, which sends data through the URL and is suitable for small, non-sensitive data, and POST, which sends data securely in the background and is suitable for large or sensitive data.

    What form elements are suitable for collecting feedback from students?

    Suitable form elements include text inputs for name and class, a textarea for feedback, and a submit button to send the data.

    What is the function of the submit button in a form?

    The submit button sends the form data to the server for processing.

    How do you create a feedback form in HTML?

    A feedback form can be created using the <form> tag, with <input type='text'> for name and class, <textarea> for feedback, and <input type='submit'> for the submit button.

    What does the border attribute do in a table?

    The border attribute specifies the thickness of a table border.

    What is the purpose of the action attribute in a form?

    The action attribute specifies the URL or server page where the form data is sent.

    What is the significance of the method attribute in a form?

    The method attribute defines how the form data will be sent to the server, commonly using GET or POST.

    What type of text field does <input type='text'> create?

    <input type='text'> creates a single-line text field for user input.

    What is the role of the <label> tag in forms?

    The <label> tag is used to provide a description for form controls, enhancing accessibility and usability.

    How can you display marks of three students in two subjects using a table?

    You can create a table with three rows for students and two columns for subjects, using <tr> for each student and <td> for their marks.

    What is the default alignment of text in a <th> cell?

    The default alignment of text in a <th> cell is center-aligned.

    When should you use the POST method over the GET method?

    You should use the POST method when dealing with large or sensitive data that should not be exposed in the URL.

    What is the difference between <td> and <th> in a table?

    <td> is used for standard data cells, while <th> is used for header cells that typically contain headings.

    How does the <textarea> element differ from <input type='text'>?

    <textarea> allows for multi-line text input, while <input type='text'> is limited to a single line.

    What attributes can be used with the <form> tag to enhance its functionality?

    Attributes such as action, method, and enctype can be used with the <form> tag to define where to send data, how to send it, and the type of data being sent.

    Why is it important to use semantic HTML tags like <th> and <label>?

    Using semantic HTML tags improves accessibility, search engine optimization, and the overall structure of the document, making it easier for both users and machines to understand.