. This writing method is also the so-called self-closing method, which is completely legal in XML. If you are familiar with XML-related development, you may be accustomed to this way of writing. Think of it as any element in XML that does not contain child nodes can be written in this way, so tags without content in XHTML can also be written in this way."/> . This writing method is also the so-called self-closing method, which is completely legal in XML. If you are familiar with XML-related development, you may be accustomed to this way of writing. Think of it as any element in XML that does not contain child nodes can be written in this way, so tags without content in XHTML can also be written in this way.">
Home > Article > Web Front-end > Issues that should be paid attention to when writing self-closing XHTML tags_HTML/Xhtml_Web page production
hello world
. You will find that you can only see the hello in the front but not the world in the back. This is quite inexplicable. Yes. There may be many people who have encountered this problem and spent several hours on it but still can't find a reasonable explanation. String 4hello world
. Can you see the display effect in IE and get a reasonable explanation? We can see that the hello in the front is displayed normally, while the world in the back is displayed in the textarea. This proves that IE does not correctly recognize that the textarea tag has closed itself. Instead, it treats the following content as a textarea when it is not closed. internal content.hello
world