简体   繁体   中英

How to display </title> as title in html?

How can you set the title of a html page to </title> ?

I already tried it with &gt; and &lt; but it didn't work.

Here's a complete example:

<!doctype html>
<html>
    <head>
        <title>&lt;/title&gt;</title>
    </head>
    <body>Foo bar</body>
</html>

It sounds like your attempt should have worked, but without sufficient code to reproduce no one's going to be able to do more than guess at what the problem was.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM