<div id="image" style="float:left;margin-left:15px;" >
<br>
<br>
<img src="https://pixabay.com/static/uploads/photo/2013/07/12/13/56/film-reel-147631__180.png"style="width:133px;height:133px;" align="left">
</div>
我的问题是为什么这是一个错误 我试图摆脱&#34;&lt;&#34;但那是行不通的
答案 0 :(得分:0)
以下是带有通过验证的评论的正确HTML:
<!-- You did not close the div tag here-->
<div id="image" style="float:left;margin-left:15px;"></div>
<!-- Changes to br tags -->
<br />
<br />
<!-- You were missing an alternate text tag and a closing tag and there was no space in front of the style tag -->
<img src="https://pixabay.com/static/uploads/photo/2013/07/12/13/56/film-reel-147631__180.png" style="width:133px;height:133px;" alt="Your description" align="left" />
<!-- You had one extra closing div tag here -->
提示:您可能想要阅读CSS并使用它而不是内联样式。