Reputation: 457
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.
Upvotes: 1
Views: 16079
Reputation: 384
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>
Upvotes: 2
Reputation: 193291
P
can contain only inline elements not block elements like H1
.
See http://www.w3.org/TR/html4/struct/text.html#edef-P
<b />
should be <br />
Upvotes: 3