Difference between revisions of "Talk:1144: Tags"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(would it work?)
Line 17: Line 17:
  
 
Similarly, it would be nice to address whether you can close a <code><nowiki><div></nowiki></code> with a <code><nowiki></span></nowiki></code>. Obviously you're not supposed to, but would it work? &ndash;&nbsp;''[[User:Philosopher|Philosopher]]''&nbsp;<sup>[[User talk:Philosopher|Let us reason together.]]</sup> 20:57, 7 December 2012 (UTC)
 
Similarly, it would be nice to address whether you can close a <code><nowiki><div></nowiki></code> with a <code><nowiki></span></nowiki></code>. Obviously you're not supposed to, but would it work? &ndash;&nbsp;''[[User:Philosopher|Philosopher]]''&nbsp;<sup>[[User talk:Philosopher|Let us reason together.]]</sup> 20:57, 7 December 2012 (UTC)
 +
 +
:Opening but not closing a div tag, depends on how a browser's quirks mode interprets that; I'd expect the browser to have everything fall into that div until it encounters a close tag of an element outside (that the div is nested inside). I'd also expect that encountering a close span without having first pushed an open span tag onto the DOM would simply not be recognized as markup and treated as improperly escaped page content. But, I don't write code for any of the major browsers so this is ''wild'' speculation. [[User:Lcarsos|lcarsos]]<span title="I'm an admin. I can help.">_a</span> ([[User talk:Lcarsos|talk]])  21:24, 7 December 2012 (UTC)

Revision as of 21:24, 7 December 2012

I literally grimaced when I saw the comic, and then I read the title text and my stomach churned, and then I saw the non-breaking space and I wanted to crawl up in a ball and die. lcarsos_a (talk) 06:01, 7 December 2012 (UTC)

I'm a web developer and I didn't find this annoying, although I did roll my eyes. Then I came here to see if there was anything I missed that SHOULD annoy me. No, to annoy a web developer you have to use table tags, blink tags(not supported on most browsers for good reason, annoys anybody when it works), and have a stray !-- inside a tag where it doesn't belong. Also, use any html inside your css file. And have it where it only works in IE. Ferretwilliams (talk) 06:11, 7 December 2012 (UTC)

That's okay, it's easy to implement blink with javascript and changing the display value from hidden to inline every half second. And lots of news sites these days re-implement the marquee tag with a bit of javascript too. What Randall really missed here was an opportunity for the center and font tags. lcarsos_a (talk) 06:18, 7 December 2012 (UTC)
I'm sure Randall didn't want us to die, that's why he didn't go further. :-p Ctxppc (talk) 18:16, 7 December 2012 (UTC)

Argh. Almost as bad as unclosed left parentheses.(Y'know, like this. DreamingDaemon (talk) 10:21, 7 December 2012 (UTC)

You mean like comic 859?
That's exactly what I meant... People do that to me in emails because they know it presses my buttons! DreamingDaemon (talk) 16:56, 7 December 2012 (UTC)

It's been a long while since I coded html (I quit about the time style sheets appeared) but I think the annoying part of &nbsp; is the fact that it appears as the 6 characters instead of a space, not just that it's at the end and could push the text to another line. Doesn't this typically mean that someone copied some code but didn't look carefully at the results when they pasted it into an editor? --DanB (talk) 14:27, 7 December 2012 (UTC)

I wonder if the "answer" in the title text is yet another joke? It goes <A>: Like</A> this  — but A used in this way means Anchor, not Answer. Such a line would appear in the browser as "Like this" (with the word Like blue and underlined), making it a clickable "Like" link. -- 69.158.169.14 (talk) (please sign your comments with ~~~~)

Similarly, it would be nice to address whether you can close a <div> with a </span>. Obviously you're not supposed to, but would it work? – Philosopher Let us reason together. 20:57, 7 December 2012 (UTC)

Opening but not closing a div tag, depends on how a browser's quirks mode interprets that; I'd expect the browser to have everything fall into that div until it encounters a close tag of an element outside (that the div is nested inside). I'd also expect that encountering a close span without having first pushed an open span tag onto the DOM would simply not be recognized as markup and treated as improperly escaped page content. But, I don't write code for any of the major browsers so this is wild speculation. lcarsos_a (talk) 21:24, 7 December 2012 (UTC)