我无法关闭<img/>元素并知道错误的位置,但无法纠正它

时间:2014-12-28 11:37:51

标签: xml blogger

我正在尝试为博客编辑模板​​并编辑代码并上传。我收到一个错误代码,说明必须使用“&gt;”关闭元素或“/&gt;”我知道,然而我关闭了元素,它仍然没有验证。这是代码:

<div class='post-author'>
    <h4 class='block-heading'><span>About the Author</span></h4>
    <div class='author-img'>
        <img alt='' class='avatar avatar-110 photo' height='110' src='https://www.flickr.com/photos/34847437@N02/16125062891/ width='110'/>
    </div>
    <div class='author-text'>
        <h4><a href='' rel='author' title=''>Emilie Jay</a></h4>
        <p>UK Born, Pittsburgh raised, Kent educated- I am the girl-next-door who also likes to mix things up and experiment with the unexpected. I can be found in front of or behind a camera, creating art on canvas or on skin, and am excited to be sharing all of my experiences with you. Check back often, I am always working on something new!</p>
        <span class='author-share'>
            <a href='https://twitter.com/unfoundclovers'><i class='fa fa-twitter round-icon'/></a>                  
            <a href='http://instagram.com/unfoundclovers'><i class='fa fa-instagram round-icon'/></a>       

            <a href='http://www.pinterest.com/unfoundclovers/'><i class='fa fa-pinterest round-icon'/></a>                                  
        </span>
    </div>
</div>

并且错误出现在以标记开头的第4行。它看起来正确关闭,但就像我说的,没有验证。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:1)

您的src属性缺少结束语

<img alt='' class='avatar avatar-110 photo' height='110' src='https://www.flickr.com/photos/34847437@N02/16125062891/' width='110'/>

请参阅代码中遗漏的'左侧width=