Articles in the HTML Category
HTML, PHP »
Problem:
I want to create a dynamic table with a row starting after certain number of columns, i.e. like, i want to create an html table which automatically generate new row after 3 columns in a row.
Solution:
$content = array(1, 2, 3, 4, 5, 6, 7, 8, 9);
<table border="1" width="50%">
<tr>
<?php
$counter = 0;
foreach($content as $data) {
if($counter != 0 && $counter%3 == 0) {
?>
</tr><tr>
<?php
}
?>
<td>
<?php echo $data; ?>
</td>
<?php
$counter++;
}
?>
</tr>
</table>
HTML »
Meta tags are HTML tags which provide information that describes the content of the webpage a user will be viewing.
Meta tags have two possible attributes:

