<?xml version='1.0' encoding='utf-8' ?>
<!--  If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/  -->
<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:media='http://search.yahoo.com/mrss/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>Digital Waffle</title>
  <link>http://digitalwaffle.livejournal.com/</link>
  <description>Digital Waffle - LiveJournal.com</description>
  <lastBuildDate>Tue, 13 Apr 2004 17:18:00 GMT</lastBuildDate>
  <generator>LiveJournal / LiveJournal.com</generator>
  <lj:journal>digitalwaffle</lj:journal>
  <lj:journalid>1269330</lj:journalid>
  <lj:journaltype>personal</lj:journaltype>
  <atom10:link rel='hub' href='http://pubsubhubbub.appspot.com/' />
  <image>
    <url>http://l-userpic.livejournal.com/6622288/1269330</url>
    <title>Digital Waffle</title>
    <link>http://digitalwaffle.livejournal.com/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/3822.html</guid>
  <pubDate>Tue, 13 Apr 2004 17:18:00 GMT</pubDate>
  <title>Semi-Update.</title>
  <link>http://digitalwaffle.livejournal.com/3822.html</link>
  <description>I&apos;ve moved all my articles to my new website &lt;a href=&quot;http://twilightuniverse.com&quot;&gt;Twilight Universe&lt;/a&gt;. They are there under Articles or &apos;Waffle.&quot;&lt;br /&gt;&lt;br /&gt;I will continue to update here, but it will probably be more extract related, or maybe a feed type account, of the articles I&apos;ll put up on my main site. I&apos;ll decide in more concrete terms soon. Anyhow, thought I should let you all know.</description>
  <comments>http://digitalwaffle.livejournal.com/3822.html</comments>
  <lj:music>Flogging Molly - The Rare Ould Times</lj:music>
  <media:title type="plain">Flogging Molly - The Rare Ould Times</media:title>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/3570.html</guid>
  <pubDate>Mon, 02 Feb 2004 19:47:36 GMT</pubDate>
  <title>PNG&apos;s Just Got Smaller.</title>
  <link>http://digitalwaffle.livejournal.com/3570.html</link>
  <description>This post won&apos;t make too much sence unless you&apos;ve read &lt;a href=&quot;http://digitalwaffle.livejournal.com/2003/09/15/&quot;&gt;this&lt;/a&gt; or &lt;a href=&quot;http://digitalwaffle.livejournal.com/2003/09/16/&quot;&gt;this&lt;/a&gt;entry where I discuss PNG files, and then amendments to a program resulting from my article.&lt;br /&gt;&lt;br /&gt;However, now that is cleared up... moving on.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;display: inline;&quot;&gt;What&apos;s all this about then?&lt;/h3&gt;&lt;br /&gt;&lt;br /&gt;Since I wrote the article above the software has moved on. PhotoShop has moved onto another version (PhotoShop CS), VIMAS has updated Web Image Guru to v5, and Ken Silverman&apos;s updated PNGOut was released.&lt;br /&gt;&lt;br /&gt;So what does this mean for the results I got for their previous versions?&lt;br /&gt;&lt;br /&gt;Well a quick bit of testing should solve that question shouldn&apos;t it?&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;display: inline;&quot;&gt;Results&lt;/h3&gt;&lt;br /&gt;&lt;br /&gt;Using the same UnionJack image as last time (which came out as 4.62 kb as a GIF) I loaded up the new software and tested things out, then tried to optimise them with PNGOut. The following is the results:&lt;br /&gt;&lt;br /&gt;&lt;table height=&quot;20&quot; width=&quot;400&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tr style=&quot;font-weight: bold;&quot;&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;b&gt;PhotoShop&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Web Guru&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;Original&lt;/b&gt;&lt;/td&gt;&lt;td&gt;5.73 KB (5,870)&lt;/td&gt;&lt;td&gt;3.29 KB (3,373)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;New Version&lt;/b&gt;&lt;/td&gt;&lt;td&gt;3.29 KB (3,373)&lt;/td&gt;&lt;td&gt;3.08 KB (3,163)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;PNGOut&lt;/b&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;3.11 KB (3,192)&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;2.94 KB (3,011)&lt;/td&gt;&lt;/tr&gt;&amp;lt;/tr&amp;gt;&amp;lt;td&amp;gt;&lt;b&gt;PNGOut&lt;/b&gt;&amp;lt;/br&amp;gt;(with new /c3 option)&amp;lt;/td&amp;gt;&amp;lt;td valign=&quot;top&quot;&amp;gt;3.10 KB (3,180)&amp;lt;/td&amp;gt;&amp;lt;td valign=&quot;top&quot;&amp;gt;2.90 KB (2,970)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Notice the new PhotoShop size. They have greatly improved matters here, with their new Save For Web (powered by ImageReady code) performing as well as the old version of WebGuru. Compressing the image with PNGout only serves to reduce the photoshop image down to the smallest obtainable size that was reached with the second PS test in the last article. Not the smallest we could get it, but pretty good, and this does mean that they have solved the awful bugs that PS used to have.&lt;br /&gt;&lt;br /&gt;Web Guru 5 performs extremely well, beating the final PNGOut version of the PhotoShop image right from the start. However.. there is an interesting point to make here. Previously WG claimed the image had 99 palette entries, as does PhotoShop currently. However in this new version it only finds 84 entries. Confusingly after comparing the images I could not find any difference in at a per-pixel level.. so this is something of a mystery to me, akin to the original PhotoShop bug of finding 130 entries.&lt;br /&gt;&lt;br /&gt;Perhaps VIMAS has managed to optimise their colour analysis, or some other background process that I don&apos;t know about. Whatever they have done certainly these fewer entries will help their final size stay smaller, but seemingly it doesn&apos;t impact upon the actual image. I don&apos;t concider this anomaly to be very important, but I think it was worth mentioning. If anyone can shed any light on this, please tell me.&lt;br /&gt;&lt;br /&gt;Compression with PNGOut on both images yeilded significant gains, with the newer /c3 option actually improving matters even more. Finally we can get the image to below 3000 bytes! A challenge I &lt;a href=&quot;http://digitalwaffle.livejournal.com/2003/09/16/&quot;&gt;had made previously&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;display: inline;&quot;&gt;Conclusions&lt;/h3&gt;&lt;br /&gt;With its Creative Suite (CS) version PhotoShop has closed the gap its previously inept versions had left, and compression with PNGOut on its achieves excellent results, if not quite reaching the optimal. PhotoShop now is a platform that can be realistically concidered for working with PNG web images.&lt;br /&gt;&lt;br /&gt;Web Guru however still manages to just stay ahead of PS, but its lead is much less than it was. PNGOut also gets excellent results with the new version, so this would still be my choice of software for now.&lt;br /&gt;&lt;br /&gt;However now PhotoShop has caught up with the rest of the world there is absolutely no reason to use GIF for static images. PNG far surpasses it in every respect now, and the industry standard application produces good size files. Just remember that you could be saving over 1.7kb per image in the above example. Thats a lot of saved bandwidth, and a lot of saved money. Plus your pages will load faster, and provide a better user experience.&lt;br /&gt;&lt;br /&gt;Its win, win really.</description>
  <comments>http://digitalwaffle.livejournal.com/3570.html</comments>
  <lj:music>Heather Nova - Heart And Shoulder</lj:music>
  <media:title type="plain">Heather Nova - Heart And Shoulder</media:title>
  <lj:security>public</lj:security>
  <lj:reply-count>16</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/3232.html</guid>
  <pubDate>Fri, 30 Jan 2004 20:38:50 GMT</pubDate>
  <title>Packs O&apos; Hacks</title>
  <link>http://digitalwaffle.livejournal.com/3232.html</link>
  <description>Today I&apos;m going to talk about the dirty side of style sheets. Hacks.&lt;br /&gt;&lt;br /&gt;Because of differing levels of browser support, and implementation, of CSS many designers prefer to serve different style sheets to browsers that can&apos;t handle them. These methods can also be used to serve different style sheets to different browsers but, because the reasons for doing this are minimal and subject to change with every minor browser revision, I won&apos;t cover them right now.&lt;br /&gt;&lt;br /&gt;What I will cover is a way of making Livejournal more accessible to users, and a method of hiding CSS files from browsers that won&apos;t understand them properly.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;display: inline;&quot;&gt;Why Hacks? I Thought we were trying stop that?&lt;/h3&gt;&lt;br /&gt;We are, however we must be realistic. The differences in browsers still mean that some compensation for them is required. The advantage of hacks applied to style sheet is that, rather than a complicated HTML hack where the content of each page would be moved around and generally messed up, with no regard to other applications, a style sheet hack is easy to modify &lt;em&gt;across a whole site&lt;/em&gt; by changing one file. &lt;br /&gt;&lt;br /&gt;The wisdom here is that while hacks may exist.. they don&apos;t effect the portability or accessibility of a document if they are in style sheets rather than the html.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;display: inline;&quot;&gt;LiveJournal Hacking 101&lt;/h3&gt;&lt;br /&gt;In my &lt;a href=&quot;http://digitalwaffle.livejournal.com/3067.html&quot;&gt;last entry&lt;/a&gt; I mentioned that I&apos;d had to hack one of LiveJournals layouts so that it was no longer a fixed pixel size in its text. The layout (Component) is an otherwise excellent one, but the its authors reaction to my query about this accessibilty problem was basically &lt;em&gt;&quot;It works in Mozilla, so I don&apos;t care.&quot;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;However sad and short sighted I feel that is, not to mention the idiocy of designing for 4% of the viewing public, there is at least a way around this problem. Component is part of LiveJournal&apos;s S2 style system, while - unlike S1 - it doesn&apos;t allow direct editing of the HTML files that make up the page, it does allow advanced customisation.&lt;br /&gt;&lt;br /&gt;to edit your layout go to Customise -&amp;gt; Advanced Customisations -&amp;gt; your layers -&amp;gt; Edit layer.&lt;br /&gt;Then you should see a text box in which is all the settings for the layout, there is no need to change any of this (unless you want to), but at the bottom of the page paste the following:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;
function Page::print_custom_head() {
	&quot;&quot;&quot;
	&amp;lt;style media=&quot;screen&quot; type=&quot;text/css&quot;&amp;gt;
	BODY { font-size: 69%; } 
	td, tr, select, .entry, .entryDate, .entryComments, .sideHeader, .compList { font-size: 1em; }
	&amp;lt;/style&amp;gt;
	&quot;&quot;&quot;;
} 
&lt;/pre&gt;This will insert a custom style declaration into the head of your document, and so override the previous style sheet settings, while keeping unaffected rules intact. A font size of 69% is the setting I use (approx 11px high at default settings), but you could use another size if you wish. Just experiment with a size you feel works for your layout. You can also any other style rule in here, I&apos;ve used it to change the heading tags and subject style for example.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;display: inline;&quot;&gt;Cascading Style Sheet Hack&lt;/h3&gt;&lt;br /&gt;This next hack has a more general application. It is called a High Pass Style Filter. For this to work correctly you need to have &lt;a href=&quot;http://www.livejournal.com/users/digitalwaffle/346.html&quot;&gt;a valid doctype&lt;/a&gt;, otherwise some browsers will not read it correctly. What this hack does is hide style rules from browsers that won&apos;t understand them, which is basically version 4 browsers and below. &lt;br /&gt;&lt;br /&gt;Firstly, declare a style sheet as you normally would in the head of you document:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;highpassfilter.css&quot; /&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;And then the &quot;highpassfilter.css&quot; file should contain:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;@import &quot;null?\&quot;\{&quot;; &lt;br /&gt;  @import &quot;highpass.css&quot;;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Where &apos;highpass.css&apos; is your actual style sheet with all the rules you would normally apply. Also it is advised that you have a file in the same directory called &apos;null&apos; - note that there is no file extension. This file should just contain a comment tag like so:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;/* nothing to see here */&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;This way browsers won&apos;t be confused by a completely empty file. For example IE/Mac delay&apos;s the pages opening for at least 30 seconds if you don&apos;t have &lt;em&gt;something&lt;/em&gt; in the null file. Older browsers are confused by the sequence &apos;\&quot;\{&apos; and do not import the correct style sheet below that. For a more detailed explaination of how and why this works visit &lt;a href=&quot;http://tantek.com/CSS/Examples/highpass.html&quot;&gt;Tantek&apos;s site&lt;/a&gt;, as he is the one who originally documented this hack.&lt;br /&gt;&lt;br /&gt;Nice and simple though huh? A very useful hack that can be applied to almost any situation.&lt;br /&gt;&lt;br /&gt;I hope both these hacks will help you in some way, remember - its better to hack the style rather than the content.</description>
  <comments>http://digitalwaffle.livejournal.com/3232.html</comments>
  <lj:music>Gary Jules - Mad World</lj:music>
  <media:title type="plain">Gary Jules - Mad World</media:title>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/3067.html</guid>
  <pubDate>Tue, 20 Jan 2004 19:57:18 GMT</pubDate>
  <title>Textual Intercourse</title>
  <link>http://digitalwaffle.livejournal.com/3067.html</link>
  <description>Following on from my previous article on&lt;a href=&quot;http://digitalwaffle.livejournal.com/2496.html&quot;&gt; typography on the web&lt;/a&gt; I thought I&apos;d mention a bit more about how text displays online.&lt;br /&gt;&lt;br /&gt;As a lot of you probably know, text is usually measured in points, be it 10pt, 12pt or 150pt... its the most common way you&apos;ll see text expressed. The reason it&apos;s like this is because text is usually going to be printed out, or archived for printing later. There is a problem with this however when working for the web.&lt;br /&gt;&lt;br /&gt;You see a point doesn&apos;t mean anything on screen. Nothing. Why would it? The base measurement on screen is a pixel. Pixels are rectangular (usually square, but not always), and fonts are made from vector curves. There are complex algorithms and instructions (called hinting) that govern the way a font is displayed on screen, I won&apos;t go into all that here, but basically the software makes its best guess from these rules at how the font should look at a certain pixel size.&lt;br /&gt;&lt;br /&gt;So what does this mean for the web? Well &lt;acronym title=&quot;Cascading Style Sheets&quot; style=&quot;border-bottom:1px dashed #000000;cursor:help;&quot;&gt;CSS&lt;/acronym&gt; allows us to use points, pixels, ems, and other measurments to define the size of a font. Points don&apos;t make any sense for the screen, so we shouldn&apos;t use them right? Ok.. so what else to use?&lt;br /&gt;&lt;br /&gt;Pixels! I hear you cry. Thats the base screen unit, everything should be fine in pixels! Right? &lt;em&gt;Right?&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Certainly that&apos;s been the prevailing wisdom of many designers. Pixel based displays allow you to know exactly how text will display on screen. They give pixel perfect control to designers. They are fixed.&lt;br /&gt;&lt;br /&gt;Sounds good huh? There is a problem though. Text &lt;em&gt;shouldn&apos;t&lt;/em&gt; be a fixed size in a webpage. A webpage isn&apos;t a static display like a page, its a fluid flexible beast that changes depending on a users settings, their screen size, and window size.. and that&apos;s just if they are viewing it on a PC. Throw in different OS&apos;s, browsers, oh and remember that they could be viewing on a mobile phone, PDA, or some other device that hasn&apos;t even come on the market yet.. it all starts to look a bit more complex.&lt;br /&gt;&lt;br /&gt;The goal of not using points is so that the text is rendered correctly, not so that the text is a fixed size. Granted in some case fixed sizes might be wanted, but for the most part they just add to the inflexibility, and illegibility of a design.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;display: inline;&quot;&gt;Pixel Perfect?&lt;/h3&gt;&lt;br /&gt;Specifiying font sizes in pixels does seem like a sensible option for screen media, however the problem here lies with the browsers, in in this case Internet Explorer. You can resize text by holding down Control and rotating your mouse wheel, unfortunatly this doesn&apos;t work in IE when text sizes are specified in pixels. When you specify a font size in pixels most other browsers will still let you resize the text, but IE doesn&apos;t. I have a sneaking suspicion that IE&apos;s behavior is actually correct, because else pixels sizes would be pointless. However because of its poor support of em units in the past this has been the only way to specify text effectivley on the web. So this &apos;correct&apos; behaviour has led to accesability problems, and other browsers have acted to combat it by allowing it to be resized.&lt;br /&gt;&lt;br /&gt;I even had to hack the layout of this journal (LiveJournal&apos;s otherwise pretty excellent Component scheme) to stop it using pixels.&lt;br /&gt;&lt;br /&gt;Why all this extra work for something that you might not even notice? Well that&apos;s the point, &lt;em&gt;you&lt;/em&gt; might not notice, but someone on a larger screen resolution, or who has trouble reading could very well notice, and have no option either if the font was in pixels.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;display: inline;&quot;&gt;But I Can Change My Default Size!&lt;/h3&gt;&lt;br /&gt;Yes, yes you can change the size text is normally displayed in your browsers. However this only applies to unstyled content. Any styled content will override this default. In the case of pixels you can&apos;t change this at all, but using any other method you could.&lt;br /&gt;&lt;br /&gt;Some people might complain that the font size displays too small to them or, rarely, too large. These are people who have generally changed their default font size in the browser to something smaller than its normal setting (which is 16px, believe it or not). These people acted sensibly when confronted with older, badly coded, content, however this shouldn&apos;t be nessesary if more people adopt good practice. These people tend to complain that &apos;other sites don&apos;t have this problem.&apos; This is correct, they don&apos;t because they are probably using pixels, however the problem doesn&apos;t lie with the sites, it lies with the users browser. Text is only displaying correctly when their settings are overidden, so where does the problem lie?&lt;br /&gt;&lt;br /&gt;Generally most users who change this default setting will be doing so because they have a specific use for it, and quite often will have a specific style sheet to impliment anyway. The rule of thumb here is that by supporting correct practice you are making hacks like the one the small minority have done obsolete anyway. &lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;display: inline;&quot;&gt;But It Works Fine In Mozilla/Opera! Why Should I Care?&lt;/h3&gt;&lt;br /&gt;Correct, resizing text in Mozilla (and so Firebird) and Opera works. However these browsers are used by a huge minority of people. Internet Explorer accounts for well over 90% of traffic to websites. This means that there is a high probability that someone who would need to change your sites font size will be using it. Therefore, like it or not, its quirks need to be taken into account, and you&apos;ll be following Web Standards recomendations anyhow. Its a win win situation.&lt;br /&gt;&lt;br /&gt;Designing for one browser is something that we are trying to get away from. Remember all those &lt;em&gt;&quot;looks best at 800x600&quot;&lt;/em&gt; or &lt;em&gt;&quot;Best viewed in Netscape/IE&quot;&lt;/em&gt; buttons from a few years back? That is how we got in the mess the web is in today. I certainly don&apos;t want to go back there.. do you?&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;Why Be Flexible?&lt;/h3&gt;&lt;br /&gt;The idea of creating a flexible design is something that isn&apos;t natural to a lot of designers, especially ones that come from print based design, and why would it be? A page is a static medium, it isn&apos;t able to be resized or its view settings changed.. and so it is fundamentally different to a web page. In fact calling it a page, at least in layout terms, is very wrong. This is why when dealing with CSS you refer to anything that will show up on a regular PC/Mac as &quot;screen&quot; - that&apos;s its media, the screen.. not the page. &lt;br /&gt;&lt;br /&gt;The most basic example of where designing for a static medium like a page is a disadvantage is when the user views a web page at a higher resolution that the page was designed for. Pages that are not built to be flexible will &apos;break&apos; and the layout will fall apart. Content may even become unreadable. Obviously this is a bad thing.&lt;br /&gt;&lt;br /&gt;There are many other examples of where layouts can break, however we are dealing with text here, and text is one of them. Take the case of someone with poor sight. They will most likley have their default text size set larger in their browser to compensate. Now in a pixel sized layout their text will be the styled size, and be unchangeable if they are using IE. Even if it wasn&apos;t pixel based, if they change the size of the text then suddenly all this text will have to grow and fit in the box you have put it in.&lt;br /&gt;&lt;br /&gt;Now this may not be a problem, but it often is. Say you have text in a box that is set to a fixed width of 300px and height of 200px, it could be a menu box perhaps, or just a little feature box. When the text is resized and won&apos;t fit into that box the box will break, and this could effect your layout depending on how you&apos;ve coded it. It might not be just one box, but the whole layout that breaks.&lt;br /&gt;&lt;br /&gt;Obviously this isn&apos;t what you want to happen to your work. In other words, when designing, avoid using pixels as a measure unless you &lt;em&gt;know for certain&lt;/em&gt; that the measurment won&apos;t be effected should text or window sizes change. There are many times this is the case, you should however know for sure. Remember - a user can overide your styles totally should they want to, so its best to code flexibly in any case.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;display: inline;&quot;&gt;Textual Compatibility&lt;/h3&gt;&lt;br /&gt;So what sizes should you use? Well.. this is where the fun starts. IE, for some reasons known only to itself, used to have serious problems displaying a font at asize lower than 1.0em.. which is the large 16px default. So how do you code flexibly with this in mind? &lt;br /&gt;&lt;br /&gt;Well thankfully all version of IE work if you specify the size of your text in em&apos;s but your BODY tag in a percentage. With this you are effectivly saying that a font is a certain em size, but IE thinks you are not. Don&apos;t ask me what is going on inside IE, but it can&apos;t be pretty.&lt;br /&gt;&lt;br /&gt;So what sizes to use? Well for your content I would suggest starting that as 1em, that way everything is relative to the content size.. and you know how that will behave in your page. For the BODY tag you have to use a %.. now for reasons that basically come down to cross-compatibilty, and that they work out as equivilent to standard font sizes I recomend the following:&lt;br /&gt;&lt;br /&gt;55% is equiv to 9px&lt;br /&gt;60% is equiv to 10px&lt;br /&gt;69%  is equiv to 11px&lt;br /&gt;76%  is equiv to 12px&lt;br /&gt;&lt;br /&gt;These are the most common sizes you will use, you shouldn&apos;t use anything smaller than 9px equiv, because that is about as small as a font can go and maintain legibility. Remember that this is accurate at the default font size, which most ppl haven&apos;t changed. Also remember that this is for your base size, not for anything else, that is handled with em&apos;s.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;display: inline;&quot;&gt;Example Style Sheet&lt;/h3&gt;&lt;br /&gt;The following illustrates how you might set up a style sheet using the above method.&lt;pre&gt;
BODY {
           font-size: 69% ;
           }

#content {
           font-size: 1em ;
            }

.title  {
           font-size 2em;
           }
&lt;/pre&gt;&lt;br /&gt;As you can see, its very simple to implement, and has a real impact on the usability of your website. Hopefully I&apos;ve covered enough in this article so that you can understand not just the method, but the reason for using it. If you have any questions, comments, or just want to discuss this, please comment below.</description>
  <comments>http://digitalwaffle.livejournal.com/3067.html</comments>
  <lj:music>Sigur Rós - Popplagið</lj:music>
  <media:title type="plain">Sigur Rós - Popplagið</media:title>
  <lj:security>public</lj:security>
  <lj:reply-count>4</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/2736.html</guid>
  <pubDate>Tue, 30 Sep 2003 00:59:12 GMT</pubDate>
  <title>Notes and reminders...</title>
  <link>http://digitalwaffle.livejournal.com/2736.html</link>
  <description>No update this week as of yet. &lt;br /&gt;&lt;br /&gt;Real life had gotten in the way of technique and education, so I thought I&apos;d update you an a few things that you might not know about this place, or that I&apos;ve added recently.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;There&apos;s an XML feed of this site.&lt;/strong&gt; Its listed in the links section of this journal, just up on the right side. I know many people like to use syndicated RSS feeds, and it happens to be a nice side effect of using LiveJournal that I get one. Feel free to add it to your news program, or spread it around. A bit of promotion is always nice.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;You can contribute.&lt;/strong&gt; This has always been true, if you fancy promoting a bit of knowledge, or talking about a subject that you feel is relevant, then e-mail me at &lt;a href=&quot;mailto:digitalwaffle@livejournal.com&quot;&gt;digitalwaffle@livejournal.com&lt;/a&gt; with the subject you want to talk about. Quick and painless.&lt;br /&gt;&lt;br /&gt;I may post up a completed article later in the week, but I have two to finish and lots of other work to do, so don&apos;t hold your breath. However I WILL post for sure next monday.&lt;br /&gt;&lt;br /&gt;Till then, keep tuned, same bat-time, same bat-channel.</description>
  <comments>http://digitalwaffle.livejournal.com/2736.html</comments>
  <lj:music>Sigur Rós - Avalon</lj:music>
  <media:title type="plain">Sigur Rós - Avalon</media:title>
  <lj:security>public</lj:security>
  <lj:reply-count>1</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/2496.html</guid>
  <pubDate>Tue, 23 Sep 2003 01:04:05 GMT</pubDate>
  <title>When Is A Quote Not A Quote?</title>
  <link>http://digitalwaffle.livejournal.com/2496.html</link>
  <description>When it’s a prime.&lt;br /&gt;&lt;br /&gt;No that isn’t a very unfunny joke, it’s actually a good description of a problem with typography on the web. Typography has evolved on the printed page over several hundred years, recently much of it has been ignored on the web. &lt;br /&gt;&lt;br /&gt;I’m going to explain how you can use correct typography on the web, and how this will lead to a more readable web page, and readability means a more enjoyable experience for a user.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;What This Article Aims To Do…&lt;/h3&gt;&lt;br /&gt;By the end of this, if I do my job right, you should know more about correct typography in documents, and how to use it in your web pages. Not only that, but you should also have a useful visual reference for all of them.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;…And What It Doesn’t.&lt;/h3&gt;&lt;br /&gt;I’m not trying to write an English essay here, I’m trying to show you practical examples of how typography works. At the end of the day it should make your document more readable, and professional looking, not provide an academically accurate typography essay.&lt;br /&gt;&lt;br /&gt;While some of the fine details may be glossed over, you should get all you need to know to use the characters properly, and how to insert them in html documents.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;So What’s This Prime Thing?&lt;/h3&gt;&lt;br /&gt;What is normally perceived as the double quote (the &amp;#34; character, normally above the number two on a keyboard) is often rendered as a double prime, what you should be using for inches. The apostrophe is also often incorrectly substituted for a single prime&amp;#8212;used for feet&amp;#8212;or a single quote. &lt;br /&gt;&lt;br /&gt;Feet and inches aren’t the only applications for the primes, but they are the most common.&lt;br /&gt;&lt;br /&gt;The two straight lines in this character are quite fine for coding or similar uses (like when used to surround attribute values in HTML), but they are typographically incorrect. This character is actually a single uniform general quotation mark&amp;#8212;quite similar to what is rendered in many fonts as a prime&amp;#8212;called the APL quote.&lt;br /&gt;&lt;br /&gt;HTML does allow correct rendering of both single and double primes, and they do (when correctly rendered) look different to the APL-quote and apostrophe, but I will cover that later.&lt;br /&gt;&lt;br /&gt;This is more a typographical issue than technical though, and whether your text editor uses primes or the APL-quote both are still incorrect for text presentation. You should be using single or double quotes.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;But They Look The Same!&lt;/h3&gt;&lt;br /&gt;Not really, but some applications convert the APL-quote into the correct double quotes, and the apostrophe into single quotes as that is what you usually want. Microsoft Word does this for example. This can create problems of its own though&amp;#8212;like putting in primes for feet and inches, or inserting a correct apostrophe.&lt;br /&gt;&lt;br /&gt;However there is a visual difference. Allow me to illustrate:&lt;br /&gt;&lt;br /&gt;&lt;blockquote style=&quot;font-style: italic;padding: 0px; margin-bottom: 0px; margin-top: 0px; margin-left:75px&quot;&gt;&amp;#34;This is how you are probably used to seeing quotes on the web. Notice the shape of the character at either end. The same character, and straight lines.&amp;#34;&lt;/blockquote&gt;&lt;br /&gt;&lt;blockquote style=&quot;font-style: italic;padding: 0px; margin-bottom: 0px; margin-top: 0px; margin-left:75px&quot;&gt;&amp;#8220;However this text is in double quotes, note the obvious visual difference. Also notice how they are actually two different characters. One is an opening quote and the other is for closing the quote.&amp;#8221;&lt;/blockquote&gt;&lt;br /&gt;Proper quotation marks are more readable, there’s five hundred years of typography to prove that. They make your text flow across the page nicer and they are more pleasing to the eye.&lt;br /&gt;&lt;br /&gt;Not to mention its actually the correct thing to use!&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;But… Who Cares?&lt;/h3&gt;&lt;br /&gt;Well, as it is an integral part of typographical standards, correct layout, and good general presentation… &lt;em&gt;you&lt;/em&gt; should really. &lt;br /&gt;&lt;br /&gt;These conventions make your text look smarter, more legible, more professional. It also makes &lt;em&gt;you&lt;/em&gt; the writer look like you know what you are talking about, as it is a more professional presentation. As another point of note, single quotes should also only ever really be used when quoting &lt;em&gt;within&lt;/em&gt; an existing quote.&lt;br /&gt;&lt;br /&gt;However quotes aren’t the only thing that suffer from being misused or neglected. Hyphens, ellipsis, and numerical symbols are all misunderstood on the web.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;Dash It All.&lt;/h3&gt;&lt;br /&gt;A hyphen isn’t a dash&amp;#8212;and vice-versa&amp;#8212;but it is commonly used in place of the correct dashes on the web.&lt;br /&gt;&lt;br /&gt;The actual character rendered by the hyphen/minus key on your keyboard is called, appropriately, the hyphen-minus. It is a bit of both and totally neither, however it is much more appropriate for a hyphen than a minus, as it lacks the length needed for the minus. Use it for a hyphen, as it looks almost the same, but never for a minus.&lt;br /&gt;&lt;br /&gt;Equally the only correct application for a hyphen is the one used above&amp;#8212;to split a word in the correct place. Examples of such are the words ‘re-read’, ‘vice-versa’, or similar split words.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The Em Dash&lt;/strong&gt;&lt;br /&gt;If you’ve spent anytime looking into &lt;acronym title=&quot;Cascading Style Sheets&quot; style=&quot;border-bottom:1px dashed #000000;&quot;&gt;CSS&lt;/acronym&gt; then you will have probably come across Em’s before. An Em is described as the width of a capital M. In practice that may vary a bit depending on the font, so it is more standard for the Em to be the same width as the number of points it is being displayed as&amp;#8212;so it is 12 points wide when displayed at 12pt.&lt;br /&gt;&lt;br /&gt;Can you guess how wide an Em dash is? Thought you might be able to.&lt;br /&gt;&lt;br /&gt;Its uses are pretty well defined. It can be used instead of a colon or semi-colon to link clauses, or as a substitute for unknown date ranges (like 1980&amp;#8212;, for someone’s birth date where the death is unknown or 19&amp;#8212; for an incomplete date). Also two adjacent Em dashes (a 2-em dash) are used to indicate missing letters in a word. For example, censoring letters in swearwords.&lt;br /&gt;&lt;br /&gt;The most common uses of an Em dash however are to show a break in thought, or a parenthetical statement that is more significant than regular brackets would indicate. You can see the em dash at work above, parenthenising the ‘and vice-versa’ in the first paragraph.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The En Dash&lt;/strong&gt;&lt;br /&gt;The En is the half the size of an Em (in theory the width of a N). Some people like to use an En dash surrounded by spaces instead of an Em dash, which is valid, but there is little point in using it that way.&lt;br /&gt;&lt;br /&gt;Its most common use is to substitute for the word &amp;#8220;to&amp;#8221;, or to indicate a range of almost any sort (like the London&amp;#8211;Glasgow railway line, or 1&amp;#8211;100).&lt;br /&gt;&lt;br /&gt;Some applications of it might be to show sports scores, dates, document pages, or just for correct range display. Certainly you should use it in any numbered range.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;The Ellipsis.&lt;/h3&gt;&lt;br /&gt;You know when you see those three periods together (like so...)  that there is actually a proper character for that? Well there is, its called an Ellipsis.&lt;br /&gt;&lt;br /&gt;The ellipsis should be used to indicate missing text in a quotation, or that a quotation trails off. Like so:&lt;br /&gt;&lt;br /&gt;&lt;blockquote style=&quot;font-style: italic;padding: 0px; margin-bottom: 0px; margin-top: 0px; margin-left:75px&quot;&gt;&amp;#8220;Two households, both alike in dignity, &lt;br /&gt;In fair Verona, where we lay our scene, &lt;br /&gt;From ancient grudge break to new mutiny, &lt;br /&gt;Where civil blood makes civil hands unclean&amp;#8230&amp;#8221;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Note that it does actually looks subtly different to three periods. There are some rules with the ellipsis, but it is enough to know that if you are cutting out text from a quote, or trailing off then you should use it.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;Math Symbols.&lt;/h3&gt;&lt;br /&gt;There is an annoying trend for, even in professional publications, using an x or * for multiplication, a slash for division, and a hyphen for subtraction. This convention comes from the coding world&amp;#8212;and is fine to use when you are dealing with code or similar works&amp;#8212;but shouldn’t be used in general practice.&lt;br /&gt;&lt;br /&gt;See the following comparison:&lt;br /&gt;&lt;br /&gt;3x10-6=48/2&lt;br /&gt;&lt;br /&gt;compared with:&lt;br /&gt;&lt;br /&gt;3&amp;#215;10&amp;#8722;6=48&amp;#247;2&lt;br /&gt;&lt;br /&gt;While the slash might be useful in certain cases, for fractions or similar displays, the multiplication and minus symbols are a lot clearer in the latter case. It was for this reason I recommended against using a hyphen for the minus symbol earlier.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;Other Symbols.&lt;/h3&gt;&lt;br /&gt;Not a day goes past without seeing someone substitute (TM) for &amp;#8482; and (C) for &amp;#169;, not to mention (R) for &amp;#174;. Why this continues I don’t know, not only does it look clumsy, it also can be dangerous to the person that uses them.&lt;br /&gt;&lt;br /&gt;None of the above substitutions have ever been given legal force or merit so, in some countries, there could be potentially damaging legal problems for someone who used the above substitutions.&lt;br /&gt;&lt;br /&gt;However the characters are east to reproduce in HTML, so there should never be this problem.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;Ok Genius, How Do I Get These Things In My Web Page?&lt;/h3&gt;&lt;br /&gt;Good Question. There isn’t much point knowing about these things unless you have a practical way of using them.&lt;br /&gt;&lt;br /&gt;The answer is pretty simple too. You use decimal entity codes.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;I Use What?&lt;/h3&gt;&lt;br /&gt;Decimal entity codes.&lt;br /&gt;&lt;br /&gt;Entity codes come in three flavours&amp;#8212;named, decimal, and hexadecimal. All of them start with the &amp; character. The named ones used a &amp; followed by a name, the decimal use &amp;# followed by a number, and the hexadecimal use &amp;#x followed by the hex value of the character. All of them end in a semi-colon.&lt;br /&gt;&lt;br /&gt;For example to produce the &amp;lt; character you could use &amp;#38;lt; &amp;#38;#60; or &amp;#38;#x3C;. Whichever you use is up to you, however there are browser issues to consider.&lt;br /&gt;&lt;br /&gt;Most browsers don’t fully support named entitles&amp;#8212;or only support a small commonly used set&amp;#8212;and support for hexadecimal ones is even worse. However all browsers seem to support decimal notation. &lt;br /&gt;&lt;br /&gt;If your text editor supports UTF-8 encoding, and your document is set up to use it (it’s the default for XHTML and XML documents) then you don’t have to worry about inserting codes as the characters will display normally. However there are the same browser issues to consider here, not to mention that many text editors don’t support UTF-8, sadly.&lt;br /&gt;&lt;br /&gt;If you don’t know what UTF-8 is, or are unsure if your document or text editor supports it, I would recommend using decimal notation. I would recommend using decimal codes as good general practice anyhow, unless you know a named entity is supported (like &amp;#38nbsp; the non-breaking space is, or the above less-than symbol).&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;HTML Code Reference.&lt;/h3&gt;&lt;br /&gt;Please note, these are the correct codes for you to use. Far, far too many books and articles online quote the wrong codes. All the ones below are verified and work correctly. Note that the named entities are case sensitive, and that the APL-Quote is provided for reference.&lt;br /&gt;&lt;br /&gt;&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;1&quot; width=&quot;450&quot;&gt;&lt;tr style=&quot;font: bold;&quot;&gt;&lt;td width=&quot;120&quot;&gt;Character Name&lt;/td&gt;&lt;td width=&quot;75&quot;&gt;Character&lt;/td&gt;&lt;td&gt;Named&lt;/td&gt;&lt;td&gt;Decimal&lt;/td&gt;&lt;td&gt;Hex&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;APL Quote&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;quot;&lt;/td&gt;&lt;td&gt;&amp;#38;quot;&lt;td&gt;&amp;#38;#34;&lt;td&gt;&amp;#38;#x22;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Double Quote (left)	&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#8220;&lt;/td&gt;&lt;td&gt;&amp;#38;ldquo;&lt;/td&gt;&lt;td&gt;&amp;#38;#8220;&lt;/td&gt;&lt;td&gt;&amp;#38;#x201C;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Double Quote (right)&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#8221;&lt;/td&gt;&lt;td&gt;&amp;#38;rdquo;&lt;/td&gt;&lt;td&gt;&amp;#38;#8221;&lt;/td&gt;&lt;/td&gt;&lt;td&gt;&amp;#38;#x201D;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Single Quote (left)&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#8216;&lt;/td&gt;&lt;td&gt;&amp;#38;lsquo;&lt;/td&gt;&lt;td&gt;&amp;#38;#8216;&lt;/td&gt;&lt;td&gt;&amp;#38;#x2018;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Single Quote (right)&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#8217;&lt;/td&gt;&lt;td&gt;&amp;#38;rsquo;&lt;/td&gt;&lt;td&gt;&amp;#38;#8217;&lt;/td&gt;&lt;td&gt;&amp;#38;#x2019;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Prime&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#8242;&lt;/td&gt;&lt;td&gt;&amp;#38;prime;&lt;/td&gt;&lt;td&gt;&amp;#38;#8242;&lt;/td&gt;&lt;td&gt;&amp;#38;#x2032;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Double Prime&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#8243;&lt;/td&gt;&lt;td&gt;&amp;#38;Prime;&lt;/td&gt;&lt;td&gt;&amp;#38;#8243;&lt;/td&gt;&lt;td&gt;&amp;#38;#x2033;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Em Dash&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#8212;&lt;/td&gt;&lt;td&gt;&amp;#38;mdash;&lt;/td&gt;&lt;td&gt;&amp;#38;#8212;&lt;/td&gt;&lt;td&gt;&amp;#38;#x2013;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;En Dash&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#8211;&lt;/td&gt;&lt;td&gt;&amp;#38;ndash;&lt;/td&gt;&lt;td&gt;&amp;#38;#8211;&lt;/td&gt;&lt;td&gt;&amp;#38;#x2013;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Minus&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#8722;&lt;/td&gt;&lt;td&gt;&amp;#38;minus;&lt;/td&gt;&lt;td&gt;&amp;#38;#8722;&lt;/td&gt;&lt;td&gt;&amp;#38;#x2212;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Multiplication Symbol&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#215;&lt;/td&gt;&lt;td&gt;&amp;#38;times;&lt;/td&gt;&lt;td&gt;&amp;#38;#215;&lt;/td&gt;&lt;td&gt;&amp;#38;#xD7;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Division Symbol&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#247;&lt;/td&gt;&lt;td&gt;&amp;#38;divide;&lt;/td&gt;&lt;td&gt;&amp;#38;#247;&lt;/td&gt;&lt;td&gt;&amp;#38;#xF7;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Ellipsis&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#8230;&lt;/td&gt;&lt;td&gt;&amp;#38;hellip;&lt;/td&gt;&lt;td&gt;&amp;#38;#8230;&lt;/td&gt;&lt;td&gt;&amp;#38;#x2026;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Copyright Symbol&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;copy;&lt;/td&gt;&lt;td&gt;&amp;#38;copy;&lt;/td&gt;&lt;td&gt;&amp;#38;#169;&lt;/td&gt;&lt;td&gt;&amp;#38;#xA9;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Trademark&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#8482;&lt;/td&gt;&lt;td&gt;&amp;#38;trade;&lt;/td&gt;&lt;td&gt;&amp;#38;#8482;&lt;/td&gt;&lt;td&gt;&amp;#38;#x2122;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Registered Trademark&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;#174;&lt;/td&gt;&lt;td&gt;&amp;#38;reg;&lt;/td&gt;&lt;td&gt;&amp;#38;#174;&lt;/td&gt;&lt;td&gt;&amp;#38;#xAE;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;Hopefully these codes should make using the correct typography easier in your documents.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;Good News For DreamWeaver Users.&lt;/h3&gt;&lt;br /&gt;Yes oh Macromedia converts, if you have DreamWeaver MX then its symbol entities are correct, and it will even convert between the APL-quote and the double quotes automatically if you are in design view.&lt;br /&gt;&lt;br /&gt;However if you use DreamWeaver 4 or below please be aware that it inserts &lt;em&gt;incorrect&lt;/em&gt; entities, and also contains some other bad code (like broken or invalid DocTypes for example). Time to get that upgrade perhaps?&lt;br /&gt;&lt;br /&gt;At least they got it right in the end (mostly).&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px; display: inline;&quot;&gt;At The End Of The Day.&lt;/h3&gt;&lt;br /&gt;Hopefully the advice and instruction I’ve given here has informed you about how to use correct typography in your web pages. I don’t pretend I use all of it all the time, but knowing that it is there is they key to being able to construct a professional looking, and reading, web site.&lt;br /&gt;&lt;br /&gt;Armed with this knowledge you should create more readable and pleasant content for your users. Also your pages should make the transition to print much easier, something that can be also greatly improved using style sheets.&lt;br /&gt;&lt;br /&gt;However, &lt;em&gt;that&lt;/em&gt; is a topic for another day.</description>
  <comments>http://digitalwaffle.livejournal.com/2496.html</comments>
  <lj:music>Silent Hill 2 - Theme for Laura</lj:music>
  <media:title type="plain">Silent Hill 2 - Theme for Laura</media:title>
  <lj:security>public</lj:security>
  <lj:reply-count>8</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/2224.html</guid>
  <pubDate>Tue, 16 Sep 2003 02:59:45 GMT</pubDate>
  <title>PNG Corrections and Updates</title>
  <link>http://digitalwaffle.livejournal.com/2224.html</link>
  <description>&lt;font color=&quot;#0000ff&quot;&gt;&lt;strong&gt;*UPDATE 2/2/2004&lt;/strong&gt; - After the release of a new version of PhotoShop, VIMAS Web Image Guru, and Ken&apos;s PNGOut (see below) I decided to check if the improvments effected the final sizes at all see &lt;a href=&quot;http://digitalwaffle.livejournal.com/2004/02/02/&quot;&gt;&lt;strong&gt;this entry I made&lt;/strong&gt;&lt;/a&gt; for more details.&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.advsys.net/ken/&quot;&gt;Ken Silverman&lt;/a&gt; corrected me in reference to his PNGOut utility that I used in &lt;a href=&quot;http://digitalwaffle.livejournal.com/2003/09/15/&quot;&gt;my recent PNG article.&lt;/a&gt; I had stated that PNGOut was a - &lt;em&gt;&quot;Quite popular implementation of the Libpng code library...&quot;&lt;/em&gt; and I was wholly incorrect as it turns out. As Ken himself puts it:&lt;br /&gt;&lt;br /&gt;&lt;blockquote style=&quot;margin: 0px 50px;&quot;&gt;&lt;em&gt;&quot;I have never used libpng or zlib. I wrote my own library from scratch based on public documentation of the format. It was a lot of extra work on my part, but I think it was worth it. This is why PNGOUT behaves differently than most other PNG applications (in size, speed, etc...)&quot;&lt;/em&gt;&lt;/blockquote&gt;&lt;br /&gt;Mea culpa, mea culpa. &lt;br /&gt;&lt;br /&gt;Or to take a line from The Gospel Of Buffy - My bad.&lt;br /&gt;&lt;br /&gt;I had been reading so much about Libpng I guess my mind ran off with me, whoops. I&apos;m glad he corrected me, as I wouldn&apos;t want his hard work to be attributed to someone else, and I think the results show that it was indeed worth it.&lt;br /&gt;&lt;br /&gt;However an interesting side effect of this was that Ken was moved to action to play with his own utility. He found something very interesting, and an equally interesting solution:&lt;br /&gt; &lt;br /&gt;&lt;blockquote style=&quot;margin: 0px 50px;&quot;&gt;&lt;em&gt;&quot;Using my current version of PNGOUT, I was not able to compress unionjack that small! So I did some research. PNG Gauntlet includes an old version of PNGOUT. I&apos;ve made some changes to PNGOUT since then.&lt;/em&gt; [...] &lt;em&gt;I learned that the thing that made the biggest difference was the palette order. In the version you used, PNGOUT preserved the palette order if the input was a PNG file using a palette. My current version (now old) re-generated the palette (changing the order of palette entries) no matter what. It turns out unionjack.png was one of those files that compressed better with the original palette order - about a 100 bytes better.&lt;br /&gt;&lt;br /&gt;The point is, your sample inspired me to make some changes :) Now, PNGOUT works like this: If you put /c3 on the command line, it will generate a new palette. If you omit /c3, it will preserve the palette order. The difference now is that you can choose what you want. As a bonus, PNGOUT now defaults to paletted files when the input is a .GIF file.&quot;&lt;/em&gt;&lt;/blockquote&gt;&lt;br /&gt;Well... wow. I&apos;m glad that something I wrote will have a positive effect on PNGOut and PNG users in general. I could not be more pleased right now.&lt;br /&gt;&lt;br /&gt;Ken also sent me a new Union Jack image that he&apos;d managed to compress using his new version down to 2.95kb (3030 bytes), that version is now the one on display in the article. Forever getting smaller, I wonder if we can get it down to below 3000 bytes, anyone want to take the challenge?&lt;br /&gt;&lt;br /&gt;You can get the &lt;em&gt;brand new&lt;/em&gt; PNGOut &lt;a href=&quot;http://www.advsys.net/ken/utils.htm#pngout&quot;&gt;here&lt;/a&gt; at Ken&apos;s website.</description>
  <comments>http://digitalwaffle.livejournal.com/2224.html</comments>
  <lj:music>Snake River Conspiracy - Oh Well</lj:music>
  <media:title type="plain">Snake River Conspiracy - Oh Well</media:title>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/1811.html</guid>
  <pubDate>Mon, 15 Sep 2003 15:30:22 GMT</pubDate>
  <title>PING!</title>
  <link>http://digitalwaffle.livejournal.com/1811.html</link>
  <description>&lt;font color=&quot;#0000ff&quot;&gt;&lt;strong&gt;*UPDATE 17/9/2003&lt;/strong&gt; - Corrected some minor errors. Also this article has helped contributed to the development of PNGOut see &lt;a href=&quot;http://digitalwaffle.livejournal.com/2003/09/16/&quot;&gt;&lt;strong&gt;this entry I made&lt;/strong&gt;&lt;/a&gt; for more details.&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;One of the sad things about web standards is that they aren’t. Various browsers implement the standards in different ways, or in many cases, fail to implement them properly. The most notable failure is Internet Explorer, even the new version, but Gecko based browsers (Mozilla, Netscape, etc) still have serious issues, not to mention other browsers.&lt;br /&gt;&lt;br /&gt;One weird browser inconsistency is the implementation of PNG files (pronounced ‘ping’). PNG is a format that has been around for a long time, and I am a great fan of, but still isn’t used as much as it should be. If you don’t know about it – you should do.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;PNG’s Are Better Than GIFs.&lt;/h4&gt;There, I said it. It’s a statement based on fact. PNG supersedes GIF in almost every way, the only exception is animation, which PNG doesn’t support (though its companion format MNG does). There’s no quibbling about this, its cold hard fact. I’m going to illustrate this with some tests I’ve performed, but first a little history for those that may not know much about PNG.&lt;br /&gt;&lt;br /&gt;PNG is a replacement for GIF (pronounced with a soft g like in gerbil – ‘jif’, not ‘guh-if’ – so says the creator of the format.) which you all should have heard of. It was designed because Gif was getting very old (created in 1987) and was really out of date in ’95 when the PNG specification was drawn up. Another factor was that UniSys decided to start calling in licensing charges for the LZW compression that Gif uses, it hadn’t before… and so a free format was born.&lt;br /&gt;&lt;br /&gt;Implementation of this format was slow however. Currently all browsers support the display of PNG files, but not all of the features of the format.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;What Are PNG’s Features?&lt;/h4&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Lossless Compression&lt;/strong&gt; – Unlike JPEG which throw away data and guess how an image is composed, PNG compression never throws away information. This avoids the artefacts and blurring you often find in JPEGs.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Multiple Bit Depths&lt;/strong&gt; – While GIF is commonly only supported in 8bit palettes (256 colours) and JPEG is only 24bit (16.7 million). PNG supports any bit depth to the power of two – from 1bit (2 colours) to 48bit (too many to even count). Though the most common formats are 8bit and 24bit. However it &lt;em&gt;must be stressed&lt;/em&gt; PNGs at depths over 8bit were designed for perfect lossless archival quality with good compression, and &lt;u&gt;are not&lt;/u&gt; designed to compete with JPEG for 24bit web use. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Gamma Correction&lt;/strong&gt; – Gamma correction, in applications that support it, ensures images appear the same across all platforms. Even across Windows and Macintosh there is a large difference in display. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Alpha Information&lt;/strong&gt; – PNG supports multiple modes of transparency. Alpha channels for 24bit images, RGBA for palette images (where not only a value for Red Green and Blue is stored, but one for Alpha), and binary (GIF style – either transparent or not) transparency. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Interlacing&lt;/strong&gt; – PNG supports interlacing (progressive display of images while they are loading) like both GIF and JPEG. It works in a different way to GIFs and is considered one of the better interlacing display methods available. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Smaller File Sizes Than GIFs&lt;/strong&gt; – PNGs compression algorithm is better, and produces smaller files than GIFs for 8bit images. At least.. it should, as I will soon demonstrate. &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;But… Why Should I Use It?&lt;/h4&gt;Simply because, as I’ve said before, its better. File sizes are usually significantly smaller, and that means lower bandwidth and shorter download times. For the web these are the primary reasons for any choice of format. It’s that simple – PNGs will save you bandwidth, and hence money, in the long run.&lt;br /&gt;&lt;br /&gt;Much is often made of the lack of browser support for PNGs alpha transparency in some browsers (well.. just IE/Win I think now, IE/Mac does a fine job). This is missing the point – for GIFs are surviving on binary transparency just fine, and everyone still uses them – an outdated format that is over 16 years old!&lt;br /&gt;&lt;br /&gt;While the artistic and design community may &lt;em&gt;want&lt;/em&gt; to have better transparency, we can cope – for now at least – with doing it the way GIF has done. The more support PNG has, the more incentive for developers to support its features, like alpha palettes. The more we use PNG, the less we rely on old outdated GIFS.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;I Thought PNGs Were Larger Than GIFs.&lt;/h4&gt;Not at all! Or at least, they shouldn’t be. This is a myth that is spread mostly because of the &lt;em&gt;appalling&lt;/em&gt; compression in Adobe PhotoShop. Really.. its that bad. PNG leaves some room to manoeuvre with how a program compresses the files, Adobe has obviously not tried to optimise things at all. Things did improve with their ‘Save For Web’ option (basically using the code from ImageReady) but it&apos;s still the worst around.&lt;br /&gt;&lt;br /&gt;However, there are many ways to fix that, even with files that have already been saved.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;The Software&lt;/h4&gt;This is the software I’ll be using to illustrate the benefits of PNG compression. I have separated them into freeware utilities, and commercial applications. The main difference being that the freeware software needs a PNG file to work with, while using the commercial software I can work from any file.&lt;br /&gt;&lt;br /&gt;The following are commercial applications:&lt;br /&gt;&lt;a href=&quot;http://www.adobe.com/products/photoshop/main.html&quot;&gt;&lt;strong&gt;Adobe Photoshop&lt;/strong&gt;&lt;/a&gt; – The standard for graphics software.&lt;br /&gt;&lt;a href=&quot;http://www.vimas.com/ve_guru.htm&quot;&gt;&lt;strong&gt;Web Image Guru&lt;/strong&gt;&lt;/a&gt; – A suite of utilities, including a plug-in for Adobe PhotoShop that mimics the Save For Web features. Apparently has excellent compression.&lt;br /&gt;&lt;br /&gt;The following are freeware utilities:&lt;br /&gt;&lt;a href=&quot;http://pmt.sourceforge.net/pngcrush/&quot;&gt;&lt;strong&gt;PNGCrush&lt;/strong&gt;&lt;/a&gt; – the original, and now standard, for PNG compressing utilities.&lt;br /&gt;&lt;a href=&quot;http://www.cs.toronto.edu/~cosmin/pngtech/optipng/&quot;&gt;&lt;strong&gt;OptiPNG&lt;/strong&gt;&lt;/a&gt; – Similar application to PNGCrush, claims it has “a wider automatic search space (which may lead to a better compression factor), and it runs faster.” &lt;br /&gt;&lt;a href=&quot;http://advsys.net/ken/&quot;&gt;&lt;strong&gt;PNGOut&lt;/strong&gt;&lt;/a&gt; – A self coded utility, written by Ken Silverman (of 3D Realms fame). Claims to beat PNGCrush significantly.&lt;br /&gt;&lt;a href=&quot;http://entropymine.com/jason/pngrewrite/&quot;&gt;&lt;strong&gt;PNGRewrite&lt;/strong&gt;&lt;/a&gt; – Not really a compression program. PNGRewrite aims to optimise the palette of the file (bit depth, palette order, transparency info.. etc) not optimise the compression, and hence reduce the file size. In theory this should be done in any application, but most don’t perform well.&lt;br /&gt;&lt;br /&gt;The freeware apps are all command line apps, but for PNGOut and PNGRewrite I’ll be using a free windows shell for them called &lt;a href=&quot;http://www.numbera.com/software/pnggauntlet.aspx&quot;&gt;&lt;strong&gt;PNG Gauntlet&lt;/strong&gt;&lt;/a&gt;. All this does is provide a friendly windows interface for the two programs. To run PNG Gauntlet you need to have &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyId=262D25E3-F589-4842-8157-034D1E7CF3A3&amp;amp;displaylang=en&quot;&gt;&lt;strong&gt;Microsoft .NET 1.1&lt;/strong&gt;&lt;/a&gt; installed, but many people do now anyhow.&lt;br /&gt;&lt;br /&gt;This is the image I’m using –&lt;br /&gt;&lt;img src=&quot;http://www.vala-nex.com/LJ/waffle/unionjack.png&quot; alt=&quot;The Union Jack, the British Flag.&quot;&gt;&lt;br /&gt;&lt;br /&gt;A simple image of the &lt;a href=&quot;http://flagspot.net/flags/gb.html&quot;&gt;Union Jack&lt;/a&gt;, clean colour space, with some anti-aliasing between the colours. it’s the kind of image that is ideal for 8bit palettes, and the sort of thing that might realistically be on a web page. Moreover – it is the exact kind of image someone might save to GIF. Perfect for what I’ll be testing.&lt;br /&gt;&lt;br /&gt;Both the PNGs and the GIF are saved using Adaptive palettes. While Perceptual can often be better with complex images, Adaptive performs best at lower bit depths and simpler images.&lt;br /&gt;&lt;br /&gt;The GIF of this image is 4.62 KB (4,734 bytes), around what you would expect.&lt;br /&gt;&lt;br /&gt;I created this image in PhotoShop initially, so it made sense to test out Web Image Guru (WG) and PS first. Equally the other utilities only work on existing PNG files.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;PS Test&lt;/strong&gt; - 5.73 KB (5,870 bytes)&lt;br /&gt;&lt;strong&gt;WG Test&lt;/strong&gt; - 3.16 KB (3,236 bytes)&lt;br /&gt;&lt;br /&gt;Woah, that’s a huge difference! Surely that can’t be all down to compression?&lt;br /&gt;&lt;br /&gt;No, its not. After a look at what was going on I noticed that PS was including a full 256 palette entries, while WG said there were only 99 colours needed. Indeed a per pixel comparison confirmed this.&lt;br /&gt;&lt;br /&gt;Lowering the number of colours in PS produced the same image, but with a lower file size. Interestingly I found that saving the image to BMP (24bit), opening the file, and then saving for web made PS agree that there were indeed only 99 colours.&lt;br /&gt;&lt;br /&gt;Obviously there is something in working from its own format that causes PS to act strangely when saving to web. Here’s a comparison with the new file &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;PS Test 2&lt;/strong&gt; - 4.12 KB (4,225 bytes)&lt;br /&gt;&lt;strong&gt;WG Test&lt;/strong&gt; - 3.16 KB (3,236 bytes)&lt;br /&gt;&lt;br /&gt;1.5kb removed, just by doing something that PS should be doing itself. From here I decided to compare the optimisation utilities on both the PS tests and the WG test as they are produced from the same base file. &lt;br /&gt;&lt;em&gt;N.B. – Web Guru can optimise files by itself, not using the PS plug-in, and managed to optimise the original PS test. However as it only managed to optimise it down to 130 colours the image would appear to not contain the same information. The new files are exactly the same in contents, and so a fair comparison can be achieved. It is rather worrying that the original PS saved image appears to introduce colour information into the image.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;Final Results.&lt;/h4&gt;In &lt;font color=&quot;#ff0000&quot;&gt;&lt;strong&gt;Red&lt;/strong&gt;&lt;/font&gt; are images that are larger than the GIF,&lt;br /&gt;In &lt;font color=&quot;#008000&quot;&gt;&lt;strong&gt;Green&lt;/strong&gt;&lt;/font&gt; are images that are smaller than the GIF.&lt;br /&gt;In &lt;font color=&quot;#0000ff&quot;&gt;&lt;strong&gt;Blue&lt;/strong&gt;&lt;/font&gt; is the smallest file.&lt;br /&gt;In &lt;font color=&quot;#800080&quot;&gt;&lt;strong&gt;Purple&lt;/strong&gt;&lt;/font&gt; are files of note.&lt;br /&gt;&lt;br /&gt;&lt;table height=&quot;20&quot; width=&quot;527&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tr style=&quot;font-weight: bold;&quot;&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;b&gt;PS Test 1&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;PS Test 2&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Web Guru&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;Original&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;color: red;&quot;&gt;5.73 KB (5,870)&lt;/td&gt;&lt;td style=&quot;color: #008000;&quot;&gt;4.12 KB (4,225)&lt;/td&gt;&lt;td style=&quot;color: #008000;&quot;&gt;3.16 KB (3,236)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;PNGCrush&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;color: red;&quot;&gt;5.09 KB (5,220)&lt;/td&gt;&lt;td style=&quot;color: #008000;&quot;&gt;3.36 KB (3,441)&lt;/td&gt;&lt;td style=&quot;color: #800080;&quot;&gt;3.18 KB (3,257)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;OptiPNG&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;color: red;&quot;&gt;5.07 KB (5,199)&lt;/td&gt;&lt;td style=&quot;color: #008000;&quot;&gt;3.33 KB (3,420)&lt;/td&gt;&lt;td style=&quot;color: #008000;&quot;&gt;[no change]&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;PNGOut&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;color: red;&quot;&gt;4.79 KB (4,908)&lt;/td&gt;&lt;td style=&quot;color: #008000;&quot;&gt;3.10 KB (3,183)&lt;/td&gt;&lt;td style=&quot;color: #0000FF;&quot;&gt;2.97 KB (3,044)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;PNGRewrite&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;color: red;&quot;&gt;5.21 KB (5,340)&lt;/td&gt;&lt;td style=&quot;color: #008000;&quot;&gt;3.49 KB (3,578)&lt;/td&gt;&lt;td style=&quot;color: #800080;&quot;&gt;3.43 KB (3,519)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;PNG Gauntlet&lt;/b&gt;&lt;br&gt;(both PO and PR)&lt;/td&gt;&lt;td valign=&quot;top&quot; style=&quot;color: #800080;&quot;&gt;4.77 KB (4,887)&lt;/td&gt;&lt;td valign=&quot;top&quot; style=&quot;color: #008000;&quot;&gt;3.10 KB (3,183)&lt;/td&gt;&lt;td valign=&quot;top&quot; style=&quot;color: #008000;&quot;&gt;3.03 KB (3,105)&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;font color=&quot;#800080&quot;&gt;&lt;em&gt;&lt;strong&gt;PG test on PS1&lt;/strong&gt;&lt;/em&gt;&lt;/font&gt; – Note that this is the smallest file from the original PS test, but it is still larger than the GIF. Its seems that PhotoShop PNGs saved using the default options are hard, and in this case impossible, to reduce down to a level below GIFs. Probably due to the redundant (or possibly introduced) colour information. This is totally unsatisfactory in such an expensive and supposedly standard application.&lt;br /&gt;&lt;br /&gt;&lt;font color=&quot;#800080&quot;&gt;&lt;em&gt;&lt;strong&gt;PC test on WG&lt;/strong&gt;&lt;/em&gt;&lt;/font&gt; – Note that PNGCrush actually &lt;em&gt;increases&lt;/em&gt; the file size of the image. While it decreased file size in the case of poorly compressed images, it still performed the most poorly overall, however it is the oldest utility on test. &lt;br /&gt;&lt;br /&gt;&lt;font color=&quot;#800080&quot;&gt;&lt;em&gt;&lt;strong&gt;PR test on WG&lt;/strong&gt;&lt;/em&gt;&lt;/font&gt; – PNGRewrite also increases the file size, but in this case by a significant amount! It may be that the original file was already better ordered than PR can achieve, however this is still puzzling. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Best PNG file size&lt;/strong&gt; = 2.97kb (3,044 bytes)&lt;br /&gt;&lt;strong&gt;Total PNG saving over GIF&lt;/strong&gt; = 1.65kb (1,690 bytes) a saving of &lt;strong&gt;35%&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;Ok, its smaller, so what?&lt;/h4&gt;Well, smaller files mean faster loading page, less server space being used, and less bandwidth being used.&lt;br /&gt;&lt;br /&gt;Whether you are hosted with a professional hosting company, or Geocities bandwidth is important to you. Bandwidth costs money, and the more you use the more money you spend. With some hosting services, especially the free ones, your site won’t work if you exceed your monthly quota of bandwidth.&lt;br /&gt;&lt;br /&gt;Lets put this in real terms. Say you have a moderately popular site, about 1000 page views a day, quite achievable really. What would you save in our above example?&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;48.35mb/month&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;That’s for &lt;em&gt;one image!&lt;/em&gt; One! And a small one at that. Think about how many images, GIF images, there are on most web pages. Only 21 similar images would be needed to make that over 1gb of bandwidth savings a month!&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;Suggestions For Everyone.&lt;/h4&gt;Simply put… switch over to using PNG files in your work. It’s better for you, your client, and the future of the web. However, due to Photoshop’s awful support I have some recommendations for saving to PNG.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;em&gt;&lt;strong&gt;In PhotoShop&lt;/strong&gt; - Save As Another Format First.&lt;/em&gt; If you already have saved out as GIF then this isn’t a problem, just open up the files and save them as PNG using Save For Web. This gets rid of the confused colour information side effect that PS shows. &lt;em&gt;&lt;strong&gt;Important&lt;/strong&gt; – when you load the files back in make sure you set the mode to RGB not Indexed or this will again cause problems. This isn’t a problem if you haven’t saved to a palette image format like GIF, I used 24bit Bitmaps for the second PhotoShop test.&lt;/em&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt; &lt;em&gt;Use &lt;strong&gt;&lt;a href=&quot;http://advsys.net/ken/&quot;&gt;PNGOut&lt;/a&gt;&lt;/strong&gt; On Your PNG Files.&lt;/em&gt; Or use &lt;strong&gt;&lt;a href=&quot;http://www.numbera.com/software/pnggauntlet.aspx&quot;&gt;PNG Gauntlet&lt;/a&gt;&lt;/strong&gt; to help you. PNGOut performed excellently on all files, and even compressed the excellent Web Image Guru test image. Simply the best utility I’ve found for PNG compression.&lt;/li&gt;&lt;/ol&gt;As another recommendation I would suggest using the excellent &lt;strong&gt;&lt;a href=&quot;http://www.vimas.com/ve_guru.htm&quot;&gt;Web Image Guru&lt;/a&gt;&lt;/strong&gt;, while PNGOut still managed to compress its PNG files the starting standard was excellent, and in combination with PNGOut it produced the best file size overall. Also, as it is not just a PhotoShop plug-in, you can batch covert whole directories of GIFs - or other image formats - over to PNG or anything else that catches your fancy. At $39 it’s a excellent investment.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;To Finish.&lt;/h4&gt;Well.. that was a bit longer than usual wasn’t it?&lt;br /&gt;&lt;br /&gt;I hope that I’ve successfully proven that PNG is a practical and economical replacement for the creaky old GIF format. I didn’t even cover in much depth its additional features that will eventually help everyone make more attractive web pages, and yet I think it is apparent that it is already the superior format.&lt;br /&gt;&lt;br /&gt;Here’s to seeing more PNGs in web pages, faster loading times, and lower costs. I think we can all look forward to that.&lt;br /&gt;&lt;br /&gt;&lt;font size=&quot;-2&quot;&gt;If you would like to know more about the png format, check out this comprehensive guide at &lt;a href=&quot;http://www.libpng.org/pub/png/&quot;&gt;libpng.org&lt;/a&gt;&lt;/font&gt;</description>
  <comments>http://digitalwaffle.livejournal.com/1811.html</comments>
  <lj:music>Jet -  Are You Gonna Be My Girl</lj:music>
  <media:title type="plain">Jet -  Are You Gonna Be My Girl</media:title>
  <lj:security>public</lj:security>
  <lj:reply-count>1</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/1703.html</guid>
  <pubDate>Mon, 08 Sep 2003 17:11:37 GMT</pubDate>
  <title>Geek vs Nerd</title>
  <link>http://digitalwaffle.livejournal.com/1703.html</link>
  <description>A light-hearted post today.&lt;br /&gt;&lt;br /&gt;I thought I&apos;d explain, as I see it, the difference between a geek and a nerd.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px;&quot;&gt;What Makes A Geek/Nerd?&lt;/h3&gt;&lt;br /&gt;Geek and nerd aren&apos;t specific computer related terms. You can be geeky or nerdy about any subject. Cars for example.. they have plenty of geeks and nerds. How do you say? Well I&apos;ll explain shortly.&lt;br /&gt;&lt;br /&gt;For the most part geeks and nerds tend to be involved in things with a lot of detail. They both exhibit a knowledge of their subject beyond what a lay person may even think is possible. Indeed, that could be the very definition of where the boundaries lie. Good examples of this could be: role-play games, cars, computers (of course), or fitness.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;The Geek&lt;/h4&gt;&lt;br /&gt;A geek is someone that uses their field for productivity or pleasure, and has accumulated - through a desire to enjoy their experience more or become more proficient at a task - an extensive knowledge of a subject. &lt;br /&gt;&lt;br /&gt;Geeks that are involved with machines (cars, computers, stereos, etc) tend to see these things as tools, and by gaining more knowledge about - and hence control over - them they intend to maximise their use of the tool. Be it driving better and for longer, or being able to code an efficient web page without looking at a reference book. The result is the same in terms of difference to a layperson. This type of geek will often know lots about the construction of their area, and can be excited by the prospect of upgrading a small part that may seem insignificant to an outsider, but it impacts (or the geek feels it impacts) the performance of their tasks.&lt;br /&gt;&lt;br /&gt;Geeks tend to be concerned with issues in a broader scope than nerds, and are certainly more focused on issues that affect them (this journal for example - web design, and similar issues) and less with the minutiae of details.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;The Nerd&lt;/h4&gt;&lt;br /&gt;A Nerd is someone that has taken their use of a tool or discipline and raised it so that they no longer value the result of it more than the tool or discipline itself. It is the subject that is their love. A geek might know a lot about computers, but it will be what they need to know. A nerd will learn everything they can about computers, but gain no practical benefit for this. Moreover they will experiment with things that will take a lot of time and have no real benefit to them - just because they are learning about the subject.&lt;br /&gt;&lt;br /&gt;Nerds tend to be even more fanatical about improving in their subject than geeks, but have a more holistic approach. Rather than improving in their area they must improve overall in all areas.&lt;br /&gt;&lt;br /&gt;Nerds are usually the more preachy and anal of the two (though this does depend to some extent on personality - a geek can be an arse too!) and are more prone to nitpicking small irrelevant details and using this as an excuse to junk the rest of the information. This is related to that Nerds are often the hardest group to teach, as their knowledge is sacred to them - and so can never be proved wrong. Sometimes even when presented with overwhelming evidence to the contrary a nerd will still claim that their knowledge is correct.&lt;br /&gt;&lt;br /&gt;Nerds are the more annoying of the two, and the most observed. They are highly critical, and tend to put down people rather than help them (as most geeks will try to do - until they lose patience). Often the distinction is missed between these two groups, as the Nerd is usually heard the most.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;In Summary&lt;/h4&gt;&lt;br /&gt;Without Nerds there would be less pushing of the boundaries, but without Geeks no-one would find these things useful. Remember a geek or a nerd doesn&apos;t actually have to have a certain amount of knowledge, it is an attitude to their subject that creates the geek. &lt;br /&gt;&lt;br /&gt;Geeks and Nerds are closely related, in fact many nerds will start out as geeks - a starter techie if you will. Geek shouldn&apos;t be a negative term, as it merely infers knowledge. Nerd is more negative, mainly due to the unhealthy obsessive nature of the classic Nerd, however the benefit a Nerd can have on a subject should not be overlooked either.&lt;br /&gt;&lt;br /&gt;Viva La Difference!&lt;br /&gt;&lt;br /&gt;&lt;font size=&quot;1&quot;&gt;Of course making your own definition of Geeks and Nerds certainly qualifies you for one of the categories… which one is up to you…&lt;/font&gt;</description>
  <comments>http://digitalwaffle.livejournal.com/1703.html</comments>
  <lj:music>Martina Topley Bird - Need One</lj:music>
  <media:title type="plain">Martina Topley Bird - Need One</media:title>
  <lj:security>public</lj:security>
  <lj:reply-count>5</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/1533.html</guid>
  <pubDate>Wed, 27 Aug 2003 21:42:09 GMT</pubDate>
  <link>http://digitalwaffle.livejournal.com/1533.html</link>
  <description>Doug Bowman of StopDesign.com recently posted &lt;a href=&quot;http://www.stopdesign.com/&quot;&gt;a counter point&lt;/a&gt; to Jason Kottke&apos;s post on &lt;a href=&quot;http://www.kottke.org/03/08/030826standards_do.html&quot;&gt;standards complience and semantics&lt;/a&gt; at Kottke.org in which he argues againsts Jasons assertion that:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&quot;&lt;em&gt;Coding web documents in valid XHTML doesn’t make them semantically useful nor does coding semantically correct documents mean the documents are standards-compliant&lt;/em&gt;&quot;&lt;/blockquote&gt; Dougie disagrees and thinks that it is a designers &apos;natural tendancy&apos; to code meaniful markup if they are standards complient. Seemingly the only reason for this is his assumption that people will want to make code pretty. He goes so far to say:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&quot;&lt;em&gt;A page full of nothing more than divs, spans, and br’s might be perfectly compliant in its use of standards. But generic markup like this will appear anemic in comparison to well-structured documents.&lt;/em&gt;&quot;&lt;/blockquote&gt; This assumes a couple of big glaring things as far as I can see..&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Most webpages are coded by designers.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Most webpages coders care about the presentation of their code.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Most webpages are created by people that aren&apos;t lazy.&lt;/li&gt;&lt;/ol&gt;I think these are not only Dougs assumptions, but an assumption by a lot of people in the &apos;web design community&apos;. Its a set of assumptions that have pretty much created the situation that so many of them are trying to change today - something that Doug actaully seems to understand in the last lines of his post where he says&lt;br /&gt;&lt;blockquote&gt;&quot;&lt;em&gt;&quot;one without the other won’t get us much further than where we’ve been in the not-so-distant past.&quot;&lt;/em&gt;&quot;&lt;/blockquote&gt;This is very true.&lt;br /&gt;&lt;br /&gt;And how Doug can make that statement after a whole post of trying to persuade us that they are already skipping down the street together - if not actually hand in hand - I don&apos;t know.&lt;br /&gt;&lt;br /&gt;You see I actually agree with both of them. I agree with Jasons&apos; conclusions, but I also agree with Doug that most people who code if they do any research into standards will start to code &lt;em&gt;meaningfully&lt;/em&gt; (semantically better).&lt;br /&gt;&lt;br /&gt;The trouble is I have zero faith that most people will bother to learn about the code. Think about it, how many people that you know have any care what their code is &lt;em&gt;as long as it looks ok when its displayed?&lt;/em&gt; Moreover, how many designers really want to get down and dirty with the code as long as they can use a nifty little program to create their design that doesn&apos;t involve them actually messing with the code?&lt;br /&gt;&lt;br /&gt;These people probably make up most of the actual &apos;web designers&apos; that are out there, sure they may not code the big sites, or produce the best content, but &lt;strong&gt;by volume&lt;/strong&gt; they are the biggest producers. I have no figures to produce, but think about it for a second... look around the web. These are the people that need to be sold on standards and semantics. Why? Because if they don&apos;t.. then its going to be another 5 years of spacer gifs and tables filled with non-breaking space codes.&lt;br /&gt;&lt;br /&gt;The web exploded because the average person could look at html and pick it up and code it, I know thats what I did. Standards complience should make it easier to understand the content and meaning of the code, and style sheets will make layout more obvious. However if the average joe doesn&apos;t &lt;em&gt;know&lt;/em&gt; this then where will the next generation of web designers and coders come from?</description>
  <comments>http://digitalwaffle.livejournal.com/1533.html</comments>
  <lj:security>public</lj:security>
  <lj:reply-count>3</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/1054.html</guid>
  <pubDate>Fri, 22 Aug 2003 18:35:58 GMT</pubDate>
  <title>The Basics Pt 3</title>
  <link>http://digitalwaffle.livejournal.com/1054.html</link>
  <description>&lt;h3 style=&quot;margin: 0px; padding: 0px;&quot;&gt;Why All The Fuss Over Web Standards?&lt;/h3&gt;&lt;br /&gt;Mainly this is to do with the goal of the strict standards, which is &lt;strong&gt;to separate style from content&lt;/strong&gt; in web pages.&lt;br /&gt;&lt;br /&gt;This means that the code on a web page should be structural, any tags should be &lt;em&gt;meaningful&lt;/em&gt; not concerned with the presentation of the page. Presentation should be handled by &lt;acronym title=&quot;Cascading Style Sheets&quot; style=&quot;border-bottom:1px dashed #000000;&quot;&gt;CSS&lt;/acronym&gt;. More on CSS later.&lt;br /&gt;&lt;br /&gt;An example of using meaningful code can be illustrated using the bold and italic tags &amp;lt;b&amp;gt; and &amp;lt;i&amp;gt;. These tags have no meaning by themselves. When we read bold or italic text we attach meaning to it however - bold is interpreted as words that are being &lt;strong&gt;stressed&lt;/strong&gt;, and italic is text that is being &lt;em&gt;emphasised&lt;/em&gt;. It is for this reason that browsers also support the tags &amp;lt;strong&amp;gt; and &amp;lt;em&amp;gt;. These two tags give meaning to the text that cannot be conveyed by style alone. &lt;br /&gt;&lt;br /&gt;If you need to change a section of text to bold for stylistic purposes then you shouldn&apos;t be using &amp;lt;b&amp;gt; or even &amp;lt;strong&amp;gt; in your code - you should be using style sheets to do that. That is what they are for.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;Why Is Meaningful, Style Separated Code Important?&lt;/h4&gt;&lt;br /&gt;For two reasons: &lt;strong&gt;Portability&lt;/strong&gt; and &lt;strong&gt;Accessibility&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;Portability means that your code will be understandable not just across different browsers like IE and Mozilla, but across different platforms. This includes computer OS&apos;s like Windows, MacOS, and Linux, but more importantly across platforms like mobile phones, PDA&apos;s, and other equipment that can access the internet. While all of these may not be supported straight away these methods will allow your code to be transferred into the right format with the minimum of effort. Who can say that about a page with miles of nested tables?&lt;br /&gt;&lt;br /&gt;Accessibility means that users who may not be able to use the net like the majority of people can access your site. They may use screen readers if they are partially sighted or blind, or have special browsers to make things more convenient. Either way the content of your site will still be viewable and &lt;em&gt;meaningful&lt;/em&gt; to them. Not only is this allowing more potential viewers of your site, it may in fact be a &lt;a href=&quot;http://www.w3.org/WAI/Policy/&quot;&gt;legal requirement&lt;/a&gt; now for many businesses.&lt;br /&gt;&lt;br /&gt;Basically it is maximising the availability of your content. This means that more people can see your work. Of course there are other more practical benefits to using style separated code as well, I&apos;ll cover these as I go on.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;The Concept of Tableless Design&lt;/h4&gt;&lt;br /&gt;Tables are another example of where structural code has been misused for design purposes. In the past it was common to work out a way where you could split your design into rows and columns so you could display it in a table. It is such a common way of thinking now that many web designers have trouble not thinking in these terms.&lt;br /&gt;&lt;br /&gt;However tables are designed to display tabular information, not to act as a stylistic tool. This is where the idea of tableless design comes in - using tables only to display tabular information. If your content requires a table, by all means put a table in there. What you should not be doing is using them to control the layout of your page. This just leads to ugly, nested tables, lots and lots of code and, above all else - a website whose&apos; content is meaningless.&lt;br /&gt;&lt;br /&gt;Sometimes it can be useful to use tables to define the basic structure of your page. In this case it is a semi-valid use - it is a structural element after all, and this method may help display your page in some older browsers that don&apos;t support style sheets. However I would not suggest it, mostly because there is no need to do so, and it can lead to more problems than it solves. It is a good solution for people just getting into style sheets and learning how to work with them though.&lt;br /&gt;&lt;br /&gt;Rather than thinking of your page as a set of rows and columns, think of it as if it is split into any number of boxes. In each box is an element of your page. These boxes don&apos;t have to be aligned with each other, or even be next to each other - they could overlap for example. This is the concept of tableless design.&lt;br /&gt;&lt;br /&gt;Each box would be an item, be it an image, a block of information enclosed in a &amp;lt;div&amp;gt; tag, some text in a &amp;lt;span&amp;gt; tag, or anything else on a page. Each of these elements would be controlled and positioned using CSS, allowing much greater flexibility in design, while keeping your actual code clean and simple.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px;&quot;&gt;How Does This All Benefit Me?&lt;/h3&gt;&lt;br /&gt;Coming down to brass tacks, most viewers don&apos;t care how their page is coded, just that it displays properly. So what does all this mean in a practical sense? As Jerry Maguire might say - show me the money.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Smaller Pages&lt;/strong&gt; - Because you aren&apos;t using lots of nested based markup that wasn&apos;t designed to be used for presentation or tag specific attributes you&apos;ll find that the pages you author are smaller in file size. Meaning that you use your web space better, and have more room for more content.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Faster Loading, Lower Bandwidth&lt;/strong&gt; - because your page size is smaller and the style sheet only needs to be loaded once you&apos;ll find your pages loading faster. Being smaller also means you&apos;ll use less bandwidth - which saves you, or your client, money.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Less Work&lt;/strong&gt; - That’s right, less work for you. Coding and working with table based layouts can be time consuming, and boring. You end up repeating large blocks of your code needlessly - especially when you are using the same or similar layout in every page (as almost all sites do). If you separate the style from the content all you need to do to design &lt;em&gt;your entire site&lt;/em&gt; is to work with one file.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Easy To Redesign&lt;/strong&gt; - have you ever tried to redesign a nested table layout that you coded a year or two before? If you have then you&apos;ll know that it is a tiresome and will sapping task - and that’s when &lt;em&gt;you&lt;/em&gt; coded it, let alone some other developer.  When the content is separated however all you have to is change the style sheet and you can have a totally different look in minutes.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Get The Design You Want&lt;/strong&gt; - Often many designers have had to compromise their design because certain things just weren&apos;t practical. With style sheets designers have full control over their design and, while not as flexible as a professional design package, much more can be done - like pixel based layout for example.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Access To More Viewers&lt;/strong&gt; - If you code and design intelligently then more people will be able to see your site than ever before. Also you could be saving you or your client possible legal issues in the future.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Hopefully this demonstrates not just the usefulness of complying with web standards, but the business sense it makes - both in short and long term. A design will have less problems, a coder will have less headaches, and a client will save money.&lt;br /&gt;&lt;br /&gt;Just remember all this for the next time you hear someone say that there is no reason to use web standards.</description>
  <comments>http://digitalwaffle.livejournal.com/1054.html</comments>
  <lj:music>Sneaker Pimps - Lightning Field</lj:music>
  <media:title type="plain">Sneaker Pimps - Lightning Field</media:title>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/857.html</guid>
  <pubDate>Fri, 22 Aug 2003 16:51:38 GMT</pubDate>
  <title>The Basics Pt 2</title>
  <link>http://digitalwaffle.livejournal.com/857.html</link>
  <description>Currently I&apos;m covering the simple - but important - concepts that I think everyone should know so they can create better web content, design, or code. The last entry was about DocTypes, and how they can help you be standards compliant. However, this leads to other questions...&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px;&quot;&gt;What Is Standards Compliance, and Why Is It a Good Thing?&lt;/h3&gt;&lt;br /&gt;The term &apos;standards compliance&apos; tends to be flung around quite a lot these days, often incorrectly, or at least with some degree of misunderstanding.&lt;br /&gt;&lt;br /&gt;All standards compliance means is that web sites and browsers confirm to certain suggestions made by the w3 organisation. These &apos;recommendations&apos; for each form of html and other web languages form the standards. The ultimate goal of this is so that sites will look the same no matter what platform you view them on.&lt;br /&gt;&lt;br /&gt;Its that simple, standards mean you can rely on your code acting the same, and being understandable, in different browsers and on different platforms. Sounds easy doesn&apos;t it?&lt;br /&gt;&lt;br /&gt;However this is where it gets tricky. Currently &lt;strong&gt;no single browser is standards compliant&lt;/strong&gt;. None of them. They all &lt;em&gt;claim&lt;/em&gt; to be, but they lie. The ones with the least bugs (very few) are Mozilla and Opera. Internet Explorer does the job, especially in v6, but still has many more problems then either of the other two. One thing to note about Mozilla and Opera is that they update much more than IE, and this is almost certainly the primary reason for their better support.&lt;br /&gt;&lt;br /&gt;These bugs shouldn&apos;t be a problem for many designers however, as often (though sadly not always) these bugs may not cause an obvious problem, or they have simple workarounds. Soon, I hope, there will be no need to have workarounds. &lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;The Bottom Line&lt;/h4&gt;&lt;br /&gt;Authoring your web pages to be standards compliant will make sure that your site is seen by more people how you want it to be seen. That is better for the viewer, and better for you.</description>
  <comments>http://digitalwaffle.livejournal.com/857.html</comments>
  <lj:music>Loo &amp; Placido - Accidents Happen</lj:music>
  <media:title type="plain">Loo &amp; Placido - Accidents Happen</media:title>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://digitalwaffle.livejournal.com/346.html</guid>
  <pubDate>Thu, 21 Aug 2003 20:32:33 GMT</pubDate>
  <title>The Basics</title>
  <link>http://digitalwaffle.livejournal.com/346.html</link>
  <description>To start this off in the next few posts I&apos;ll be covering the basics, and yes, some people may think the following is obvious, but it never hurts to make sure that everyone is on the same page.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px;&quot;&gt;Why You Should Be Using DocTypes&lt;/h3&gt;&lt;br /&gt;Using a correct DocType is the single most important thing to do in creating a webpage. Sadly many authoring tools actually insert &lt;em&gt;incorrect or broken&lt;/em&gt; doctypes in the code they create. Doctypes are what tells the browser the kind of page it is expecting. This is especially important as correct doctypes help browsers to render the page in &apos;standards compliant&apos; mode, turning off all the goofy features that other, badly coded, pages might need - and that screw up all your hard work.&lt;br /&gt;&lt;br /&gt;Of course &lt;em&gt;you&lt;/em&gt; don&apos;t need these features because your web page is going to be coded properly right? &lt;strong&gt;Right?&lt;/strong&gt; Right.&lt;br /&gt;&lt;br /&gt;Why are there these features in browsers? To compensate for the awful coding people have done in the past for the sake of &apos;backward compatibility&apos; that’s why. Its the browsers fault originally of course, the war for dominance in the browser market created many of the problems that are now trying to be fixed. Due to this many web pages have code that is frankly incompetently coded - with unclosed tags and typos within the code. Putting a doctype in your code lets the browser know that you are coding to a certain specification, and that it should display it as such.&lt;br /&gt;&lt;br /&gt;In fact having a doctype (and code that complies with it) is the single biggest step anyone can take to making their site look good, and more importantly consistent, on all platforms.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px;&quot;&gt;So What Is A DocType?&lt;/h4&gt;&lt;br /&gt;DocType stands for &apos;document type declaration&apos; or &apos;DTD&apos; and basically does just that - declare the type of document that it is. They usually come in 3 flavours - Strict, Transitional, and Frameset.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Strict&lt;/strong&gt; - Strict is just that, its a strict set of rules that conform to the wc3&apos;s recommendations for web standards. It doesn&apos;t allow any tags or properties that have been depreciated in the specification, and you should have content and presentation separated. Ideally this is what you should be working with, especially if you are creating a site from scratch.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Transitional&lt;/strong&gt; - Much friendlier for many people, transitional understands that you may not be able to, or may not want to code to the ideals of the strict doctype. It features the depreciated attributes, and doesn&apos;t require you to remove content from presentation as much. A good doctype to start with if.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Frameset&lt;/strong&gt; - This is the same as transitional, but with support for the outdated and often misused html frames.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;DocTypes also vary depending on what language you are coding in, HTML, XHTML 1, or XHTML 1.1. The difference between html and xhtml is subtle, but important. However I&apos;m not going to cover this today, if you don&apos;t know the difference then you are very probably using html.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 0px; padding: 0px;&quot;&gt;What DocType Should You Use?&lt;/h3&gt;&lt;br /&gt;Good question, its quite hard to find correct doctypes on the net, even when someone declares one it is often wrong. To explain why lets look at a DocType, in this case for HTML 4 Strict:&lt;br /&gt;&lt;pre style=&quot;font: 14px courier new, monospace; padding: 0px; padding-left:30px; margin:0px;&quot;&gt;
&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;
	   &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&amp;gt;&lt;/pre&gt;&lt;br /&gt;This pretty much breaks down to three sections. Telling that its a public doctype for html, the actual definition of the type, and the url to the specification of the type. Note the FULL url in the code. Often this is written as &apos;TR/html4/strict.dtd&apos; or &apos;strict.dtd&apos; &lt;strong&gt;this is wrong&lt;/strong&gt;! You &lt;em&gt;must&lt;/em&gt; include the full url in the doctype else it is invalid and will do nothing for you.&lt;br /&gt;&lt;br /&gt;With that lets show you the valid doctypes:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;HTML 4.01 Strict&lt;/strong&gt;&lt;br /&gt;&lt;pre style=&quot;font: 14px courier new, monospace; padding: 0px; padding-left:30px; margin:0px;&quot;&gt;&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;
	   &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;strong&gt;HTML 4.01 Transitional&lt;/strong&gt;&lt;br /&gt;&lt;pre style=&quot;font: 14px courier new, monospace; padding: 0px; padding-left:30px; margin:0px;&quot;&gt;&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
	   &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;strong&gt;HTML 4.01 Frameset&lt;/strong&gt;&lt;br /&gt;&lt;pre style=&quot;font: 14px courier new, monospace; padding: 0px; padding-left:30px; margin:0px;&quot;&gt;&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Frameset//EN&quot;
	   &quot;http://www.w3.org/TR/html4/frameset.dtd&quot;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;strong&gt;XHTML 1.0 Strict&lt;/strong&gt;&lt;br /&gt;&lt;pre style=&quot;font: 14px courier new, monospace; padding: 0px; padding-left:30px; margin:0px;&quot;&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
	   &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;strong&gt;XHTML 1.0 Transitional&lt;/strong&gt;&lt;br /&gt;&lt;pre style=&quot;font: 14px courier new, monospace; padding: 0px; padding-left:30px; margin:0px;&quot;&gt;&amp;lt;DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
	   &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;strong&gt;XHTML 1.0 Frameset&lt;/strong&gt;	&lt;br /&gt;&lt;pre style=&quot;font: 14px courier new, monospace; padding: 0px; padding-left:30px; margin:0px;&quot;&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Frameset//EN&quot;
	   &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd&quot;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;strong&gt;XHTML 1.1 (No transitional or frameset)&lt;/strong&gt;&lt;br /&gt;&lt;pre style=&quot;font: 14px courier new, monospace; padding: 0px; padding-left:30px; margin:0px;&quot;&gt;&amp;lt;DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; 
	   &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;That’s all of them. They go just like that in your code as the first thing in the file before any other tag, even the html tag. You can check that you are conforming to the standard that you&apos;ve declared in your doctype by validating your code (check the links side panel for the w3.org&apos;s validator). You should try to eliminate any warnings and definately get rid of any errors it displays. In the long run you&apos;ll learn how to code better displayed pages so that your site is fast, and the design looks right across all platforms.&lt;br /&gt;&lt;br /&gt;Congratulations on the first step towards a better web.</description>
  <comments>http://digitalwaffle.livejournal.com/346.html</comments>
  <lj:music>Kosheen - Swamp</lj:music>
  <media:title type="plain">Kosheen - Swamp</media:title>
  <lj:security>public</lj:security>
  <lj:reply-count>193</lj:reply-count>
</item>
</channel>
</rss>
