Elizabeth (the delinquent, ecumenical) (
hermionesviolin) wrote2006-03-12 01:02 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Entry tags:
learn something new every day
zomg I hate rich text option in LJ. I tried it out 'cause I already had a draft in Semagic and figured I'd save time not hand coding the bolds. Yech. em for italics ("emphasis") and strong for bold. And they do this weird <br /> shit for line breaks. And it's so hard to edit. And I couldn't see any way to move it back to regular edit. *stabs* (I c&p-ed into Semagic, deleted the entry, recoded, then c&p-ed back. So not a timesaver. A mistake I will never repeat.)
Re: Technically....
HTML was originally designed to be able to render text with formatting though a common, human readable means. <i> and <em> are technically different, but people tend to use them the same way. But they are not. Now, HTML knows that there are two types of elements, paired tags and single tags. A paired tag says, "Start formatting this way until you encounter the end element, such as turning italics on until an ending </i> element is encountered. But there are other elements like <br> or <hr> that tell the formatting engine to take an action here and now and then be done with it.
This is different from XHTML which is an XML version of HTML and requires that documents be well-formed (and valid but that's another whole topic). A well-formed document is one in which each element has a closing element. Technically that means that a line feed would need to be written as <br></br>. Instead, you can use a short hand to tell the XML processor that there is no closing element by including the / at the end of the element, making <br />.
The reason behind XHTML is to make it easier to dynamicize web content. If you're really interested, I'll dig up a better and more in-depth history lesson for you.