News for hackers. Stuff that matters.
Re:Introduction to HTML and CSS by grahamel on Thursday February 06, 2014 @05:01AM (#7189573)
nice touch with the <br> <br/> either is fine
Re:Introduction to HTML and CSS by baby on Thursday February 06, 2014 @05:39AM (#7189677)
isn't <br /> part of XHTML and not HTML5?
Re:Introduction to HTML and CSS by grahamel on Thursday February 06, 2014 @06:46AM (#7189857)
Actually looking into it seems that it is, and that example is wrong.

The spec examples only use <br> and call it a void element (one which can't have any content) but states only foreign elements can be self closing.

Re:Introduction to HTML and CSS by shawnz on Thursday February 06, 2014 @10:23AM (#7190780)
It's true that void elements can't be self-closing in HTML, but the slash is still allowed. If you scroll down to 8.1.2.1 #6, you will see that the slash is just ignored if present on void elements.
Re:Introduction to HTML and CSS by mjhea0 on Thursday February 06, 2014 @09:48AM (#7190615)
technically, yes - but it can still be used. either is fine.
Re:Introduction to HTML and CSS by c23gooey on Thursday February 06, 2014 @08:20PM (#7194226)
i think this makes it confusing for the casual, first time learner.