in reply to Re: Excel Picture Size Changes & other actions
in thread Excel Picture Size Changes & other actions

To be pedantic, <br /> isn't actually legal in HTML either. (If you think it is, I challenge you to give the relevant SGML/HTML-DTD rules and the derivation)
  • Comment on Re^2: Excel Picture Size Changes & other actions

Replies are listed 'Best First'.
Re^3: Excel Picture Size Changes & other actions
by Anonymous Monk on Nov 02, 2010 at 19:43 UTC
    Go to http://validator.w3.org/ and enter
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><HEAD><TITLE>Br</TITLE></HEAD><BODY><br/></body></html>
    compare with
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR +/html4/strict.dtd"> <html><HEAD><TITLE>Br</TITLE></HEAD><BODY><br/></body></html>
      <html><HEAD><TITLE>Br</TITLE></HEAD><BODY><br/></body></html> The sequence <FOO /> can be interpreted in at least two different ways +, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO + (with an implied '>'). However, since many browsers don't interpret it this way, even in the +presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documen +ts and reserve its use solely for those written in XHTML.
      Ah, yes, I forgot that nettags are formally supported by the DTD. So, yes, <br/> is valid, but it's not a simple line break: it's a line break followed by a greater than sign. Not supported by most browsers though.