No this behavior is not specified in any standard it is just how browsers interpretate the pre tag . Although as per HTML standard it the line break should be there but the browsers interpretate it like this.