Objective

Main objective of this blog post is to give you an idea to beginner in web design.

 

 

Step 1 Introduction

Before we start PSD to HTML we need to peek a little into Photoshop. So let’s take a look on Photoshop. You need basic knowledge about Photoshop like following features

 

Step 2 Layer structure

  • This feature is very important because we can separate different parts as layers from an image. For example, if you need logo from a PSD file then you need to have good knowledge about layer structure.
  • We can show/hide a layered image using layers as shown in the following image, so that we can get proper images from PSD file.
    layers
 

Step 3 Cut/Copy Images

  • This is very also very useful feature. If we want any particular image then we need to cut and copy that image without any background or any other image.
  • So, if you want only logo then you need to hide background and any other image present there and then hide that from layers section. We need to hide all the layers till we can see the transparent background of logo.
  • Use following steps to Cut/Copy Image from Photoshop
 

3.1 Use following steps to Cut/Copy Image from Photoshop

  1. First hide all background layers of logo.
  2. To cut image, use “Marquee Tool”.
  3. Select “Marquee Tool”.
    marquee-tool
  4. Select Logo using Marquee Tool as shown in following image.
    select-logo
  5. Now press “Ctrl+Shift+c” (this is for copy command) and then press “Ctrl+n” (to open new page) then you would see following screen. Now press “OK”.
    copy
  6. Then you can see screen like following image.
    new-image
  7. Press “Ctrl+v” (for paste command) and then hide background layer.
    paste-logo
  8. Now, press “Ctrl+Alt+Shift+s” (Save as web Command). Then you would see following window.
    save-for-web
  9. Now select PNG format from dropdown menu at Right-Top corner. And then press "SAVE".
  10. That’s it. You can save all other images with the same process.

We now know how to cut images from Photoshop. So, 25% of our work is now completed. Now let’s understand how to implement it into HTML.

 

Step 4 Now let’s understand how to implement it into HTML

  1. Cut/Copy all images from PSD file as shown above steps which you think that’s needed into the HTML.
  2. You need to follow following structure to make proper HTML code.
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Creatif</title>
        <link href="style.css" rel="stylesheet" type="text/css" />
    </head>
     
    <body>
       
     <div id="main">
     <div class="container">
                   <div id="header">
                           Logo / Menu
                   </div>
              
             <div id="fratured_content">
                           Featured Content
                   </div>
               
    <div id="block_content">
                           Content
                   </div>
           </div>
       </div>
     
        <div id="footer">
            <div class="container">
               Footer Stuff Goes in Here
           </div>
       </div>
    </body>
    </html>
  3. Now as per structure, put background image or Color into HTML using CSS as per PSD requirements.
  4. As you can see in above structure, I have divided it into different blocks so I can divide the PSD as per those blocks. Now, you can easily understand that you first need to make “header” block .And generally header block includes Navigation links and Logos, Contact number etc.
  5. Then at the end of the structure you can see “Footer” block. That also includes links of navigations, logos, contact info etc.
  6. Now, Between Header and Footer all other remaining content is included that we need to divide as per block structure. In this main content block, we would divide different blocks as per contents. That depends on how you want to arrange those contents (by following PSD structure).
  7. Now, you need to create “style.css” file which is used to put all CSS (Cascading Style Sheets) which we need to attach with HTML. Because HTML is nothing without CSS.
  8. Now, Observe PSD properly and divide it into different blocks and put all contents or images as per divided block while following the structure. It will make better conversion from PSD to HTML
  9. Suppose I have following PSD. Now I would be converting it to HTML.
    psd-file

    So I will divide this PSD into different blocks as shown in following images.
     
    psd-in-different-block-image

I hope you find this blog very helpful while converting your PSD to HTML. Let me know in comment if you have any questions regarding PSD to HTML. I will reply you ASAP.

Got an Idea of Web Development? What are you still waiting for? Contact us now and see the Idea live soon. Our company has been named as one of the best Web Development Company in India.

I am passionate Web Designer. Love to develop website with HTML 5 and CSS 3. And also like to share tips & tricks about latest web trends

face mask Belial The Demon Headgear Pocket Staff Magic