israel love php israel love php - 1 month ago 21
HTML Question

error on eclipse Invalid location of tag (b)

I start to work with eclipse debugger. I write a simple html file with two different lines.

<h3 id="TitleField">Array Function </h3><b />
<p><h1>array_change_key_case</h1></p>


I got Exclamation mark with "Invalid location of tag (h1)." and "Invalid location of tag (b).".
What am I doing wrong ?
Thanks.

Answer

With headers and paragraphs it automatically starts on a new line, so the <br> tag is not necessary. <h1>, <h2>, <h3>, etc. are titles, and <p> are paragraphs.

You post titles above paragraphs and not inside them, which would look like this:

<h1>array_change_key_case</h1>
<p>your text</p>