Search code examples
phphtmlmarkupslash

weird slash appears in html


As i do some html markup thru php output:

echo '<h2>Events Calendar</h2><table border="2" width="100%"><th>';
... 

a weird slach appears in this way (under Events Calendar and above the html table markup): enter image description here

As i look in debugger i find no hint where it's from... The table markup is ok, all tags are paired. What's the cause might be?


Solution

  • Most likely it is outside your proper table markup, like /<tr>

    Anything between the tags in a table is normally rendered before the table.