<p>I generally use a manual process:</p>

<ol>
<li>Look at the page, figure out the semantic elements, and build the HTML</li>
<li>Slice up the images I think I'll need</li>
<li>Start writing CSS</li>
<li>Tweak and repeat different steps as necessary</li>
</ol>

<p>Got a better approach, or a tool?</p>

[{'answer_id': 19491, 'author': 'jhornnes', 'author_id': 211, 'author_profile': 'https://Stackoverflow.com/users/211', 'pm_score': 0, 'selected': False, 'text': '<p>Some of the designers i know, usually uses Illustrator to make the design elements.</p>\n'}, {'answer_id': 19507, 'author': 'sparkes', 'author_id': 269, 'author_profile': 'https://Stackoverflow.com/users/269', 'pm_score': 1, 'selected': False, 'text': '<p>No shortcuts :) but everybody works slightly differently.</p>\n\n<p><a href="http://nettuts.com/site-builds/from-psd-to-html-building-a-set-of-website-designs-step-by-step/" rel="nofollow noreferrer">This tutorial</a> that popped up in my feedreader yesterday shows the process from start to finish and might help people who have never done it before but as you are an old hand it\'s just about streamlining your own methods.</p>\n\n<p>EDIT:\nThe listapart link certainly is more automated for \'flat\' designs where both imageready and fireworks have had pretty good support from day one and it\'s got better and more semantic with every release but if you have a more complex design it\'s the twiddly bits that make the design what it is and these have to be done by hand.</p>\n'}, {'answer_id': 19527, 'author': 'Matt Mitchell', 'author_id': 364, 'author_profile': 'https://Stackoverflow.com/users/364', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://www.alistapart.com/articles/quickcssmockupswithphotoshop" rel="nofollow noreferrer">This page</a> shows how to do it a little more automated.</p>\n'}, {'answer_id': 22078, 'author': 'Andy', 'author_id': 1993, 'author_profile': 'https://Stackoverflow.com/users/1993', 'pm_score': 3, 'selected': False, 'text': '<p>Well, when I build a website I tend to try and forget about the design completely while writing the HTML. I do this so I won\'t end up with any design-specific markup and so I can focus on the semantic meaning of the elements. </p>\n\n<p>Some pointers how to markup things: </p>\n\n<ul>\n<li><p>menu - use the UL (unordered list) element, since that\'s exactly what a menu is. an unordered list of choices. example:</p>\n\n<pre><code>&lt;ul id="menu"&gt;\n    &lt;li id="home"&gt;&lt;a href="/" title="Go to Homepage"&gt;Home&lt;/a&gt;&lt;/li&gt;\n    &lt;li id="about"&gt;&lt;a href="/about" title="More about us"&gt;About&lt;/a&gt;&lt;/li&gt;\n&lt;/ul&gt;\n</code></pre>\n\n<p>if you\'d like an horizontal menu you could do this:</p>\n\n<pre class="lang-css prettyprint-override"><code>#menu li {\n    display: block;\n    float: left;\n}\n</code></pre></li>\n<li><p>Logo - use a H1 (heading) element for the logo instead of an image.Example:</p>\n\n<pre><code>&lt;div id="header"&gt;\n    &lt;h1&gt;My website&lt;/h1&gt;\n&lt;/div&gt;\n</code></pre>\n\n<p>And the CSS (same technique can be applied to the menu above if you would like a menu with graphical items):</p>\n\n<pre class="lang-css prettyprint-override"><code>#header h1 {\n    display: block;\n    text-indent: -9999em;\n    width: 200px;\n    height: 100px;\n    background: transparent url(images/logo.png) no-repeat;\n}\n</code></pre></li>\n<li><p>IDs and classes - use IDs to identify elements that you only have one instance of. Use class for identifying elements that you got several instances of. </p></li>\n<li><p>Use a textual browser (for instance, lynx). If it makes sense to navigate in this way, you\'ve done good when it comes to accessibility. </p></li>\n</ul>\n\n<p>I hope this helps :)</p>\n'}, {'answer_id': 22087, 'author': 'Ross', 'author_id': 2025, 'author_profile': 'https://Stackoverflow.com/users/2025', 'pm_score': 4, 'selected': True, 'text': '<p>I have a fairly natural way of coding. The key is to treat the page like a document or an article. If you think of it like this the following becomes logically clear:</p>\n\n<ol>\n<li><p>The page title is a top level heading </p>\n\n<ul>\n<li>Whether you make the site title or actual page title the h1 is up to you - personally I\'d make About Us the h1 rather than Stack Overflow.</li>\n</ul></li>\n<li><p>The navigation is a table of contents, and thus an <strong>ordered list</strong> - you may as well use an ol over a ul.</p></li>\n<li><p>Section headers are h2, sections within those sections are h3s etc. Stack them up.</p></li>\n<li><p>Use blockquotes and quotes where possible. Don\'t just surround it with ".</p></li>\n<li><p>Don\'t use b and i. Use strong and em. This is because HTML is structural rather than presentational markup. <strong>Strong</strong> and <strong>em</strong>phasis tags should be used where you\'d put emphasis on the word.</p></li>\n<li><p><code>&lt;label&gt;</code> your form elements.</p></li>\n<li><p>Use <code>&lt;acronym&gt;</code>s and <code>&lt;abbr&gt;</code>s where possible, but only in the first instance.</p></li>\n<li><p>The easiest: always, <em>always</em> give your images some alternate text.</p></li>\n<li><p>There\'s lots of HTML tags you could use that you probably haven\'t - address for postal addresses, screen code output. Have a look at <a href="http://www.htmldog.com/" rel="noreferrer">HTML Dog</a> for some, it\'s my favourite reference.</p></li>\n</ol>\n\n<p>That\'s just a few pointers, I\'m sure I could think of more.</p>\n\n<p>Oh, and if you want a challenge write your XHTML first, then write the CSS. When CSS-ing you aren\'t allowed to touch the HTML. It\'s actually harder than you think (but I\'ve found it\'s made me quicker).</p>\n'}, {'answer_id': 26490, 'author': 'CarmineSantini', 'author_id': 2166, 'author_profile': 'https://Stackoverflow.com/users/2166', 'pm_score': 2, 'selected': False, 'text': "<p>I essentially do the same thing Jon does, but here are a few other ideas:</p>\n\n<ol>\n<li><p>Use Guides in Photoshop (and lock to them).  Figure out all of your dimensions for each box/ region ahead of time.</p></li>\n<li><p>Collect all of your dimensions and color hex values into an info file (I use a txt file) that you can easily reference.  This will reduce your alt-tab tax and selecting colors in Photoshop multiple times. </p></li>\n<li><p>After all my Guides are in place, I slice out the entire website into my images folder, starting with photos and grouped elements, and ending with the various background tiles/images, should they exist. (Tip: Use <kbd>ctrl</kbd>-click on the layer preview to select that layer's content).</p></li>\n</ol>\n\n<p>Notes on using Photoshop: </p>\n\n<ul>\n<li>Use Guides or the Grid. </li>\n<li>Use the Notes feature for any pertinent information</li>\n<li>Always use Layer Groups for similar elements.  We need to be able to turn entire regions off in one click.  Put all 'header' content in one Layer Group. </li>\n<li>Always name your layers.  </li>\n<li>You can put each page template in one PSD file and use nested Layer Groups to organize them.  This way we don't have to setup all of our guides and notes for each page template on a site.  </li>\n</ul>\n"}, {'answer_id': 525621, 'author': 'Steerpike', 'author_id': 60598, 'author_profile': 'https://Stackoverflow.com/users/60598', 'pm_score': 1, 'selected': False, 'text': "<p>I just thought it was worth pointing out that in addition to the excellent advice you've had so far I'd recommend getting a printed version of the design, using a red pen to mark up all the block elements on the design you think you can spot and sitting down with the designer for half an hour and talking through how they envisioned their design working for the use cases that don't fit the static design.</p>\n\n<ul>\n<li>What happens when more text is put in the navigation?</li>\n<li>Is this width fixed or fluid?</li>\n<li>Is this content pane to the right fixed height or fluid? If it's fluid why did you put a background on it that can't be repeated?</li>\n<li>You have a border extending down the page that breaks two otherwise connected elements. Visually it makes sense, but semantically I not can't just use an li to house both those elements. What do you think is more important?</li>\n</ul>\n\n<p>It'll also help you spot potential problems that you might otherwise not have realised were going to be issues until your elbow deep in css. </p>\n\n<p>Not only does it make your job easier after a few times doing it your designer will get a much stronger sense of what is involved in marking up their work - some designers have real trouble comprehending why something they think looks visually very simple will take a few days of css tweaking to make work.</p>\n"}, {'answer_id': 564511, 'author': 'Andrew Vit', 'author_id': 61439, 'author_profile': 'https://Stackoverflow.com/users/61439', 'pm_score': 0, 'selected': False, 'text': '<p>Also, get to know the "Layer Comps" feature. I use this for changing button states.</p>\n\n<ol>\n<li>Create layer comps for normal, hover, and active.</li>\n<li>In each of these, set up the effects/color overlays and visible layers which belong with that state.</li>\n<li>Save for web: go to a different folder for each state, unless it\'s easier to rename each slice (otherwise your hover button slices will overwrite your regular slices).</li>\n</ol>\n'}]
['https://Stackoverflow.com/questions/19487', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5/']