Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


August 29, 2006

Outlook 2007: HTML Forms Are "Out;" CSS Is "In"

RSS
Subscribe to Windows IT Pro | See More Exchange Server and Outlook Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Even though Microsoft Office 2007 isn't due for release for several months (late 2006 to volume license customers; early 2007 for retail and OEM customers), Microsoft is already documenting key changes to the product to help with the transition. The latest effort is a detailed description of which HTML elements and Cascading Style Sheets (CSS) features Outlook 2007 will support in email messages. The two-part MSDN article "Word 2007 HTML and CSS Rendering Capabilities in Outlook 2007" (see the URLs below) is must reading for any organization that sends newsletters or other standard or automated messages in HTML format. It tells you what you need to know to ensure that the messages look good in Outlook 2007, which has better CSS support than any earlier version.

In addition, Microsoft has released a validation tool to check HTML and CSS files in Visual Studio 2005, Office SharePoint Designer 2007, Expression Web Designer 2007, Macromedia Dreamweaver MX 2004, and Dreamweaver 8 for conformance with Outlook 2007's rendering capabilities. Organizations that use any of those applications to generate HTML content to send in messages (e.g., a newsletter) can use this new utility to help determine how that HTML will appear in Outlook 2007. You can download the tool, called Outlook HTML and CSS Validator at http://www.microsoft.com/downloads/details.aspx?familyid=0b764c08-0f86-431e-8bd5-ef0e9ce26a3a&displaylang=en .

What makes this effort both possible and necessary is that Outlook 2007's HTML rendering no longer depends on Microsoft Internet Explorer (IE). In earlier versions, the appearance of an HTML message in Outlook depended in part on which version of IE was installed on the system. Starting with Outlook 2007, the IE dependency goes away. Instead, just as Outlook 2007 uses Office Word 2007 as the sole editor for all types of Outlook items, it also uses Word 2007's rendering engine to display HTML messages. Thus, for the first time, it's possible to determine in advance precisely how Outlook will render an HTML message, regardless of what IE version the system has.

This lack of dependency on IE also shows itself in another way that security-conscious administrators will like. In earlier versions, Outlook had a View, View in Internet Zone command on its toolbar to allow a user to render an HTML message in the less secure Internet zone, for example, when the message contained a script. The [script] html tag (replace brackets with angle brackets -- <) is one among several HTML elements that are no longer supported in Outlook. The ability to render an email message in a less secure fashion remains, but the new command is Other Actions, View in Browser. If the user invokes that command, Outlook turns over any responsibility for dealing with the HTML message content to the user's browser, where it will be subject to the browser's security configuration. Thus, Outlook 2007 will never run a script in an HTML message.

Another blocked HTML tag is [form], along with the tags for all form controls. This means that you can't send an Outlook user an HTML message that contains a form with a Submit button to return results either in an email message or to a Web site. The data entry controls and Submit button won't even be visible to the Outlook 2007 user. To submit the form, the user would have to use the View in Browser command to view the HTML content in a browser.

This change definitely is going to affect some businesses. For example, Aliencamel.com, an email provider based in Australia, currently relies on the user interacting with an email-based form to release items from a spam quarantine folder. Aliencamel's Sydney Low says the company is exploring two possible solutions to accommodate Outlook 2007 users--either an add-in that provides a toolbar button to perform the same functionality or a change in its HTML code to add browser/rendering detection so that users see a message optimized for Outlook 2007. Ideally, Low says, "If the email is being displayed in Outlook 2007, it would say 'Click on this link to display the content,' but in other clients, an HTML form would be displayed."

If you want to give the validation tool a whirl, I recommend that you download the free trial version of the new Microsoft Expression Web Designer, a Web page editor designed from the ground up to work with CSS. Once you install Expression, follow the instructions in the "Word 2007 HTML and CSS Rendering Capabilities in Outlook 2007 – Part 2" article to add the ability to check HTML and CSS against the schema for Outlook. Open any HTML file that you want to test, and edit the HTML code to remove any attributes on the [html] tag. Then choose Tools, Compatibility Reports. Under "Check HTML/XHTML compatibility with," choose "HTML for Word 2007." Under "Check CSS compatibility with," choose "CSS Word 2007." Clear the box for "Run check based on doctype declaration in page if available." Then, click Check. Expression will display a compatibility report showing all the validation errors. Double-click any line in the report, and you'll go directly to the code with the validation error.

Compare the validation errors with the detailed list of supported and unsupported tags and attributes in the articles, especially Part 1, and you'll see how the rendering restrictions on HTML messages in Outlook 2007 add to Outlook's security. For example, the title attribute, which is used on Web pages to provide screen tips, isn't supported at all. This means the sender can't use a title attribute to hide the destination of a hyperlink; the screen tip for the link will always show the actual URL. Similarly, the [a] tag used for links doesn't support the class attribute. That approach prevents the sender from using a style to make some links look different from others. A link to external content in the background property of a style won't work at all (even if Outlook is otherwise configured to download external content for HTML messages).

This new validation tool isn't perfect. Because it depends on the compatibility-checking capability of the underlying HTML editor, it might not show a validation error for every unsupported style feature listed in the articles. For example, it didn't tell me about an external URL that I had included in the background property of my style for the [body] tag. But, combined with the detailed documentation in the article on Outlook 2007 rendering capabilities, organizations that want to start designing newsletters and other complex HTML-format messages for Outlook 2007 now can get a solid head start.

Word 2007 HTML and CSS Rendering Capabilities in Outlook 2007 (2 parts) http://msdn2.microsoft.com/en-us/library/aa338201.aspx http://msdn2.microsoft.com/en-us/library/aa338200.aspx

Microsoft Expression Web Designer Community Technology Preview 1 http://www.microsoft.com/products/expression/en/web_designer/wd_free_trial.aspx

End of Article



Reader Comments
Here's now to display text at
the top of an HTML message just for Outlook 2007 users. Add the following text just below the <body> tag.

<!--[if gte mso 12]><BR>To submit your selection using Outlook 2007 click
the <STRONG>Other Actions</STRONG> button, then <STRONG>View in
Browser</STRONG>.<BR><![endif]-->

Sue_Mosher December 12, 2006 (Article Rating: )


Here is a variation of the code above that allows you to specify HTML that will only be rendered for non-Outlook 2007 clients. So in our case, we can still display a site search box in our Marketing email for everybody not using Outlook 2007.

<!--[if gte mso 12]>
<div style="display: none;">
<![endif]-->

// Any HTML listed will not be displayed in Outlook 2007

<!--[if gte mso 12]>
</div>
<![endif]-->

And if you wanted to provide a link for those using Outlook 2007, you could also add:

<!--[if gte mso 12]>
<a href="">Search Our Site</a>
<![endif]-->

cromack March 06, 2007 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

The Desktop tab is missing from the Display Properties in Windows XP?

...

Microsoft's Olympic Gold

With world records being broken at a dizzying pace, the 2008 Summer Olympics in Beijing has drawn massive audiences from around the world, most watching the games via traditional TV coverage. But behind the scenes, a massive array of technology is ...


Exchange Server and Outlook Whitepapers Anonymizers – The Latest Threat to Your Web Security

Replay for Exchange: Enterprise Protection and an Affordable Price

ETX Driving Embedded I/O

Related Events Check out our list of Free Email Newsletters!

Exchange Server and Outlook eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

The Expert's Guide for Exchange 2003: Preparing for, Moving to, and Supporting Exchange Server 2003

Related Exchange Server and Outlook Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.

Exchange & Outlook UPDATE eNewsletter
News, strategies, products, and developments in Exchange Server and Outlook messaging.
Job Openings in IT


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

WinConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

Deploying SharePoint! In-Person Event Series – 8 Cities
Discover best practices and tips for deploying the perfect SharePoint infrastructure. Early Bird Price of $99 extended till Sept. 15th.

Find a new job now on the all new IT Job Hound!
Search jobs, post your resume, and set up job e-mail alerts!

Master SharePoint with 3 eLearning Seminars
Learn how to build a better SharePoint infrastructure and enable powerful collaboration with MVPs Dan Holme and Michael Noel. Register today!

Top Tools for Virtualization Disaster Recovery & Replication
View this web seminar on August 14th to learn about two tools that will result in faster backup and restore with P2V disaster recovery.

SharePointConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

VMworld 2008 - Sign Up Today!
Join your peers on September 15-18 at The Venetian Hotel in Las Vegas as VMware hosts VMworld 2008, the leading Virtualization event.



When managing just VMware isn’t enough
Plan/Manage/Secure – NetIQ VMware management. Download whitepaper.

What’s up with your network? Find out with ipMonitor
Availability monitoring for servers, applications and networks – FREE trial

Microsoft® Tech•Ed EMEA 2008 IT Professionals
Advance your thinking with new ideas and practical real-world solutions at Microsoft’s FIVE day technical infrastructure conference 3-7 Nov., 2008. Register before 26 September 2008 to save €300.

Order Your Fundamentals CD Today!
Gain an introduction to Exchange, learn server security requirements, and understand how unified communications can play a role in your messaging strategies with this free Exchange CD.

Are You Really Compliant with Software Regulations?
View this web seminar that will help you with compliance best practices and check out a management solution to assure that you won’t be in jeopardy of an audit.

Virtualization Congress Oct. 14-16 in London
Don't miss Virtualization Congress, the premiere EMEA conference dedicated to hardware, OS and application virtualization. Oct. 14-16 in London.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technical Resources Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing