How to make an HTML website in a notebook?

How to Make a Website in HTML?

Regardless of whether you want to learn programming in HTML because you are doing it at school, as part of your studies for an exam, or if you are a small business owner who wants to launch your simple website for free, this material will allow you to enter the secrets of HTML from scratch.

Unfortunately, the sad truth is that HTML, generally building websites in HTML itself, is slowly going out of fashion because it is no longer a prospective technology that has been pushed aside for years by languages such as PHP. However, with a bit of self-discipline, you can create your simplest website in HTML for free yourself.

What will be needed to create an HTML website for free?

A standard system notebook that we have in Windows, but I must say that for this purpose, Notepad ++ will be much better, which is also free, and you will download it from the internet. As I work on MacOS (much more stability than the Windows platform) due to my profession, I do not have a Windows notebook here and I cannot install Notepad ++ either, but I have something similar to Notepad ++ called “CotEditir” and that’s what I’ll use in this example, which doesn’t change the fact that to do what I’m doing you can go along the smallest resistance line using the built-in Windows Notepad.

How to Create a Website in HTML?

Create website files

You need to create a file for yourself that must have such a name – index.html on that’s why it has to have such a name so that when uploaded to a server, it is properly interpreted by its mechanisms and if someone enters your website address in the Internet browser – yourdomain.pl – the content of this file will be displayed on the user’s screen.

See also  How to perform a marketing audit?

Another file for your website you need to create is style.css – it’s a file where we’ll “style” our website, i.e. change its color scheme, backgrounds, and control the arrangement of elements on the website.

At the beginning in the index.html file we need to define the document type we are creating, then there is the so-called HEAD section where we define our stylesheet, how the page is encoded, etc., including the TITLE tag – that’s the title of the page. Generally, in the HEAD section you can place many different elements, but in this article we will focus on absolute basics.

How to Create a Website in HTML?

Create website files

You need to create a file for yourself that must have such a name – index.html on that’s why it has to have such a name so that when uploaded to a server, it is properly interpreted by its mechanisms and if someone enters your website address in the Internet browser – yourdomain.pl – the content of this file will be displayed on the user’s screen.

Another file for your website you need to create is style.css – it’s a file where we’ll “style” our website, i.e. change its color scheme, backgrounds, and control the arrangement of elements on the website.

At the beginning in the index.html file we need to define the document type we are creating, then there is the so-called HEAD section where we define our stylesheet, how the page is encoded, etc., including the TITLE tag – that’s the title of the page. Generally, in the HEAD section you can place many different elements, but in this article we will focus on absolute basics.

See also  Import products to Magento.

Now it’s time to use the DIV element

Every website has some static elements, i.e. what the Internet user sees when opening our website, e.g. the header where there is usually a logo, menu, through the BODY section where there is content of our website, ending with FOOTER – that’s the bottom part of the page. To create this type of elements we can use the DIV element.

DIV is, in a simple way, something like a container for content.

To create the MENU on your website you will use the tag where you enter the name of your html file with the full path.

Further HTML code of your new website may look like this:

We already have filled-in HEAD and BODY sections with some content, currently just a menu of our website
Let’s take a look at how it looks like so far – it doesn’t look too impressive yet because it only has a MENU that hasn’t been styled by the CSS stylesheet yet.

Add some content to your website and footer

Let’s see what our website looks like now that we have added some content to it, including a footer:

Mamy już bardzo prostą stronę główną z sekcją header , body i footer czyli nagłówkiem w którym mamy deklaracje podstawowych elementów strony, body w którym mamy menu naszej strony treść strony głównej oraz zawartość tzw. stopki strony

So far it looks quite pale, let’s bring our project to life by adding some elements from the stylesheet “style.css”

We have already added margins to our website, which makes its content look better, and we also worked on the MENU and FOOTER sections of our website.

See also  Website positioning

As you can see, entering the HTML/CSS topic is not difficult and creating a simple HTML website is not difficult either. Don’t let yourself be fooled by how simple it looks now because websites built in HTML/CSS can look like this:

If you want to receive a newsletter with notifications about new articles of this type on our blog, you can sign up for it here – it’s free, non-committal.

If you think that creating your own website and you want someone to do it well so that the website gives you full flexibility in implementing changes that bring “EU law” – contact me through the contact form below – a conversation costs nothing.