Master this deck with 21 terms through effective study methods.
Generated from uploaded pdf
The <table> element is used to display data in rows and columns.
<table>, <tr>, <th>, and <td> are the essential tags required to create a table in HTML.
The <th> tag displays text in bold and center-aligned by default, making headings clearly visible.
You can create a table using the <table> tag, with <tr> for rows, <th> for headings, and <td> for data cells.
The <form> tag is used to create an HTML form for collecting user input.
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.
Suitable form elements include text inputs for name and class, a textarea for feedback, and a submit button to send the data.
The submit button sends the form data to the server for processing.
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.
The border attribute specifies the thickness of a table border.
The action attribute specifies the URL or server page where the form data is sent.
The method attribute defines how the form data will be sent to the server, commonly using GET or POST.
<input type='text'> creates a single-line text field for user input.
The <label> tag is used to provide a description for form controls, enhancing accessibility and usability.
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.
The default alignment of text in a <th> cell is center-aligned.
You should use the POST method when dealing with large or sensitive data that should not be exposed in the URL.
<td> is used for standard data cells, while <th> is used for header cells that typically contain headings.
<textarea> allows for multi-line text input, while <input type='text'> is limited to a single line.
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.
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.