traq;10988137 wrote:
you should actually have the text "Please add items from the list below to your Cart:" between the header and the table.
Should he?
<body>
<h2>Catalog</h2>
Please add items from the list below to your Cart:
<form action="<?php $_SERVER['PHP_SELF'] ?>" method="post">
body isn't allowed to contain character data or inline elements, so for any text to be between h2 and form, it would need to be wrapped in a block element. In my opinion it makes more sense to just ignore character data completely here, than to insert a block element since
1. What block element should that be?
2. And what should be put inside it?
In other words, validate your html code.
Usually, either there's nothing in the CSS specification specifying initial values for things like margins for different elements, or browsers just go ahead and use something they like. So you will have to specify everything you need to use to be able to use it. In this case, that would be h2's padding-bottom and margin-bottom and table's margin-top and padding-top, and obviously also form's margin and padding values.