开发者

why my hyperlink tags display as plain text on the browser?

In 开发者_运维百科a table structure, I add a hyperlink like this:

<table>
    <tr>
        <a href='http://www.google.com'>link</a>
    </tr>
</table>

But it display as plain text on the browser(IE or firefox) like this:

<a href='www.google.com'>link</a>

not a link point.

who can tell me the reason? thankx.


Two items. As treaschf noted you need to use double quotes, and for any link leaving your site you need to preface it with http://

<table>    
    <tr>        
        <td>
            <a href="http://www.google.com">link</a>
        </td>
    </tr>
</table>


Try it like this:

<table>    
    <tr>        
        <td>
            <a href="http://www.google.com">link</a>
        </td>
    </tr>
</table>


You are missing the TD element so the HTML is invalid. Pass your HTML through the HTML Validator.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜