Re: Slash or no slash?

On 3 Mar 2015, at 14:20, Bill Byrd wrote:

> Immediately below your snippet for the “passed the validation” badge, you have this...
>
> (close the img tag with > instead of /> if using HTML <= 4.01)
>
> To me, that suggests that HTML5 user WOULD use the forward slash.
> That’s not correct is it?

It is correct. The `/` character is optional in HTML 5.

See [Stackoverflow: Are self-closing tags valid in HTML5?][1]


[1]: http://stackoverflow.com/questions/3558119/are-self-closing-tags-valid-in-html5

-- 
David Dorward
http://dorward.co.uk/

Received on Thursday, 5 March 2015 13:21:47 UTC