{"id":81067,"date":"2023-03-17T14:55:05","date_gmt":"2023-03-17T14:55:05","guid":{"rendered":"\/tutorials\/?p=81067"},"modified":"2026-03-09T19:18:06","modified_gmt":"2026-03-09T19:18:06","slug":"making-website-with-html","status":"publish","type":"post","link":"\/ng\/tutorials\/making-website-with-html","title":{"rendered":"Making a Website With HTML in 8 Simple Steps + Post Development Suggestions"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>Building a website nowadays is simple and doesn&rsquo;t require coding knowledge. Platforms like Hostinger website maker offer a simple visual interface and drag-and-drop features to ease the development process.<\/p><p>However, you may want to build websites from scratch with Hypertext Markup Language (HTML). While it is more difficult, HTML websites are more flexible and faster as they require fewer resources to run.<\/p><p>To help you get started, this article will explain the steps in making a website with HTML. We will also provide you with post-development practices to improve your HTML site&rsquo;s appearance and functionality.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Website-Launch-Checklist-EN.pdf\">Download website launch checklist<\/a><\/p><p>\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-make-a-website-with-html\">How to Make a Website With HTML<\/h2><p>This section will provide step-by-step instructions to code a site with HTML. Before proceeding, refer to our <a href=\"\/ng\/tutorials\/html-cheat-sheet\">HTML cheat sheet<\/a> if you are unfamiliar with the standard markup language. Feel free to check out our guide on <a href=\"\/ng\/tutorials\/basics-of-building-a-website\">the basics of building a site<\/a> to get more familiar.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-pick-an-html-code-editor\">1. Pick an HTML Code Editor<\/h3><p>A code editor is software used to write your website. While you can create an HTML page with a default text editor like Notepad, it lacks features that help simplify the development process, such as:<\/p><ul class=\"wp-block-list\">\n<li><strong>Syntax highlighting <\/strong>&ndash;<strong> <\/strong>marks HTML tags in different colors based on their categories. This makes the code structure easier to read and understand.<\/li>\n\n\n\n<li><strong>Auto-completion <\/strong>&ndash; automatically suggests HTML attributes, tags, and elements based on the previous value to speed up the coding process. <strong><\/strong><\/li>\n\n\n\n<li><strong>Error detection <\/strong>&ndash; highlights syntax errors, allowing a web developer to quickly notice and fix them.<\/li>\n\n\n\n<li><strong>Integration <\/strong>&ndash; some code editors integrate with plugins, Git, and FTP clients to make the deployment process more efficient.<\/li>\n\n\n\n<li><strong>Live preview<\/strong> &ndash; instead of opening HTML files manually on browsers, you can install a plugin to get a live preview of the site.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/Live-preview-feature-in-Visual-Studio-Code.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"751\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/Live-preview-feature-in-Visual-Studio-Code.png\/public\" alt=\"Live preview feature in Visual Studio Code\" class=\"wp-image-81069\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/Live-preview-feature-in-Visual-Studio-Code.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/Live-preview-feature-in-Visual-Studio-Code.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/Live-preview-feature-in-Visual-Studio-Code.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/Live-preview-feature-in-Visual-Studio-Code.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/Live-preview-feature-in-Visual-Studio-Code.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><\/a><\/figure><\/div><p>Since there are many options, we have listed some of the <a href=\"\/ng\/tutorials\/best-html-editors\">best HTML code editors<\/a> to help you find one that fits your needs:<\/p><ul class=\"wp-block-list\">\n<li><strong>Notepad++ <\/strong>&ndash; a free, lightweight text editor with added features for coding and plugin support.<\/li>\n\n\n\n<li><strong>Atom <\/strong>&ndash; an open-source HTML editor with a live website preview feature and extensive markup and scripting language compatibility.<\/li>\n\n\n\n<li><strong>Visual Studio Code (VSCode) <\/strong>&ndash; a popular tool for web development with a comprehensive extension library to expand its functionalities.<\/li>\n<\/ul><h3 class=\"wp-block-heading\" id=\"h-2-plan-the-site-layout\">2. Plan the Site Layout<\/h3><p>Creating a layout plan allows you to better visualize your website&rsquo;s look. You can also use it as a checklist to track what elements to include in your site.<\/p><p>In addition, a layout plan helps you determine your site&rsquo;s usability and navigation, which affect user experience. Some elements to consider when planning include the sites&rsquo; header, footer, and navigation.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/A-rough-website-layout-plan.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"580\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-rough-website-layout-plan.png\/public\" alt=\"A rough website layout plan\" class=\"wp-image-81070\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-rough-website-layout-plan.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-rough-website-layout-plan.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-rough-website-layout-plan.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-rough-website-layout-plan.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-rough-website-layout-plan.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><\/a><\/figure><\/div><p>You can use pen and paper or web design software such as <a href=\"https:\/\/www.figma.com\/\">Figma<\/a> to design a website layout. It doesn&rsquo;t have to be detailed as long as it roughly represents the look and feel of your site.<\/p><h3 class=\"wp-block-heading\" id=\"h-3-write-the-html-code\">3. Write the HTML Code<\/h3><p>Once the tool and layout plan is ready, you can start writing your site&rsquo;s code. The steps may vary depending on your code editor, but the general idea is similar.<\/p><p>In this tutorial, we will show you how to do it using <strong>VSCode<\/strong>:<\/p><ol class=\"wp-block-list\">\n<li>Create a new folder on your computer. It will be the directory for all of your site&rsquo;s files.<\/li>\n\n\n\n<li>Open VSCode &rarr; <strong>File<\/strong> &rarr; <strong>Open Folder<\/strong>.<\/li>\n\n\n\n<li>Locate the new folder and click <strong>Select Folder<\/strong>.<\/li>\n\n\n\n<li>Select <strong>New File<\/strong>. Name the file <strong>index.html<\/strong> and press <strong>enter<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Create File <\/strong>to confirm.<\/li>\n\n\n\n<li>Once prompted to the <strong>index.html<\/strong> editor tab, enter the following basic HTML document structure:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n   &lt;head&gt;\n      &lt;title&gt; &lt;\/title&gt;\n   &lt;\/head&gt;\n   &lt;body&gt;\n   &lt;\/body&gt;\n&lt;\/html&gt;<\/pre><p>To help you understand the code, here&rsquo;s an explanation of each tag:<\/p><ul class=\"wp-block-list\">\n<li><strong>&lt;!DOCTYPE html&gt; <\/strong>&ndash; tells web browsers that the website is an HTML page.<\/li>\n\n\n\n<li><strong>&lt;\/html&gt;<\/strong> &ndash; the HTML document opening tag indicating where the code starts.<\/li>\n\n\n\n<li><strong>&lt;head&gt; <\/strong>&ndash; a tag containing the site&rsquo;s metadata.<\/li>\n\n\n\n<li><strong>&lt;title&gt;<\/strong> &ndash; defines the text shown on the browser tab when visiting the web page.<\/li>\n\n\n\n<li><strong>&lt;body&gt;<\/strong> &ndash; contains all visible content on the web page.<\/li>\n<\/ul><p><div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>Learn the difference between making a website using <a href=\"\/ng\/tutorials\/wordpress-vs-html\">WordPress vs HTML<\/a> to know which technique suits you best.<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-4-create-elements-in-the-layout\">4. Create Elements in the Layout<\/h3><p>Add HTML code into the <strong>index.html <\/strong>file to create the elements of your planned layout. Depending on your website design, you will need different <a href=\"https:\/\/www.w3schools.com\/html\/html5_semantic_elements.asp\">HTML semantic elements<\/a>.<\/p><p>These elements will separate your site into multiple sections and become the containers for the content. Here are the tags we will use:<\/p><ul class=\"wp-block-list\">\n<li><strong>&lt;header&gt; <\/strong>&ndash; container for introductory content or navigation.<\/li>\n\n\n\n<li><strong>&lt;main&gt; <\/strong>&ndash; represents the primary content of a web page.<\/li>\n\n\n\n<li><strong>&lt;div&gt; <\/strong>&ndash; defines a section in an HTML document.<\/li>\n\n\n\n<li><strong>&lt;footer&gt; <\/strong>&ndash; contains the content displayed at the bottom of your website.<\/li>\n<\/ul><p>Put these elements within the <strong>&lt;body&gt;&lt;\/body&gt; <\/strong>tags in your <strong>index.html <\/strong>file&rsquo;s code. Ensure to close each element with a closing tag, or your code won&rsquo;t work.<\/p><p>Here&rsquo;s how the complete code looks:<\/p><pre class=\"wp-block-preformatted\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n   &lt;head&gt;\n      &lt;title&gt;Personal Blog&lt;\/title&gt;\n   &lt;\/head&gt; \n   &lt;body&gt;\n      &lt;header&gt;   \n\n      &lt;\/header&gt;\n      &lt;main&gt;\n         &lt;div class=&rdquo;row\"&gt;\n            &lt;div class=&rdquo;post-text-box&rdquo;&gt;\n\n            &lt;\/div&gt;\n            &lt;div class=&rdquo;profile&rdquo;&gt;\n\n            &lt;\/div&gt;  \n         &lt;\/div&gt;        \n      &lt;\/main&gt;\n      &lt;footer&gt;\n            \n      &lt;\/footer&gt;\n    &lt;\/body&gt;\n&lt;\/html&gt;<\/pre><h3 class=\"wp-block-heading\" id=\"h-5-add-the-html-content\">5. Add the HTML Content<\/h3><p>After the layout is ready, start filling them with your site&rsquo;s content, like text, images, hyperlinks, or videos. If the content is not ready, use dummy content as a placeholder and replace it later.<\/p><p>Here are some tags we will use to add the website content:<\/p><ul class=\"wp-block-list\">\n<li><strong>&lt;h1&gt; and &lt;p&gt; <\/strong>&ndash; contain heading and paragraph text. Use <strong>&lt;br&gt;<\/strong> tag to create a line break if the text is too long.<\/li>\n\n\n\n<li><strong>&lt;nav&gt; and &lt;a&gt;<\/strong> &ndash; specify the navigation bar and its anchor element. Use the <strong>href<\/strong> attribute to specify the anchor&rsquo;s linked URL.<\/li>\n\n\n\n<li><strong>&lt;img&gt;<\/strong> &ndash; container for the image element. It contains the <strong>img src <\/strong>attribute, specifying the link or name of the image file.<\/li>\n<\/ul><p><div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>The <b>img<\/b> tag also has an optional <strong>alt<\/strong> attribute. It describes the image in case the file doesn&rsquo;t load.<\/p>\n                <\/div>\n\n\n\n<\/p><p>Here&rsquo;s what the code looks like:<\/p><pre class=\"wp-block-preformatted\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n   &lt;head&gt;\n      &lt;title&gt;Personal Blog&lt;\/title&gt;\n      &lt;\/head&gt; \n   &lt;body&gt;\n      &lt;header&gt;   \n      &lt;h1&gt;Your Personal Blog&lt;\/h1&gt;\n      &lt;nav&gt;\n         &lt;a href=&rdquo;domain.tld\/home&rdquo;&gt;Home&lt;\/a&gt;\n         &lt;a href=&rdquo;domain.tld\/blog&rdquo;&gt;Blog&lt;\/a&gt;\n         &lt;a href=&rdquo;domain.tld\/about&rdquo;&gt;About&lt;\/a&gt;\n      &lt;\/nav&gt;\n      &lt;\/header&gt;\n      &lt;main&gt;\n         &lt;div class=&rdquo;row\"&gt;\n            &lt;div class=&rdquo;post-text-box&rdquo;&gt;\n               &lt;h1&gt;Newest Post&lt;\/h1&gt;\n               &lt;section&gt;\n                  &lt;h1&gt;First Post&lt;\/h1&gt;\n                  &lt;p&gt;The first post&rsquo;s content&lt;\/p&gt;\n               &lt;\/section&gt;\n            &lt;\/div&gt;\n            &lt;div class=&rdquo;profile&rdquo;&gt;\n               &lt;h1&gt;About Me&lt;\/h1&gt;\n               &lt;img src=&rdquo;profile-picture.png&rdquo;&gt;\n               &lt;p&gt;About the author&lt;\/p&gt;\n            &lt;\/div&gt;  \n         &lt;\/div&gt;        \n      &lt;\/main&gt;\n      &lt;footer&gt;\n         &lt;a href=&rdquo;twitter.com\/author&rdquo;&gt;Twitter&lt;\/a&gt;\n         &lt;a href=&rdquo;facebook.com\/author&rdquo;&gt;Facebook&lt;\/a&gt;\n         &lt;a href=&rdquo;instagram.com\/author&rdquo;&gt;Instagram&lt;\/a&gt;\n      &lt;\/footer&gt;\n    &lt;\/body&gt;\n&lt;\/html&gt;<\/pre><p>After adding the code, your HTML website will have an appearance. Here&rsquo;s how it looks:<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-written-only-with-HTML.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"623\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-written-only-with-HTML.png\/public\" alt=\"A website written only with HTML\n\" class=\"wp-image-81072\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-written-only-with-HTML.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-written-only-with-HTML.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-written-only-with-HTML.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-written-only-with-HTML.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-written-only-with-HTML.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-6-include-layout-css\">6. Include Layout CSS<\/h3><p>Since HTML only lets you create the website&rsquo;s structure and add basic content, use <a href=\"\/ng\/tutorials\/what-is-css\">Cascading Style Sheets (CSS)<\/a> to change its layout. CSS is a language that defines the style of your HTML document.<\/p><p>To do this, create a <strong>style.css<\/strong> file and <a href=\"\/ng\/tutorials\/website\/how-to-link-a-stylesheet-css-file-to-your-html-file\">link the stylesheet to the HTML document<\/a> by adding the following code between the <strong>&lt;head&gt; <\/strong>opening and closing tags of<strong> index.html:<\/strong><\/p><pre class=\"wp-block-preformatted\">&lt;link rel=\"stylesheet\" href=\"style.css\"&gt;<\/pre><p>To make the two-column website layout, we will use the <strong>flex<\/strong> property. It arranges HTML elements using flexible containers, allowing them to adjust according to users&rsquo; screen size.<\/p><p>Here is what the complete code looks like:<\/p><pre class=\"wp-block-preformatted\">\/*header style*\/\nheader {\n   text-align: center; \n   padding: 20px;\n}\n\/*navigation menu style*\/\nnav {\n   text-align: center;\n   word-spacing: 30px;\n   Padding: 10px;\n}\n\/*creating the two-column layout*\/\n*{\n   box-sizing: border-box;\n}\n.row {\n   display: flex;\n   flex-wrap: wrap;\n}\n.post-text-box {\n   flex: 70%;\n   padding: 20px;\n}\n.profile {\n   flex: 70%;\n   padding: 20px;\n}\n\/*profile image and heading style*\/\n.profile img {\n   width: 120px;\n   display: block;\n   margin-left: 0;\n   margin-right: 0;\n}\n.profile h1 {\n   text-align: center;\n}<\/pre><p>After you add the code snippet to your CSS file, here&rsquo;s how the website will look:<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-with-CSS-layout.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"588\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-with-CSS-layout.png\/public\" alt=\"A website with CSS layout\n\" class=\"wp-image-81073\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-with-CSS-layout.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-with-CSS-layout.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-with-CSS-layout.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-with-CSS-layout.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/A-website-with-CSS-layout.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><\/a><\/figure><p><div class=\"protip\">\n                    <h4 class=\"title\">Suggested Reading<\/h4>\n                    <p>Learn the <a href=\"\/ng\/tutorials\/difference-between-inline-external-and-internal-css\">different types of CSS, including inline, external, and internal<\/a>.<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-7-customize-your-site\">7. Customize Your Site<\/h3><p>In addition to changing the layout, use CSS to customize other visual aspects of your website. For example, you can change the font family and background image.<\/p><p>To change your website&rsquo;s appearance, add the CSS properties in the element you want to customize. For instance, here is the code to style the background color and text elements of the navigation menu bar:<\/p><pre class=\"wp-block-preformatted\">\/*navigation bar style*\/\nnav {\n   text-align: center;\n   word-spacing: 30px;\n   padding: 10px;\n   background-color: #f5f5dc\n   font-family: Helvetica;\n   \n}\n\/*navigation bar button style*\/\nnav a {\n   color: #000000;\n   text-decoration: none;\n   font-size: larger;\n}<\/pre><p>After adding CSS styling for every element, here is how the website looks:<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/An-HTML-website-with-CSS-layout-and-styling.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"572\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/An-HTML-website-with-CSS-layout-and-styling.png\/public\" alt=\"An HTML website with CSS layout and styling\n\" class=\"wp-image-81074\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/An-HTML-website-with-CSS-layout-and-styling.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/An-HTML-website-with-CSS-layout-and-styling.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/An-HTML-website-with-CSS-layout-and-styling.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/An-HTML-website-with-CSS-layout-and-styling.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/An-HTML-website-with-CSS-layout-and-styling.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-8-choose-a-hosting-platform-and-publish\">8. Choose a Hosting Platform and Publish<\/h3><p>Once you have all the website files and assets ready, it&rsquo;s time to publish them. This step requires hosting, which you can obtain from a hosting provider. Check out our article for tips on <a href=\"\/ng\/tutorials\/how-to-choose-a-web-hosting-provider\">finding the best web host<\/a>.<\/p><p><a href=\"\/ng\/web-hosting\">Hostinger&rsquo;s web hosting plans<\/a>, starting at <strong>\u20a62900.00<\/strong>, include a free domain, SSL certificate, and automated backups. The lowest-tier plan offers <strong>25 GB SSD storage<\/strong> to host up to 25 websites, providing ample space for future web development projects.<\/p><p>Standard security measures, such as a web application firewall, malware scanner, Cloudflare DNS firewall, and <a href=\"\/ng\/tutorials\/is-domain-privacy-worth-it\">WHOIS Privacy Protection<\/a>, safeguard your HTML website from malicious attacks. Users running on <strong>Business Web Hosting<\/strong> and above plans can also leverage our in-house DNS solution for enhanced performance.<\/p><p>Check out our <a href=\"\/ng\/tutorials\/how-to-choose-web-hosting-plan\">hosting plan guide<\/a> to find the perfect fit for your website. You can try our hosting services risk-free with our <strong>30-day money-back guarantee<\/strong>.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-full\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-web-hosting\" href=\"\/ng\/web-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/public\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>After obtaining hosting, use either a file manager or an <a href=\"\/ng\/tutorials\/what-is-ftp\">FTP<\/a> client to upload your website to the internet.<\/p><p>Here&rsquo;s how to upload your website files with Hostinger&rsquo;s File Manager:<\/p><ol class=\"wp-block-list\">\n<li>Navigate to <strong>Files <\/strong>&rarr; <strong>File Manager<\/strong> from hPanel.<\/li>\n\n\n\n<li>Open <strong>public_html<\/strong> and upload the website archive file from your computer to the root directory.<\/li>\n\n\n\n<li>Right-click the uploaded file and select <strong>Extract<\/strong>.<\/li>\n<\/ol><p>The file manager method is ideal for uploading website files under <strong>100GB<\/strong>. Refer to our article on <a href=\"\/ng\/tutorials\/website\/how-to-upload-your-website\">how to upload a website<\/a> for assistance with either method.<\/p><h2 class=\"wp-block-heading\" id=\"h-tips-on-optimizing-an-html-website\">Tips on Optimizing an HTML Website<\/h2><p>This section will explain the steps to take after creating a website using HTML and CSS. Follow them to enhance your site&rsquo;s accessibility and functionality.<\/p><p><strong>Add a Dropdown Bar for Better Navigation<\/strong><\/p><p>Complex websites with multiple pages have many navigation buttons, links, and texts. You can <a href=\"\/ng\/tutorials\/how-to-create-simple-css-dropdown-menu\">create a simple dropdown menu using CSS<\/a><strong> <\/strong>to group these elements.<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/Screenshot-2023-03-17-at-17.02.56.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"409\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/Screenshot-2023-03-17-at-17.02.56.png\/public\" alt=\"A CSS dropdown menu bar\n\" class=\"wp-image-81075\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/Screenshot-2023-03-17-at-17.02.56.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/Screenshot-2023-03-17-at-17.02.56.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/Screenshot-2023-03-17-at-17.02.56.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/Screenshot-2023-03-17-at-17.02.56.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Users can expand the navigation bar to access the elements. It helps reduce clutter and improves the website&rsquo;s usability for users with smaller screens.<\/p><p><strong>Improve the Site Design With Advanced CSS<\/strong><\/p><p>CSS lets you do advanced customization to enhance your site&rsquo;s design for a better user experience. For example, enable scroll snapping, text animation, zoom on hover animation, and gradients.<\/p><p>In addition, you can build a responsive website with media queries, CSS rules, and flexboxes. The flexbox layout automatically adapts your site to the client&rsquo;s screen size.<\/p><p><strong>Make the Site More Interactive With JavaScript<\/strong><\/p><p>JavaScript is a scripting language that lets you create interactive and dynamic website content. For example, enable animation, add countdowns, and include buttons, forms, or menus.<\/p><p>These features make your website more interesting and immersive, improving user experience. The steps to <a href=\"\/ng\/tutorials\/add-javascript-to-html\">add JavaScript to your HTML<\/a> website are similar to those for CSS. You can use a separate file or write it directly into the current code.<\/p><h2 class=\"wp-block-heading\" id=\"h-do-i-need-to-learn-html-to-build-a-website\">Do I Need to Learn HTML to Build a Website?<\/h2><p>Users may not have the time or commitment to learn HTML for web development. Fortunately, some platforms let them create a functional website without writing code.<\/p><p>A <a href=\"\/ng\/website-builder\">website builder<\/a> like Hostinger is an excellent option for beginners. It has a visual user interface and drag-and-drop editor, which makes customization easy.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Suggested Reading<\/h4>\n                    <p> To help you decide which method suits you better,&nbsp; read our tutorial to learn more about the benefits and downsides of using a <a href=\"\/ng\/tutorials\/website-builder-vs-coding\">website builder vs coding<\/a>. <\/p>\n                <\/div>\n\n\n\n<\/p><p>Maintaining a builder-based website is also simpler and less prone to error as you don&rsquo;t need to manually update its source code. Simply select the elements you want to edit and apply the changes directly on one screen.<\/p><p>Since Hostinger Website Builder is included in all our hosting plans, you don&rsquo;t need to purchase the service separately. It starts from <strong>$2.99\/month <\/strong>and is upgradeable to higher-performance hosting services.<\/p><?xml encoding=\"utf-8\" ?><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-website-builder\" href=\"\/ng\/website-builder\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/public\" alt=\"\" class=\"wp-image-100488\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Instead of using website builders, you can code a website from scratch with HTML. Although more complicated to build, HTML websites are more resource-efficient and flexible as you can edit the source code.<\/p><p>In this article, we have explained how to code a website using HTML and CSS in eight steps:<\/p><ol class=\"wp-block-list\">\n<li><strong>Pick an HTML editor <\/strong>&ndash; choose the program for writing and editing your website&rsquo;s code, like VSCode.<\/li>\n\n\n\n<li><strong>Plan the site layout <\/strong>&ndash; make a mockup of the website&rsquo;s layout using a program like Adobe XD or a pen and paper.<\/li>\n\n\n\n<li><strong>Write the HTML code <\/strong>&ndash; create an <strong>index.html<\/strong> file and add HTML document structure tags.<\/li>\n\n\n\n<li><strong>Create the layout elements <\/strong>&ndash; separate your website into multiple sections based on the layout by adding tags to the HTML file.<\/li>\n\n\n\n<li><strong>Add the HTML content <\/strong>&ndash; add the heading title, body text, and images into each section.<\/li>\n\n\n\n<li><strong>Include layout CSS <\/strong>&ndash; create a <strong>style.css <\/strong>file and add CSS code to change the column position, text alignment, and elements padding.<\/li>\n\n\n\n<li><strong>Customize your site <\/strong>&ndash; use CSS style attributes to customize the website&rsquo;s background color, font size, typefaces, and other visual elements.<\/li>\n\n\n\n<li><strong>Choose a hosting platform and publish<\/strong> &ndash; select a reliable and secure web host that provides the best value for money.<\/li>\n<\/ol><p>After creating your HTML web page, you can add advanced CSS and JavaScript to improve navigation, interactivity, and overall design. If you&rsquo;re curious about the duration of this process, you might want to check out the <a href=\"\/ng\/tutorials\/how-long-it-takes-to-create-website\">time needed to create a website<\/a>.<\/p><p>Too much to learn? Looking for a no-code builder? Check out Hostinger Website Builder:<\/p><?xml encoding=\"utf-8\" ?><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-website-builder\" href=\"\/ng\/website-builder\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/public\" alt=\"\" class=\"wp-image-100488\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-making-a-website-with-html-faq\">Making a Website With HTML FAQ<\/h2><p>To help you understand more about building a website with HTML, we will answer some commonly asked questions about it.<\/p><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1679065420407\"><h3 class=\"schema-faq-question\">Is HTML Enough to Create a Website?<\/h3> <p class=\"schema-faq-answer\">Yes, you can create a functional website with only HTML. However, it only displays static content such as text, links, images, and videos.&nbsp;<br><br>Use CSS to style the HTML element, like changing the background color and font size. To create a dynamic and interactive website, you also need PHP.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1679065434052\"><h3 class=\"schema-faq-question\">Is HTML Good for Creating Websites?<\/h3> <p class=\"schema-faq-answer\">Yes, it is good for creating a <a href=\"\/ng\/tutorials\/static-website\">static website<\/a>. HTML websites require fewer resources to load and are flexible as you can modify the source code.<br><br>However, HTML is only suitable for complex websites if paired with CSS and JavaScript. If you&rsquo;re only learning HTML, it&rsquo;s better to use WordPress.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1679065446534\"><h3 class=\"schema-faq-question\">How Long Does It Take to Code an HTML Website?<\/h3> <p class=\"schema-faq-answer\">More complex websites will take longer to build. The number of web developers working on the project, their skills, and resources can also affect the building time. Generally, an experienced developer can code a simple website from scratch in <a href=\"https:\/\/digital.com\/best-website-builders\/how-long-does-it-take-to-build-a-website\/\">four to six weeks<\/a>.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Building a website nowadays is simple and doesn&rsquo;t require coding knowledge. Platforms like Hostinger website maker offer a simple visual interface and drag-and-drop features to ease the development process. However, you may want to build websites from scratch with Hypertext Markup Language (HTML). While it is more difficult, HTML websites are more flexible and faster [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ng\/tutorials\/making-website-with-html\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":337,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Making a Website With HTML in 8 Easy Steps","rank_math_description":"Making a Website With HTML in 8 Simple Steps + Post Development Suggestions \u00b7 1. Pick an HTML Code Editor \u00b7 2. Plan the Site Layout and more.","rank_math_focus_keyword":"making a website with html","footnotes":""},"categories":[22603],"tags":[],"class_list":["post-81067","post","type-post","status-publish","format-standard","hentry","category-website-development"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/making-website-with-html","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/site-html","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/comment-creer-page-web-html","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-hacer-una-pagina-web-en-html","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-membuat-website-dengan-html","default":0},{"locale":"de-DE","link":"https:\/\/www.hostinger.com\/de\/tutorials\/website-mit-html-erstellen","default":0},{"locale":"it-IT","link":"https:\/\/www.hostinger.com\/it\/tutorial\/realizzazione-di-un-sito-web-con-html","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/making-website-with-html","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/making-website-with-html","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/making-website-with-html","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/como-hacer-una-pagina-web-en-html","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-hacer-una-pagina-web-en-html","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-hacer-una-pagina-web-en-html","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/site-html","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/making-website-with-html","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/making-website-with-html","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/making-website-with-html","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/making-website-with-html","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/81067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/users\/337"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/comments?post=81067"}],"version-history":[{"count":33,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/81067\/revisions"}],"predecessor-version":[{"id":144151,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/81067\/revisions\/144151"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media?parent=81067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/categories?post=81067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/tags?post=81067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}