Tuesday, March 31, 2009
HTML4 and XHTML
This one hurts, Jason suggested to me to post this, and since Macadamian is an "egoless" programming shop - that I do adhere to - I do it even though I might be laughed at!
More seriously, when dealing with HTML, remember that each version of the specification has specific characteristics. And the application you are using (in my case Atlassian's Confluence), is validating against some version of the specification. Somehow I known this for years, having spent countless hours in the SOAP and WSDL specifications back in my Cognos days. Yet somehow I forgot, its easy to overlook these sorts of things sometimes.
Now the problem I encountered was around the closing tags. In XHTML you can do things like this but not in HTML4:
<iframe src=.../>
More seriously, when dealing with HTML, remember that each version of the specification has specific characteristics. And the application you are using (in my case Atlassian's Confluence), is validating against some version of the specification. Somehow I known this for years, having spent countless hours in the SOAP and WSDL specifications back in my Cognos days. Yet somehow I forgot, its easy to overlook these sorts of things sometimes.
Now the problem I encountered was around the closing tags. In XHTML you can do things like this but not in HTML4:
<iframe src=.../>
instead, in HTML4 you have to explicitely use the closing tag as shown below:
<iframe src=...> </iframe>
The consequence of this mistake was that all the code following the first form was not rendered by the Browser (I tested this in Firefox and Chrome). I could see the content driven by the iframe though.
So the morale of the story, read the manual and remember the specification! :)
So the morale of the story, read the manual and remember the specification! :)
Labels: specification
Comments:
<< Home
As for me, info from https://essaydragon.com/blog/spend-the-entire-summer-holidays-on-campus will be really useful if you need to decide where should you live, on campus or off-campus.
Wow, amazing blog layout! How long have you been blogging for?
you made running a blog glance easy. The entire glance of your website
is great, as well as the content!
Lawnchair 2
you made running a blog glance easy. The entire glance of your website
is great, as well as the content!
Lawnchair 2
In some way I knew this for years, having spent limitless hours within the cleaning soap and WSDL specifications back in my Cognos days. eyebrow razor electric | ultrasonic hot and cold facial massager
xhtml is a aggregate of html and xml, whereas html5 is a version of html. xhtml has its own parsing necessities, printed circuit board assembly
surprising statistic Buy Essay Custom which they've released is that carrier billing has increased app sales.
Hello. I completely agree with the moral of the post - read the instructions. and you also need to read essays and articles written by specialists from the company pay someone to write essay who prepare chic material on any topic. also write term papers and resumes
For a hassle-free way to upgrade your phone, choose MyPayvantage. They offer fast approval and no-credit payments on the latest iOS and Android devices, ensuring you can get the newest technology without any stress. This service is perfect for anyone looking to avoid the traditional complications of financing. MyPayvantage provides a straightforward and convenient shopping experience, making it easy to get your new device quickly and easily.
For fans of quick and easy online gaming, io games provides a plethora of browser-based games. These games are designed for instant play, allowing you to join matches and compete with others without any hassle.
Post a Comment
<< Home