The other day we were talking with a fellow postaday project runner, Rebekah, about how it’s getting increasingly difficult to think about what to blog about. I don’t mean to think about something worth blogging about, I mean about anything to blog about. On which Rebekah admitted that her mind was blank that day. On which I had a free association with the HTML attribute
target="_blank". On which we pursued a discussion of what
I was explaining my understanding of this in two convoluted paragraphs, while Rebekah summed it up in one sentence. I don’t understand how I can be a teacher. I’m presumably as miserable a teacher as I’m a coder. We however reached an agreement that basic HTML deserves some love too. Like the ugly child (the ugly cat, in my case, because I object against children in general). Now, I think I could combine my two absent skills and teach you code. Hilarious, right?
To sum it up, for my own sake rather than anyone else’s (I’m hoping I’ll remember it forever/longer if I blog about it),
target is an attribute of the
<a> element. The default value is
target="_self", which opens a link in the same window. The aforementioned
target="_blank" opens a link in a new window/tab. So far, obvious. But,
target="_parent" opens a link in the parent frame. And
target="_top" breaks out of a frame when a page is locked in one. Hm.
I probably get it, unless I don’t. I wish I could experiment with frames more, but WordPress apparently doesn’t allow
<iframe>. There’s less fun in experimenting when you can’t impose your experiment on your followers (and consequently unfollowers). Ha. At least I’ve progressed insofar that I know the difference between a HTML attribute and CSS property and hopefully use the terms correctly, along with element, value and other element-ary things I should’ve known earlier.