Inline HTML issue for the HTML...

User 2823310 Photo


Registered User
312 posts

I'm wondering what's happening with an italic or emphasis inline tag when placed in a RSD HTML element? The tag is getting written but it seems like it's getting re-styled?

Here check the "coffering" pop up (red button red at the bottom of this page): http://www.gordw.com/test/finish-carpenter.html
In that there is an italic quote: When Michelangelo first saw the Pantheon in the early 1500s, he proclaimed it of angelic and not human design. Written with inline HTML tags:
When Michelangelo first saw the Pantheon in the early 1500s, he proclaimed it of <i>angelic and not human design.</i>

Not a big thing but <em> or <i> tags don't work so I was kind of curious why.
User 2823310 Photo


Registered User
312 posts

You can fix that with a styled inline span by the way.
<span style="font-style: italic;">angelic and not human design.</span>

It's just my understanding is that CSS always cascades to an inline tag last. So what could this be, it's kind of weird?
User 379556 Photo


Registered User
1,603 posts

Perhaps the distinction between the <i></i> tags in HTML4.01 and HTML5 is relevant. This is mentioned, for example, in the "Differences Between HTML 4.01 and HTML5" section here.

Frank
User 2823310 Photo


Registered User
312 posts

Yeah Frank I think you're right it must have something to do with the newer HTML 5 doctype. I see under the older doctypes it still works but for 5 looks like you need to style those. Curious, I thought even with depreciated tags it parsed legacy.
Which made me notice RSD doesn't use a shiv either... I take it the focus in RSD is only up to date browsers, which I'm okay with 'bout time we moved on, but it's good to know.

One thing I did see going over the HTML generation is how important it is to semantic class even generic text, that is building out of hand already with only a couple of pages in the main CSS and I missed that one. I was assuming that basic was done for you in the coffeeginder sheet. I did do type for going to verdana from arial / helv which is neat but you got to keep an eye on the span text styles.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.