<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Maverick Web Creations &#187; XHTML</title>
	<atom:link href="http://www.maverickwebcreations.com/tag/xhtml/feed" rel="self" type="application/rss+xml" />
	<link>http://www.maverickwebcreations.com</link>
	<description></description>
	<lastBuildDate>Thu, 09 Sep 2010 10:12:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to Customize the Google Friend Connect WordPress Plugin&#8217;s CSS &amp; Make It XHTML Compliant</title>
		<link>http://www.maverickwebcreations.com/2009/03/18/how-to-customize-the-google-friend-connect-wordpress-plugins-css-make-it-xhtml-compliant.html</link>
		<comments>http://www.maverickwebcreations.com/2009/03/18/how-to-customize-the-google-friend-connect-wordpress-plugins-css-make-it-xhtml-compliant.html#comments</comments>
		<pubDate>Wed, 18 Mar 2009 13:57:40 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[Friend Connect]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[XHTML]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=574</guid>
		<description><![CDATA[<p>This is a follow up to my previous post on <a href="http://www.maverickwebcreations.com/2009/03/17/how-to-install-the-google-friend-connect-wordpress-plugin.html">how to install the Google Friend Connect WordPress plugin</a>. This plugin by Google is really rough on the edges and it requires some tweaks for people concerned with the XHTML code and CSS design.</p>
<p><strong>Fixing the Google Friend Connect</strong>&#8230; <a href="http://www.maverickwebcreations.com/2009/03/18/how-to-customize-the-google-friend-connect-wordpress-plugins-css-make-it-xhtml-compliant.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.maverickwebcreations.com/wp-content/uploads/2009/03/google_friend_connect_diagram-299x300.gif" alt="Google Friend Connect" title="Google Friend Connect" width="299" height="300" class="alignright size-medium wp-image-577" />This is a follow up to my previous post on <a href="http://www.maverickwebcreations.com/2009/03/17/how-to-install-the-google-friend-connect-wordpress-plugin.html">how to install the Google Friend Connect WordPress plugin</a>. This plugin by Google is really rough on the edges and it requires some tweaks for people concerned with the XHTML code and CSS design.</p>
<p><strong>Fixing the Google Friend Connect WordPress Plugin&#8217;s XHTML Errors</strong></p>
<p>The Google Friend Connect WordPress Plugin has a few XHTML errors.</p>
<ul>
<li>It uses the &lt;br&gt; tag, which has been depreciated and the &lt;br /&gt; tag should be used instead.</li>
<li>It uses the &lt;b&gt; tag, which is depreciated and the &lt;strong&gt; tag should be used instead.</li>
<li>There is an unnecessary &lt;br&gt; tag in the fc_wp_comment_form() function. This may cause your comment form to look weird.</li>
<li>1 of the img tags does not have the closing />.
</ul>
<p>To fix these errors, you need to make the following changes.</p>
<p>Original code:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>144
145
146
147
148
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #0000ff;">'&lt;img align=&quot;left&quot; src=&quot;'</span> <span style="color: #339933;">+</span>  viewer<span style="color: #339933;">.</span>getField<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;thumbnailUrl&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;b&gt;Hello '</span> <span style="color: #339933;">+</span>  viewer<span style="color: #339933;">.</span>getField<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;displayName&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'!&lt;/b&gt;&lt;br&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;a href=&quot;#&quot; onclick=&quot;google.friendconnect.requestSettings()&quot;&gt;Settings&lt;/a&gt;&lt;br&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;a href=&quot;#&quot; onclick=&quot;google.friendconnect.requestInvite()&quot;&gt;Invite&lt;/a&gt;&lt;br&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;div id=&quot;loadprof&quot;&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>74
75
76
77
78
79
80
81
82
83
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">// The fc_wp_comment_form function
// This just creates a div tag that will be replaced by the javascript code
// when the page gets loaded
function fc_wp_comment_form() {
 ?&gt;
   &lt;br&gt;
   &lt;div id=&quot;profile&quot;&gt;
   &lt;/div&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
<p>Edited code:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>144
145
146
147
148
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #0000ff;">'&lt;img align=&quot;left&quot; src=&quot;'</span> <span style="color: #339933;">+</span>  viewer<span style="color: #339933;">.</span>getField<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;thumbnailUrl&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; /&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;strong&gt;Hello '</span> <span style="color: #339933;">+</span>  viewer<span style="color: #339933;">.</span>getField<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;displayName&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'!&lt;/strong&gt;&lt;br /&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;a href=&quot;#&quot; onclick=&quot;google.friendconnect.requestSettings()&quot;&gt;Settings&lt;/a&gt;&lt;br /&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;a href=&quot;#&quot; onclick=&quot;google.friendconnect.requestInvite()&quot;&gt;Invite&lt;/a&gt;&lt;br /&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;div id=&quot;loadprof&quot;&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>74
75
76
77
78
79
80
81
82
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">// The fc_wp_comment_form function
// This just creates a div tag that will be replaced by the javascript code
// when the page gets loaded
function fc_wp_comment_form() {
 ?&gt;
   &lt;div id=&quot;profile&quot;&gt;
   &lt;/div&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
<ol>
<li>Replace all &lt;br&gt; tags with &lt;br /&gt;.</li>
<li>Replace all  &lt;b&gt; tags with &lt;strong&gt;.</li>
<li>Remove the  &lt;br&gt; tag in the fc_wp_comment_form() function on line 49.</li>
<li>Add a back slash to the &lt;img&gt; tag on line 150.</li>
</ol>
<p><strong>Editing the CSS of Google Friend Connect WordPress Plugin&#8217;s Sign In Box</strong></p>
<p>Original code:</p>
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#profile</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">blue</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#E5ECF9</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>
<p>Edited code:</p>
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#profile</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>
<p>This really depends on how you want the sign in box to look like. I hate the blue border and how it was aligned to the centre of the page. So I removed the border and margin/padding space.</p>
<p>You might also encounter CSS problems with the code below:</p>
<p>Original code:</p>
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
body <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
h2 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#3366CC</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">&#125;</span>
h3 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">&#125;</span>
h4 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> grey<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">&#125;</span></pre></div></div>
<p>Google adds this code to your WordPress site whether you like it or not. This to me, is very sloppy coding from Google. They could have added classes instead of forcing all h2, h3, h4 tags to look the way they want it to. Lucky for me, I use CSS classes to control how my h2, h3 and h4 tags so I am not affected by this code. However, if you use a general h2, h3, h4 without any classes or IDs, then good luck!</p>
<p>Edited code:</p>
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
body <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
h2 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#3366CC</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">&#125;</span>
h3 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">&#125;</span>
h4 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> grey<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">&#125;</span></pre></div></div>
<p>I found that it was okay for me to remove the body code and it did not affect the sign in box.</p>
<p>Hopefully we will see some improvements to Google&#8217;s plugin in the future. It is still rather buggy at the moment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2009/03/18/how-to-customize-the-google-friend-connect-wordpress-plugins-css-make-it-xhtml-compliant.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>What Does XHTML Mean?</title>
		<link>http://www.maverickwebcreations.com/2008/06/17/what-does-xhtml-mean.html</link>
		<comments>http://www.maverickwebcreations.com/2008/06/17/what-does-xhtml-mean.html#comments</comments>
		<pubDate>Tue, 17 Jun 2008 07:08:02 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[XML]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=82</guid>
		<description><![CDATA[<p><strong>What Does the X in XHTML Mean?</strong></p>
<p>Most of us are familiar with HTML &#8211; the markup language that websites are written in. However, although it&#8217;s been around for a long time, we might not know as much about XHTML. What&#8217;s the &#8220;X&#8221; stand for? XHTML is an acronym for&#8230; <a href="http://www.maverickwebcreations.com/2008/06/17/what-does-xhtml-mean.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>What Does the X in XHTML Mean?</strong></p>
<p>Most of us are familiar with HTML &#8211; the markup language that websites are written in. However, although it&#8217;s been around for a long time, we might not know as much about XHTML. What&#8217;s the &#8220;X&#8221; stand for? XHTML is an acronym for <span class="zem_slink">eXtensible Hypertext Markup Language</span>. It has the same depth of expression offered by HTML, but it conforms to XML syntax. There are a lot of benefits to converting your old HTML page to XHTML.</p>
<p>There are a few versions of XHTML. The first is XHTML 1.0 Strict. This works almost the same as HTML 4.01, but XML syntax rules are enforced, resulting in greater readability, faster load timesand better search engine indexing. XHTML 1.0 Transitional uses the same syntax as Strict, but it lets you do more, too. You can use a number of extra elements and attributes, which helps people who are still using older versions of HTML (3.2 and earlier) make the change. That means you can still use the &lt;center&gt;, &lt;u&gt;, &lt;applet&gt; and &lt;strike&gt; tags.</p>
<p><strong>Benefits of XHTML 1.0 Over HTML 4</strong></p>
<p>Unlike HTML 4, XHTML provides a lot more accessibility. That means that even people who are disabled can view your page, sometimes using special devices. Accessible websites are actually part of the Disability Discrimination Actand now we have the ability to create it. Complying with XHTML standards makes it easy for blind or vision impaired people to read your website without a problem. However, that&#8217;s not the only thing that&#8217;s great about it.</p>
<p>If you convert your old page to XHTML, search engines will have an easier time finding it. Using XHTML compliant code means that your site is well structuredand spiders from your favorite search engine can index it more effectively. That improves your search rankings. In fact, just upgrading your site could give you a better position without any other changes. For many businesses, this is a significant benefit.</p>
<p>Since XHTML enforces better code standards, file sizes are smaller and load times are faster. If you combine your XHTML page with CSS, you&#8217;ll see even faster load time. Since a slow site turns many users off, this can allow you to keep more visitors.</p>
<p><strong>When Should You Use XHTML Strict or XHTML Transitional?</strong></p>
<p>Pages that are being adjusted from HTML 4.01 should use strict, since the basic content is the same. If you&#8217;re using older &#8220;presentational&#8221; elements, try using Transitional instead, to ease your way into the new language. Of course, if you&#8217;re not comfortable with all the ins and outs of coding in XHTML, talk to a professional. A skilled web developer will know what to use and when to use itand can help you make the transition smoothly, producing a lean, speedy, easy to index page that&#8217;s fully XHTML compliant.</p>
<p>If you&#8217;re still using a page that runs on older code, think about making the change. XHTML pages load faster and are better for users. They even allow leaner, faster browsers that don&#8217;t take up as much memory. There&#8217;s no reason to stick with an old fashioned webpage when XHTML can make things better for all of us.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2008/06/17/what-does-xhtml-mean.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
