Free since 2005 · No login required
AT

Academic Tutorials

Learn at your own pace

site-mobile-top-banner · 320x50

What about elements that don't have a close tag, such as < IMG > and < hr > ?

There are two solutions. You could use a close tag (e.g. ). However the best solution is to simply include a forward slash in the element: Will this work? As long as you include a space before the slash it will cause no problems in most Web browsers - although there have been reports of problems with some embedded HTML viewers such as Java's Swing HTML editor.