Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
@reiver ⊼ (Charles) :batman:
@reiver@mastodon.social  ·  activity timestamp last week

One thing I like about XML, and in particular, that XML introduced is —

XML introduced a notation for self-closing (i.e., void) tags.

I.e., the trailing slash

For example:

<img src="..." />

(Note the "/>" at the end of the tag.)

...

From the point of view or someone writing a parser, I liked this convention.

...

I think this would have also been a great UX for custom HTML elements, too. As it would make it so wouldn't have to always include a closing tag.

#HTML #WorldWideWeb #XML

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.1 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login