{"id":19876,"date":"2020-09-13T20:06:37","date_gmt":"2020-09-13T13:06:37","guid":{"rendered":"http:\/\/www.caodangvietmy.edu.vn\/?p=19876"},"modified":"2020-09-16T21:38:01","modified_gmt":"2020-09-16T14:38:01","slug":"cach-chuyen-psd-sang-html","status":"publish","type":"post","link":"https:\/\/www.caodangvietmy.edu.vn\/en\/cach-chuyen-psd-sang-html\/","title":{"rendered":"An overview of how to convert PSD to HTML when designing a website."},"content":{"rendered":"<p><i><span style=\"font-weight: 400;\">Design files created using specialized software cannot automatically convert into websites or landing pages that display and allow interaction in a browser. In that case, you need to know... <\/span><\/i><a href=\"https:\/\/www.caodangvietmy.edu.vn\/en\/cach-chuyen-psd-sang-html\/\"><b><i>How to convert PSD to HTML when designing a website.<\/i><\/b><\/a><i><span style=\"font-weight: 400;\">. This job requires a considerable amount of programming knowledge, HTML, CSS, etc. Once you understand the basic steps and their significance, you&#039;ll see that even the most complex designs can be transformed into websites.<\/span><\/i><\/p>\n<figure id=\"attachment_20626\" aria-describedby=\"caption-attachment-20626\" style=\"width: 500px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-20626\" src=\"http:\/\/www.caodangvietmy.edu.vn\/wp-content\/uploads\/2020\/09\/cach-chuyen-psd-sang-html.jpg\" alt=\"C\u00e1ch chuy\u1ec3n PSD sang HTML\" width=\"500\" height=\"281\" srcset=\"https:\/\/www.caodangvietmy.edu.vn\/wp-content\/uploads\/2020\/09\/cach-chuyen-psd-sang-html.jpg 500w, https:\/\/www.caodangvietmy.edu.vn\/wp-content\/uploads\/2020\/09\/cach-chuyen-psd-sang-html-430x242.jpg 430w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><figcaption id=\"caption-attachment-20626\" class=\"wp-caption-text\"><em>How to convert PSD to HTML in 6 simple steps<\/em><\/figcaption><\/figure>\n<h2><b>Step 1: Analyze the design in the PSD file.<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">A website interface design file includes images, text, icons, etc. Before actually starting work that requires web knowledge, you need to analyze the design in the file to identify the components of the website, visualize its functionality, and plan the next steps.<\/span><\/p>\n<figure id=\"attachment_19877\" aria-describedby=\"caption-attachment-19877\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19877\" src=\"http:\/\/www.caodangvietmy.edu.vn\/wp-content\/uploads\/2020\/07\/khai-quat-cach-chuyen-psd-sang-html-khi-thiet-ke-website-1.jpg\" alt=\"\" width=\"600\" height=\"348\" srcset=\"https:\/\/www.caodangvietmy.edu.vn\/wp-content\/uploads\/2020\/07\/khai-quat-cach-chuyen-psd-sang-html-khi-thiet-ke-website-1.jpg 600w, https:\/\/www.caodangvietmy.edu.vn\/wp-content\/uploads\/2020\/07\/khai-quat-cach-chuyen-psd-sang-html-khi-thiet-ke-website-1-430x249.jpg 430w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-19877\" class=\"wp-caption-text\">Design analysis is the first step when converting PSD to HTML.<\/figcaption><\/figure>\n<p><span style=\"font-weight: 400;\">Let&#039;s start by opening the PSD file using <a href=\"https:\/\/www.adobe.com\/products\/photoshop.html\" target=\"_blank\" rel=\"noopener nofollow\">Photoshop<\/a> (If the design file is in a different format, please use a different, corresponding software to open it!). Some key points to determine after this process:<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Colors used in the website: <\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Determine the main background color, link color, text color, menu color, etc.<\/span><\/p>\n<h3>Font:<\/h3>\n<p><span style=\"font-weight: 400;\">Check which font is being used for each text box in your design. In Photoshop, select the Text tool (T), click on the text area in your design until a blinking cursor appears, and then identify the exact font name and size.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This design uses multiple fonts and sizes. It also incorporates bold, italic, and underline formatting, and features unique text elements in menus and buttons.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Identifying the font name isn&#039;t enough; it&#039;s crucial to ensure that the font will display correctly in the browser. This task is quite familiar to those with experience and knowledge of HTML and programming.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you&#039;re still unsure, search for the font name on Google Fonts. If the font you need is available on Google Fonts, you can rest assured that the font won&#039;t be corrupted on the web.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you can&#039;t find a font sample, you can look for alternatives or find the otf or ttf file of the font you need online, download it, save it in your font folder, and configure the CSS to point to the desired font file.<\/span><\/p>\n<h3>Image:<\/h3>\n<p><span style=\"font-weight: 400;\">Identify the image-based areas in the design and cut them into separate smaller files.<\/span><\/p>\n<h3>Icon:<\/h3>\n<p><span style=\"font-weight: 400;\">If you already have the icons on your computer, you don&#039;t need to search for or crop them. If the icons are custom-designed, you can crop them into a small image and save it.<\/span><\/p>\n<h3>Website size:<\/h3>\n<p><span style=\"font-weight: 400;\">Determine the length and width (width, height) of each part of the banner, top menu, about block, and many other display elements of the website or landing page.<\/span><\/p>\n<h3>Spacing:<\/h3>\n<p><span style=\"font-weight: 400;\">Check the spacing (margin, padding) between each element. Don&#039;t forget to check the spacing between text, line spacing (line-height), and paragraph alignment requirements, etc.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">By identifying these basic elements and creating a checklist, you&#039;ll ensure you don&#039;t miss any design details, and the finished website will be closer to the initial design.<\/span><\/p>\n<h2><b>Step 2: Structure the folders for the website.<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">You organize the components identified in step 1 into separate folders to ensure there are no duplicates or missing elements and to make them easy to name when building the HTML.<\/span><\/p>\n<figure id=\"attachment_19878\" aria-describedby=\"caption-attachment-19878\" style=\"width: 537px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19878\" src=\"http:\/\/www.caodangvietmy.edu.vn\/wp-content\/uploads\/2020\/07\/khai-quat-cach-chuyen-psd-sang-html-khi-thiet-ke-website-2.jpg\" alt=\"\" width=\"537\" height=\"451\" srcset=\"https:\/\/www.caodangvietmy.edu.vn\/wp-content\/uploads\/2020\/07\/khai-quat-cach-chuyen-psd-sang-html-khi-thiet-ke-website-2.jpg 537w, https:\/\/www.caodangvietmy.edu.vn\/wp-content\/uploads\/2020\/07\/khai-quat-cach-chuyen-psd-sang-html-khi-thiet-ke-website-2-310x260.jpg 310w\" sizes=\"(max-width: 537px) 100vw, 537px\" \/><figcaption id=\"caption-attachment-19878\" class=\"wp-caption-text\">Some files and folders need to be created.<\/figcaption><\/figure>\n<h3><span style=\"font-weight: 400;\">Typically, four files\/folders need to be created:<\/span><\/h3>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">1 file: index.html<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">1. Create a `styles` folder (you can name it `css`) to store the .css files.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">1 folder called &quot;images&quot; is used to store images related to the website.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">A 1. Fonts folder is used to store the fonts used on the website.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Additionally, if your website or landing page uses JavaScript code, remember to create a separate `js` folder to store the .js files you use.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Several other subfolders can be created:<\/span><\/h3>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The reset.css file contains content that defines the default reset process displayed in browsers.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The fontawesome.css file is for using fonts and icons from fontawesome (if available).<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The style.css file is where the HTML interface code will be written later.<\/span><\/li>\n<\/ul>\n<h2><b>Step 3: Code the HTML and CSS for the website.<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">There are two schools of thought when it comes to doing this work.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">School of thought 1: Code sequentially from top to bottom, following the display order and formatting the CSS only once.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">School of thought 2: Divide the web components into blocks and code each block with its own HTML and CSS. For each block, you can make it responsive to accommodate different display sizes. Continue working with each block in this way.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Everyone has a different approach and coding style, so you should choose and implement what works best for you.<\/span><\/p>\n<figure id=\"attachment_19879\" aria-describedby=\"caption-attachment-19879\" style=\"width: 593px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19879\" src=\"http:\/\/www.caodangvietmy.edu.vn\/wp-content\/uploads\/2020\/07\/khai-quat-cach-chuyen-psd-sang-html-khi-thiet-ke-website-3.jpg\" alt=\"\" width=\"593\" height=\"361\" srcset=\"https:\/\/www.caodangvietmy.edu.vn\/wp-content\/uploads\/2020\/07\/khai-quat-cach-chuyen-psd-sang-html-khi-thiet-ke-website-3.jpg 593w, https:\/\/www.caodangvietmy.edu.vn\/wp-content\/uploads\/2020\/07\/khai-quat-cach-chuyen-psd-sang-html-khi-thiet-ke-website-3-427x260.jpg 427w\" sizes=\"(max-width: 593px) 100vw, 593px\" \/><figcaption id=\"caption-attachment-19879\" class=\"wp-caption-text\">Focus on programming<\/figcaption><\/figure>\n<h2><b>Step 4: Pay attention to some requirements<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Determine your preferred display interface: Does your website\/landing page prioritize displaying on smartphones or desktops? You need to determine this beforehand to optimize your code and user experience.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Browser compatibility: The browser that is expected to be used to display the website also affects the coding process. For example, IE does not support CSS Grid and requires the use of the float property\u2026 Pay attention to this issue as well to avoid website errors.<\/span><\/p>\n<h2><b>Step 5: Test the results and fix errors.<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Test the interface on different browsers, screen sizes, and devices. The simplest way is to resize the web browser screen to see if the interface looks good and transitions as desired. Another way is to use emulator mode on Chrome to test it.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Remember to test with multiple browsers to ensure you detect all errors. Then, continue fixing the errors and testing until you are satisfied.<\/span><\/p>\n<h2><b>Step 6: Completion<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">The final step is to show the results to everyone for feedback and further refinement.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>How to convert PSD to HTML when designing a website.<\/strong> The details of each item and section of the code, and how to implement them, are truly complex. However, by understanding the sequence of steps above, you will almost certainly not miss any components in the initial design. Good luck and may you create websites and landing pages that you&#039;ll love!<\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>Design files created using specialized software cannot automatically convert into websites or landing pages that display and allow interaction in a browser. Therefore, you need to know how to convert PSD to HTML when designing a website. This task requires a considerable amount of programming knowledge\u2026<\/p>","protected":false},"author":81,"featured_media":19877,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[627],"tags":[],"_links":{"self":[{"href":"https:\/\/www.caodangvietmy.edu.vn\/en\/wp-json\/wp\/v2\/posts\/19876"}],"collection":[{"href":"https:\/\/www.caodangvietmy.edu.vn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.caodangvietmy.edu.vn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.caodangvietmy.edu.vn\/en\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/www.caodangvietmy.edu.vn\/en\/wp-json\/wp\/v2\/comments?post=19876"}],"version-history":[{"count":0,"href":"https:\/\/www.caodangvietmy.edu.vn\/en\/wp-json\/wp\/v2\/posts\/19876\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.caodangvietmy.edu.vn\/en\/wp-json\/wp\/v2\/media\/19877"}],"wp:attachment":[{"href":"https:\/\/www.caodangvietmy.edu.vn\/en\/wp-json\/wp\/v2\/media?parent=19876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.caodangvietmy.edu.vn\/en\/wp-json\/wp\/v2\/categories?post=19876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.caodangvietmy.edu.vn\/en\/wp-json\/wp\/v2\/tags?post=19876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}