<br clear="">
Browser |
|
---|---|
Type |
The clear attribute of the BR element is used to stop text wrapping around the table.
<br clear="all">
Attribute | Value | Explanation |
---|---|---|
clear=" " | left | clears the left (for the left-floating table) |
right | clears the right (for the right-floating table) | |
all | clears the both (for the left or right floating table) |
The use of this attribute is deprecated. (Use CSS instead)
Example
<table border="1" align="left">
<tr>
<td>Row1 - Col1</td>
<td>Row1 - Col2</td>
<td>Row1 - Col3</td>
</tr>
<tr>
<td>Row2 - Col1</td>
<td>Row2 - Col2</td>
<td>Row2 - Col3</td>
</tr>
<tr>
<td>Row3 - Col1</td>
<td>Row3 - Col2</td>
<td>Row3 - Col3</td>
</tr>
</table>
The table floats to the left.
<br>
And the text wraps to the right of the table.
<br clear="left">
Clears the left
- Output
-
Row1 - Col1 Row1 - Col2 Row1 - Col3 Row2 - Col1 Row2 - Col2 Row2 - Col3 Row3 - Col1 Row3 - Col2 Row3 - Col3
And the text wraps to the right of the table.
Clears the left