Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

39 users online



Iframes

Iframes

Currently viewing this thread: 1 (0 members and 1 guests)


Page 4 out of 4
Gichin_Funakosh

Gichin_Funakosh

Status: Offline!

I'm probably one of the biggest proponents of XHTML on this board. However, I think both sides are making very valid points here.

HTML 4.01 Strict is still a web standard, and just as acceptable to use as XHTML 1.x. In fact, it is sometimes better to use. Why?

- XHTML, when served as application/xhtml+xml, will not render if there is a single coding error, because it is being parsed as XML. This is a feature, not a bug: it helps you catch errors in your coding. However, living on a "knife edge" is not appropriate for all people or all web sites.
- XHTML, when served as text/html, is in no way better than HTML.

HTML can be just as well-formed and semantic as XHTML. Just take a look at Mark Pilgrim's site: http://www.diveintomark.org/. There is nothing that states that HTML sites cannot separate structure from presentation, control styling entirely through CSS, be accessible, etc. etc. etc. It all depends on the quality of the coder.

So then why go XHTML?

You could be one of those rarified individuals that actually needs to have their page parsed as XML. If you want to make use of other XML applications, XHTML is the way to go. XHTML interfaces with XML in ways that HTML cannot. Do you use XSLT or MathML? Then XHTML is for you. While there aren't tons of these people around now, as time progresses, more and more people are going to want/need to take advantage of true XML processing.

Or, more commonly, you might want to make a "political statement." Regardless of the fact that HTML can be just as semantic and well-formed as XHTML, when most people think of HTML, they think of early-1990's designs: inaccessible, unsemantic, full of "tag soup" code and hundreds of validation errors. XHTML stands for change: it is a way of escaping the negative legacy of HTML and pushing for a more accessible, more semantic, better future web.

I code in XHTML 1.1 for the latter reason. Some (few) people code in XHTML 1.x for the former. But many still use HTML.

And you know what?

That's just fine.

It isn't about what spec you use. It's about how you code. There are tons of XHTML pages out there that are total junk, as far as their coding goes: they are inaccessible, they don't seperate presentation from structure, they don't validate, etc.

So use XHTML if you please. Or use HTML. It honestly doesn't matter, as long as you use them properly.

kgx

kgx

Neverside Newbie
Status: Offline!

Very funny yet intersting thread Smile

To the person who started the thread, here are a few links.

The no iframe way: http://skinsntemplates.com/view.php?id=54&title=Pho ... 5a3f7f432d0d9c16fbe5

The iframe way: http://www.yourhtmlsource.com/frames/inlineframes.html

Rad

Rad

thinking of something witty to put here
Status: Offline!

I'm glad to have entertained you KGX Grin

Good post Gichin, I can see you're a very knowledgeable person to have around the forums.

noprofile

noprofile

Status: Offline!

Gichin Funakosh, you said it all in one peice Smile Good to see one person here not worship XHTML like it is the next coming of christ and see that it is the coding method, not the newest fad that matters.

___________________

Please read Sig Guidelines

Rad

Rad

thinking of something witty to put here
Status: Offline!

Now you have to convince Ynhockey, Gichin. Smile

Xplosive

Xplosive

I play guitar, love web design, cars, and my girl
Status: Offline!

[QUOTE]
Sample HTML [url=http://www.w3schools.com/tags/tag_iframe.asp]iframe[/url] code:
[code]
<iframe src="path/to/included/page.html" frameborder="0" width="500" height="350" scrolling="auto">Text to be shown if iframes aren't supported.</iframe>
[/code]

Sample DIV iframe-look-alike code:
[code]
[b]XHTML[/b]:
<div id="imposter">
<p>Sample content (This can be whatever).</p>
</div>

[b]CSS[/b]:
#imposter {
width: 500px;
height: 350px;
overflow: auto;
}
[/code]

Hope that helps, horoshi.

// freak [/B][/QUOTE]


i would just like to say that i needed to use an iframe and had problems linking to anchor tags within the iframe from external HTML pages. freak's css code above did the job perfectly to fix my problem...so thank you Grin

___________________

xplosive concepts
:: redesigning web design
http://www.xplosiveconcepts.com

freak

freak

Neverside Newbie
Status: Offline!

Your welcome. Smile Glad I could help.

// freak

___________________

Tables for layout is an abuse. -- Internet Explorer is unsafe.

Page 4 out of 4
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0092 seconds.