Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
<abbr title="Hypertext Markup Language">HTML</abbr> isn't so hard to learn after all, is it?
<img src="/images/logo.png" alt="Logo">
<img src="/images/logo.png" alt="XYZ Corporation">
Less isn't more; just enough is more.
<cite>Milton Glaser</cite>
Here is a basic <abbr title="Hypertext Markup Language">HTML</abbr> document:
&lt;!DOCTYPE html&gt;
&lt;html class=&quot;no-js&quot; lang=&quot;en&quot;&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;title&gt;An HTML Page&lt;/title&gt;
&lt;h1&gt;A Heading With Some &amp;quot;Quotes&amp;&quot;&lt;/h1&gt;
<h1>The Visible Title of Your Page</h1>
<p class="lead">
A summary of the page perhaps would go here. Whatever, really.
<h2>A 2nd-level subheading</h2>
Some content and media or whatever.
<h3>A sub-subheading</h3>
This section appears under the 2nd level.
<h4>A sub-sub-subheading</h4>
I hope you're getting the point now.
<h2>We're back at the 2nd level</h2>
And this could have its own subsections as well...
Inline statements should be marked up with the <code>&lt;code&gt;</code> tag.
These are my top 3 tips for authoring HTML emails:
<li>Use Litmus to test across email clients</li>
<li>Start with Outlook,, and Hotmail</li>
You should consider doing these things on your first date:
<li>Eat marshmallows</li>
<li>Teach the importance of tying your shoes <em>the right way</em></li>
<li>Discuss the finer points of lawnmower ownership</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment