IMG tag not "closed"

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
Registered User
Posts: 14
Joined: Mon Feb 28, 2011 1:18 pm

IMG tag not "closed"

Post by eugy » Sun Oct 01, 2017 10:08 pm

Hi, all,

I just noticed that in 3.2.1 (but I don't know WHEN this happened 1st time) img tags aren't closed.

In older version they are.

May I know why this decision was taken ? It's just a curiosity.

The reason is because I use a VB program to do some stuff in my forum content (it reads, get posts, elaborate them and make a scoreboard) and that end tag was necessary.
Not a real problem, I've noticed any image now ends with alt="Image">, I've modified my code, but I was thinking that close that tag could be better.

I repeat, it's just a curiosity :-)


User avatar
Style Customisations
Style Customisations
Posts: 2717
Joined: Tue Feb 12, 2008 3:39 pm
Location: Pakistan
Name: Rahber

Re: IMG tag not "closed"

Post by Rahber » Mon Oct 02, 2017 10:08 am

they are always closed.

I think its because of the browser you are trying to use.

Chrome.PNG (7.99 KiB) Viewed 639 times
edge.png (9.46 KiB) Viewed 639 times

User avatar
Infrastructure Team Member
Infrastructure Team Member
Posts: 720
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday

Re: IMG tag not "closed"

Post by Hanakin » Mon Oct 02, 2017 4:05 pm

HTML5 vs HTML4 thing ;) HTML5 is very loose with its tags meaning that you do not need to close tags that are self closing anymore.

User avatar
Jr. Style Validator
Posts: 881
Joined: Fri Dec 12, 2008 9:08 pm
Location: Manchester, UK

Re: IMG tag not "closed"

Post by eeji » Mon Oct 02, 2017 7:50 pm

phpBB3.0.x used an XHTML doctype which required empty elements be closed. Since 3.1 the doctype used is for HTML5 which doesn't have this requirement.

Post Reply

Return to “[3.2.x] Styles Support & Discussion”

Who is online

Users browsing this forum: No registered users and 7 guests