<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jorge Pedret &#187; html</title>
	<atom:link href="http://jorgepedret.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://jorgepedret.com</link>
	<description>Freelance Web Developer + Front End Designer</description>
	<lastBuildDate>Wed, 25 Jan 2012 16:43:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Finding Placeholder Images for your Designs</title>
		<link>http://jorgepedret.com/tools/finding-placeholder-images-for-your-designs/</link>
		<comments>http://jorgepedret.com/tools/finding-placeholder-images-for-your-designs/#comments</comments>
		<pubDate>Tue, 10 May 2011 17:55:51 +0000</pubDate>
		<dc:creator>Jorge Pedret</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[img]]></category>
		<category><![CDATA[placeholder]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://jorgepedret.com/?p=398</guid>
		<description><![CDATA[Here are 3 tools that I've been using lately to show placeholder images in the sites I design: Lorempixum, Flickholdr &#038; Placehold.it]]></description>
			<content:encoded><![CDATA[<p><img src="http://flickholdr.com/550/341/4" alt="Placeholder image from flickholdr.com" /></p>
<p>Here are 3 tools that I&#8217;ve been using lately to show placeholder images in the sites I design: Lorempixum, Flickholdr &amp; Placehold.it</p>
<h2>Lorempixum</h2>
<p><a href="http://lorempixum.com/">http://lorempixum.com/</a></p>
<p><a href="http://lorempixum.com/"><img class="alignnone size-medium wp-image-403" title="Lorempixum Screenshot" src="http://jorgepedret.com/wp-content/uploads/2011/05/Screen-shot-2011-05-10-at-10.47.39-AM-300x208.png" alt="Lorempixum Screenshot" width="300" height="208" /></a></p>
<p>It was recently launched , but I&#8217;ve found it to be one of the best tools so far. You can specify the size, the category and if you want it colored or black &amp; white.</p>
<p>Here are some examples of how to use it, simply put this in the src parameter of your img tag:</p>
<pre class="brush: plain; title: ; notranslate">

http://lorempixum.com/400/200

http://lorempixum.com/g/400/200

http://lorempixum.com/400/200/sports

http://lorempixum.com/400/200/sports/1
</pre>
<h2>Flickholdr</h2>
<p><a href="http://flickholdr.com/">http://flickholdr.com/</a></p>
<p><a href="http://flickholdr.com/"><img class="alignnone size-medium wp-image-401" title="Flickholdr Screenshot" src="http://jorgepedret.com/wp-content/uploads/2011/05/Screen-shot-2011-05-10-at-10.47.07-AM-298x300.png" alt="Flickholdr Screenshot" width="298" height="300" /></a></p>
<p>Works the same way as Lorempixum, but looks for the images in Flickr. It makes sure that the images&#8217; copyright allow you to use them anywhere.</p>
<p>The thing that I like about Flickholdr that Lorempixum doesn&#8217;t have, is that you can choose your own tags, instead of using fixed tags.</p>
<p>I had a couple of issues with Flickholdr&#8217;s interface to generate images, but other than that it works like a charm.</p>
<p>Here are some examples of how to use it. Again, simply put this in the src parameter of your img tag:</p>
<pre class="brush: plain; title: ; notranslate">

http://flickholdr.com/200/300

http://flickholdr.com/200/300/sea,sun

http://flickholdr.com/200/300/sea,sun/bw

http://flickholdr.com/200/300/sea,sun/1
</pre>
<h2>Placehold.it</h2>
<p><a href="http://placehold.it/">http://placehold.it/</a></p>
<p><a href="http://placehold.it/"><img class="alignnone size-medium wp-image-402" title="PLACEHOLD.IT Screenshot" src="http://jorgepedret.com/wp-content/uploads/2011/05/Screen-shot-2011-05-10-at-10.47.27-AM-300x259.png" alt="PLACEHOLD.IT Screenshot" width="300" height="259" /></a></p>
<p>And finally&#8230; placehold.it. It&#8217;s a much simpler version compared to the last two tools, it&#8217;s a solid color image instead of a picture. You can use it when you just need to mark a place as an image placeholder, or if you are just doing a website&#8217;s wireframe, etc.</p>
<p>Here are some examples of how to use it. Again, simply put this in the src parameter of your img tag:</p>
<pre class="brush: plain; title: ; notranslate">

http://placehold.it/350x150

http://placehold.it/300x100/000/fff/&#038;text=Custom%20Text

http://placehold.it/600x200/000/fff.png
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jorgepedret.com/tools/finding-placeholder-images-for-your-designs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a cool css background transition effect</title>
		<link>http://jorgepedret.com/web-development/how-to-create-a-cool-css-background-transition-effect/</link>
		<comments>http://jorgepedret.com/web-development/how-to-create-a-cool-css-background-transition-effect/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 21:38:14 +0000</pubDate>
		<dc:creator>Jorge Pedret</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[think geek]]></category>
		<category><![CDATA[transition]]></category>

		<guid isPermaLink="false">http://jorgepedret.com/?p=319</guid>
		<description><![CDATA[Learn how to create a really cool background transition effect like the one seeing on Think Geek's website. <a href="http://jorgepedret.com/sandbox/tg-effect/">Check out the Demo</a>]]></description>
			<content:encoded><![CDATA[<p>I first saw this effect in the popular website <a href="https://www.thinkgeek.com/" target="_blank">Think Geek</a>, when you scroll down all the way to the bottom you can see how it makes a transition from cool Robots to cool Zombies.</p>
<p>It bugged my mind for a bit so I decided to figure out how they did it. It turns out it&#8217;s a lot more simple than you think, all you need is two images and CSS.</p>
<p><a target="_blank" href="http://jorgepedret.com/sandbox/tg-effect/" class="woo-sc-button  custom large" style="background:;border-color:"><span class="woo-tick">See the demo</span></a> <a href="http://jorgepedret.com/wp-content/uploads/2011/04/tg-effect-demo.zip" class="woo-sc-button  custom large" style="background:;border-color:"><span class="woo-tick">Download the demo files</span></a></p>
<p>Here&#8217;s how you can easily create the effect:</p>
<h2>Start by creating the transition image</h2>
<p><a href="http://jorgepedret.com/wp-content/uploads/2011/04/Screen-shot-2011-04-22-at-1.36.53-PM.png"><img class="alignnone size-medium wp-image-320" title="Screen shot 2011-04-22 at 1.36.53 PM" src="http://jorgepedret.com/wp-content/uploads/2011/04/Screen-shot-2011-04-22-at-1.36.53-PM-300x86.png" alt="" width="300" height="86" /></a></p>
<ol>
<li>Create a 1200 x 300 pixels image in Photoshop with transparent background.</li>
<li>Create the images that you want to see at the top of the page and make sure they&#8217;re only in #666.</li>
<li>Then, create the images that you want to see at the bottom of the page and make sure they&#8217;re only in #000.</li>
<li>Save it as a PNG named <strong>bottom-bg.png</strong>, making sure there&#8217;s no background color. The only two colors that can exist in this image are #666 and #000.</li>
</ol>
<div class="woo-sc-box note   ">The two top and bottom images can&#8217;t be touching each other, they have  to be separate, otherwise the effect will not work. They can be very  close though.</div>
<div class="woo-sc-box info   ">This is the design that Think Geek used: <a href="https://www.thinkgeek.com/images/sitewide/backgrounds/robozombies7.png" target="_blank">https://www.thinkgeek.com/images/sitewide/backgrounds/robozombies7.png</a></div>
<h2>Next, create the background image</h2>
<p><a href="http://jorgepedret.com/wp-content/uploads/2011/04/Screen-shot-2011-04-22-at-1.55.50-PM.png"><img class="alignnone size-medium wp-image-322" title="Screen shot 2011-04-22 at 1.55.50 PM" src="http://jorgepedret.com/wp-content/uploads/2011/04/Screen-shot-2011-04-22-at-1.55.50-PM-300x258.png" alt="" width="300" height="258" /></a></p>
<ol>
<li>Create a 10 x 700 pixels image in Photoshop</li>
<li>Select the gradient tool and configure the gradient to be from #000 to #666</li>
<li>Vertically drag it from the very top to the middle of the image approximately.</li>
<li>Save that as a PNG file named <strong>body-bg.png</strong> and you&#8217;re done with the background image.</li>
</ol>
<div class="woo-sc-box info   ">Once you understand the way this effect works, you will be able to use whichever colors you want. But for now we&#8217;re sticking to #000 and #666</div>
<h2>And finally, write the CSS and HTML</h2>
<p>Let&#8217;s start with the HTML:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;fancywrap&quot;&gt;
	&lt;div id=&quot;wrap&quot;&gt;
		&lt;article&gt;
		&lt;!-- Your content here --&gt;
		&lt;/article&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<div class="woo-sc-box info   ">This is a simple structure for this demo, but you can adapt it to your own project.</div>
<p>For the styles, you&#8217;re going to attach to your body tag the background image that you created in step 2 and make the color background #000.</p>
<pre class="brush: css; title: ; notranslate">
body{
	background: #000 url(body-bg.png) left bottom repeat-x;
}
</pre>
<p>Next step is styling the .facywrap class by attaching the transition image to it. And the secret for this effect to work is to use the CSS property <code>background-attachment: fixed</code>; like this:</p>
<pre class="brush: css; title: ; notranslate">
.fancywrap{
	background: url('bottom-bg.png') repeat-x;
	background-position: center bottom;
	background-attachment: fixed;
}
</pre>
<p>See the full demo code in Github: <a href="https://gist.github.com/937679" target="_blank">https://gist.github.com/937679</a></p>
<p>That&#8217;s it! Once you understand how it works, you will be able to choose your own color combination other than the boring #000 and #666.</p>
<p><a target="_blank" href="http://jorgepedret.com/sandbox/tg-effect/" class="woo-sc-button  custom large" style="background:;border-color:"><span class="woo-tick">See the demo</span></a>  <a href="http://jorgepedret.com/wp-content/uploads/2011/04/tg-effect-demo.zip" class="woo-sc-button  custom large" style="background:;border-color:"><span class="woo-tick">Download the demo files</span></a></p>
<hr />
<a href="http://feedburner.google.com/fb/a/mailverify?uri=JorgePedret&amp;loc=en_US" class="woo-sc-button  orange" ><span class="woo-tick">Get updates via Email</span></a>
]]></content:encoded>
			<wfw:commentRss>http://jorgepedret.com/web-development/how-to-create-a-cool-css-background-transition-effect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 &#8211; What you really need to know</title>
		<link>http://jorgepedret.com/web-development/html5-what-you-really-need-to-know/</link>
		<comments>http://jorgepedret.com/web-development/html5-what-you-really-need-to-know/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 23:53:09 +0000</pubDate>
		<dc:creator>Jorge Pedret</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://jorgepedret.com/?p=125</guid>
		<description><![CDATA[Quick reference for designers &#038; developers who just want the facts. 

An update and comparison between the html we've been working on for years and the new html5.

What's new, What was removed, What was changed and what's the current browser support.]]></description>
			<content:encoded><![CDATA[<p>This is a quick reference for those designers &amp; developers who just want the facts.</p>
<h3>What&#8217;s new?</h3>
<p><strong>DOCTYPE</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;!-- Before --&gt;
&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;&gt;
&lt;!-- Now --&gt;
&lt;!DOCTYPE html&gt;
</pre>
<p>Most browsers will parse documents with that doctype as html5. That simple <img src='http://jorgepedret.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>CHARSET</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;!-- Before --&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;!-- Now --&gt;
&lt;meta charset=utf-8 /&gt;
</pre>
<h3>What was removed?</h3>
<p>This tags are no longer valid in html5</p>
<pre class="brush: xml; title: ; notranslate">
&lt;basefont&gt;
&lt;big&gt;
&lt;center&gt;
&lt;font&gt;
&lt;s&gt;
&lt;strike&gt;
&lt;tt&gt;
&lt;u&gt;
</pre>
<p>Frames were removed as well.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;frame /&gt;
&lt;frameset&gt;
&lt;noframes &gt;
</pre>
<p>Obsolete tags were taken out of html5 as well:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;acronym&gt;
&lt;!-- Use abbr instead --&gt;
&lt;applet&gt;
&lt;!-- Obsoleted in favor of object --&gt;
&lt;isindex&gt;
&lt;!-- Replaced by usage of form controls --&gt;
&lt;dir&gt;
&lt;!-- Obsoleted in favor of ul --&gt;
</pre>
<p>Tag&#8217;s attributes referring to visual characteristics were removed as well. Just to mention some:</p>
<pre class="brush: xml; title: ; notranslate">align, background, bgcolor, border, clear, height</pre>
<h3>What changed?</h3>
<pre class="brush: xml; title: ; notranslate">
&lt;a&gt;
&lt;!-- Now it can contain block elements. Hurray! --&gt;
&lt;b&gt;
&lt;!-- Now represents text whose typical typographic presentation is emboldened --&gt;
&lt;hr /&gt;
&lt;!-- Now reprensents a thematic break in paragraph-level --&gt;
&lt;i&gt;
&lt;!-- Now represents text in an alternate voice or mood --&gt;
&lt;menu&gt;
&lt;!-- Has been redefined to be usefull for toolbars and context menues --&gt;
&lt;small&gt;
&lt;!-- Is now used to represent small print in documents, generally for legal purposes --&gt;
&lt;b&gt;
&lt;!-- Now represents importance instead of strong emphasis --&gt;
</pre>
<h3>New stuff, the exiting part!</h3>
<p>A bunch of <strong>new tags</strong> have been created to satisfy the common needs that HTML coders find everyday.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;section&gt;
&lt;!-- Generic document or application section --&gt;
&lt;article&gt;
&lt;!-- INDEPENDENT piece of content of a document. E.g: Blog entry, newspaper article --&gt;
&lt;aside&gt;
&lt;!-- Content slightly related to the rest of the page. *cough* side bars *cough* --&gt;
&lt;hgroup&gt;
&lt;!-- Header of a section. E.g: To include title and subtitle, or company name and slogan type of thing --&gt;
&lt;header&gt;
&lt;!-- Group of Introductory or navigational aids. Doesn't necessarily needs to be at the top of the document, it can be the header of a section of the page --&gt;
&lt;footer&gt;
&lt;!-- Footer for a section. Can contain information about the author, copyright, etc. --&gt;
&lt;nav&gt;
&lt;!-- Section of document intended for navigation. --&gt;
&lt;figure&gt;
&lt;!-- Associate a caption with some embedded content, such as graphic or video. --&gt;
&lt;figcaption&gt;
&lt;!-- Provides caption for the previous tag's embedded content --&gt;
&lt;video&gt;
&lt;!-- Video and audio multimedia content. Very exciting tag <img src='http://jorgepedret.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  --&gt;
&lt;mark&gt;
&lt;!-- Run of marked text. E.g: Can be used for marking keywords of a search in a long text --&gt;
&lt;progress&gt;
&lt;!-- Represents a completion of a task. E.g: Downloading, performing series of expensive operations --&gt;
&lt;meter&gt;
&lt;!-- Represents a measurement, such as disk usage. --&gt;
&lt;time&gt;
&lt;!-- Represents a date and/or time. Very exciting tag <img src='http://jorgepedret.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  --&gt;
&lt;canvas&gt;
&lt;!-- Rendering dynamic bitmap graphics on the fly. Very exciting tag --&gt;
&lt;command&gt;
&lt;!-- Represents a command the user can invoke --&gt;
&lt;details&gt;
&lt;!-- Additional information or controls which user can obtain on demand --&gt;
&lt;datalist&gt;
&lt;!-- Used for creating a list of options for the new 'select' tag. --&gt;
&lt;keygen&gt;
&lt;!-- Control for key pair generation. --&gt;
&lt;output&gt;
&lt;!-- Represents some type of output. E.g: Calculation result --&gt;
</pre>
<p><strong>Input tag</strong>&#8216;s type attribute now has the following values:</p>
<ul>
<li>tel</li>
<li>search</li>
<li>url</li>
<li>email</li>
<li>datetime</li>
<li>date</li>
<li>month</li>
<li>week</li>
<li>time</li>
<li>datetime-local</li>
<li>number</li>
<li>range</li>
<li>color</li>
</ul>
<p>Depending on the device or browser used, this can prompt change the way to input the value. For example, if browsing from an iPhone, the datetime value promts the native way for the iPhone to choose a date+time.</p>
<p>The type attribute can also be used for automatic browser native validation purposes.</p>
<p>For more details on form changes, take a look at <a href="http://diveintohtml5.org/forms.html">http://diveintohtml5.org/forms.html</a></p>
<p>Visit: <a href="http://www.w3.org/TR/html5-diff/#new-attributes">http://www.w3.org/TR/html5-diff/#new-attributes</a> for more <strong>new attributes</strong> in html5 that you need to know about.</p>
<h3>New html5 API&#8217;s</h3>
<p>Other than tags, html5 implements a bunch of new API&#8217;s (think of it like javascript libraries) that will help you develop better applications in a faster way.</p>
<ul>
<li><strong>Video &amp; Audio</strong>: API for playing of video and audio; it can be used with the new video and audio elements.</li>
<li><strong>Offline Apps</strong>: An API that enables offline Web applications.</li>
<li><strong>Editable Content</strong>: API for editing inline content; use it with the new global contenteditable attribute.</li>
<li><strong>Drag &amp; Drop</strong>: API for drag &amp; drop elements; use in combination with a draggable attribute.</li>
<li><strong>History</strong>: API that exposes the history and allows pages to add to it to prevent breaking the back button.</li>
<li><strong>Geolocation</strong>: API that provides scripted access to geographical location of the device that&#8217;s browsing the site</li>
<li><strong>Local Storage</strong>: API for persistent data storage of key-value pair data in Web clients <em>(how exciting is that!?)</em></li>
</ul>
<h3>Examples:</h3>
<p>Check out html5 examples here <a href="http://html5demos.com/">http://html5demos.com/</a> they have everything and more of what I&#8217;ve said here and it&#8217;ll also tell you the current browser support.</p>
]]></content:encoded>
			<wfw:commentRss>http://jorgepedret.com/web-development/html5-what-you-really-need-to-know/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Code Highlight</title>
		<link>http://jorgepedret.com/web-development/wordpress-code-highlight/</link>
		<comments>http://jorgepedret.com/web-development/wordpress-code-highlight/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 04:22:28 +0000</pubDate>
		<dc:creator>Jorge Pedret</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.jorgepedret.com/blog/?p=19</guid>
		<description><![CDATA[While I was writing the last post, I was trying to find a nice code highlighter with this requirements: Keep Indentation: I want to code to look nice, but if it&#8217;s not indented correctly as I submit it, then it&#8217;s garbage Support Different Languages: I&#8217;m going to be writing post about Javascript, PHP, XHTML and [...]]]></description>
			<content:encoded><![CDATA[<p>While I was writing the last post, I was trying to find a nice code highlighter with this requirements:</p>
<ol>
<li><strong>Keep Indentation:</strong> I want to code to look nice, but if it&#8217;s not indented correctly as I submit it, then it&#8217;s garbage</li>
<li><strong>Support Different Languages</strong>: I&#8217;m going to be writing post about Javascript, PHP, XHTML and I need all these languages/markups to be highlighted</li>
<li><strong>Line number/Plain code view:</strong> You should be able to switch between plain code view and line number. I couldn&#8217;t find specifically what I was looking for but this one had a different approach to solve this problem.</li>
<li><strong>W3C Compliant:</strong> The code produced has to be W3C Compliant.</li>
</ol>
<p>After like 1 hour of research and testing, I found <strong>SyntaxHighlighter Evolved! </strong>here is the plugin&#8217;s website: <a href="http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" target="_blank">http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/</a>.</p>
<p>To install it you can go to your WordPress Admin panel and look for SyntaxHighlighter Evolved and install it.</p>
<p>To use it:[language]&#8230;code&#8230;[/language]<br />
Example:</p>
<pre class="brush: plain; title: ; notranslate">
1
</pre>
<p>It&#8217;s pretty straight forward, for better details on how to use it, I went to my WordPress Admin Back-end &gt; Plugins &gt; Installed, then I looked for SyntaxHighlighter Evolved and clicked on Settings, at the bottom of this page you&#8217;ll see the details of what parameters you can pass to change the functionality.</p>
<p>Do you know another code highlighter that works better than this one?</p>
]]></content:encoded>
			<wfw:commentRss>http://jorgepedret.com/web-development/wordpress-code-highlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

