Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Malformed start tag. Attributes should be separated by whitespace.

I have the following HTML as part of my SharePoint website (and this HTML was automatically generated from SharePoint itself), and it is not a custom web part :-

<td style="width:24px"><a id="WPQ2_nav_prev_a" href="javascript:MoveToDate('8\u002f13u002f2013','WPQ2');" ><img id="WPQ2_nav_prev_img"
src="/_layouts/15/1033/images/calprev.png"
width="19" height="19") /></a></td>

but when i validate my web site using IE F12 developer tools the console showed the following error on at the above code(specifically after the height="19"):-

HTML1423: Malformed start tag. Attributes should be separated by whitespace.

What is causing this / and how i can solve it ?

like image 823
john Gu Avatar asked Oct 22 '22 01:10

john Gu


1 Answers

Your markup should be like below

<td style="width:24px">
  <a id="WPQ2_nav_prev_a" href="javascript:MoveToDate('8\u002f13u002f2013','WPQ2');" >
    <img id="WPQ2_nav_prev_img" src="/_layouts/15/1033/images/calprev.png" width="19" height="19" />
  </a>
</td>

You have a closing bracket ) after height ="19" in you code which may cause the error

like image 118
Akshay Khandelwal Avatar answered Oct 23 '22 17:10

Akshay Khandelwal