Html 5 Specification


This question already has an answer here:


Divs are not self closing. <br /> is for XHTML. I'd bet you aren't serving your pages as XHTML so don't do that. Using self-closing tags in HTML, as the break you show, forces the browser to treat your markup as an error and has to guess at what you meant. It's called "tag soup". While browsers do a pretty good job at that, you shouldn't do that any more than entering wrong code with a programming language and hoping the software handles the mistake.

Validate your markup and see what the validator says. Read the spec to see how such things are to be written.

Need Your Help

Get an array of years, months and weeks between two dates

php date datetime

I have this function that returns an array of years, months and days but I need to replace the days with weeks, so each month array will contain the weeks. Its not that easy.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.