Posted November 11th, 2009 by admin
Adding new lines in HTML is probably the simplest thing that you can do.
We use the <br /> tag for adding new lines. Note that since there is no content involved with the break tag, it is an empty tag and to comply with HTML standards we just close it with a / after the br and before >
Example:
This is line 1. <br />
This is line 2.
The above code will output:
This is line 1.
This is line 2.
Posted September 29th, 2009 by admin
Tables consist of <table> element and other related tags. These other tags are nested inside the <table> tag.
The child tags of the <table> elements are as follows:
<caption>
<colgroup>
<thead>
<tfoot>
<tbody>
<tr>
An example would where the <table> tag can be used is:
<table border = "1">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</table>
The above code would be rendered as below in the HTML Web Page: