![]() |
Closing Tags
Hey,
I'm trying to update an old mod and I'm trying to get it organized in the text editor so I can better see what's going on, but closing tags are annoying me. </page> seems to be used completely arbitrarily. I've opened some core files to compare here's an example from the bottom lines of mainhud.player <Page AbsorbsInput="false" ..... <Page AbsorbsInput="false" Background.... <Page AbsorbsInput="false" Background .... </Page> </page> (Last line of file) I really don't see why the top <page> gets closed but the middle two do not. I know when HTML first came out that the standard didn't require closing tags for everything, and failure to close <p> tags and such is still supported. Is this just a case where the client forgot to add the closing tags? So I can do it myself--to my custom file--for my own peace of mind? Thanks. |
Standard XML...
<Page> </Page> Is the same as <Page /> The later can be used when an object does not contain other objects. This applies to anything. <Button></Button> can be written as <Button /> If it doesn't contain a text value. Note: the extra space is not required so <Page/> also works. |
ahh, thanks. Now it's so much clearer!
|
| All times are GMT -5. The time now is 07:43 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI