FORM STRUCTURE

Image
  FORM STRUCTURE <form>: form controls live inside a <form> element .This element should always carry the action attribute and will usually have a method and ad id attribute too. action: Every form element requires an action attribute. Its value of the URL for the page on the server that will receive the information in the form when it is submitted> method: The form can be sent using one of the following methods: get or post. With the get method, the values from the form are added to the end of the URL specified in the action attribute. With the  Post method, the values   are sent in what is  known as HTTP headers.  <input>: The <input> element creates several different  form controls. The type attribute's value determines what kind of input they will be creating. type="text': When the type attribute has a value of text, it creates single-line text  input. name: When users enter information into a form, the server contro...

LONG TABLES

HTML LONG TABLE  

THREE ELEMENTS HELP DISTINGUISH BETWEEN THE 

MAIN CONTENT OF THE TABLE AND THE FIRST LAST ROWS

(WHICH CAN CONTAIN DIFFERENT ELEMENT).

<thead> - THE HEADINGS OF THE TABLE SHOULD SIT INSIDE THE <thead>

ELEMENT.
  

<tbody> -THE BODY SHOULD SIT INSIDE THE <tbody> ELEMENT.

<tfoot> -THE FOOTER BELONGS TO THE <tfoot> ELEMENT.

EXAMPLE:<table>
 <thead>
 <tr>
 <th>Date</th>
 <th>Income</th>
 <th>Expenditure</th>
 </tr>
 </thead>
 <tbody>
 <tr>
 <th>1st January</th>
 <td>250</td>
 <td>36</td>
 </tr>
 <tr>
 <th>2nd January</th>
 <td>285</td>
 <td>48</td>
 </tr>
 <!-- additional rows as above -->
 <tr>
 <th>31st January</th>
 <td>129</td>
 <td>64</td>
 </tr>
 </tbody>
 <tfoot>
 <tr>
 <td></td>

 <td>7824</td>

 <td>1241</td>

 </tr>

 </tfoot>

</table>

RESULT:




THANK YOU
 

Comments

Popular posts from this blog

Ch-Heading Tags (blog 3)

Basic structure of HTML

Introduction to HTML