One of the good friends asked me this question yesterday as he wants to learn HTML and CSS for his personal works related to websites. I thought to write a quick blog post about it.
HTML stands for Hyper Text Markup Language which is used to build the structure of a web page. And, later we use CSS to beautify that structure.
Learning HTML is not tough at all. It is a very easy subject to learn, but you do have to spend time on it to learn and practice to be perfect HTML coder.
To be honest, basic HTML learning may not take more than one month. If you work very hard, and practice every day 4-5 hours, then within ten days, you will have good knowledge of HTML but there are a lot of things, and advanced stuff, so I would say, 1 month is well enough to learn HTML if you do learn consistently. But, with HTML you must learn CSS as well which might take some more time to learn.
HTML and CSS go together as you need both to create a web page because you would need different fonts, different HTML colours, font size, etc. to set up. That is why, when there is a talk of HTML, there will be the talk of CSS as well.
Since we are talking about learning HTML, I would like to share some of the very easy ways to learn HTML from scratch.
There are many ways to learn anything such as online sites, private tuition or coaching, or by reading books. But, HTML is not that tough so learning it online using websites and practice sets would be well enough to learn it quickly.
Here I am going to share a few good resources online to learn HTML and CSS:
I am not an HTML expert but to customise my WordPress blogs, I do mess with HTML/CSS so that I can make the blogs’ look the way I want. Due to this, I started learning HTML/CSS gradually but later I thought to learn it systematically to clear doubts, and there I got Codecademy, where I got the full course for Free. It has a very interesting way of teaching. It gives you instructions to read, and then examples to perform, and run the code to check whether you did right or not. As you do correct, you move to next lesson. This way, you gradually learn HTML/CSS effectively.
Dash is another site that you can use to learn and practice HTML/CSS. However, I didn’t find it that great like Codecademy but still, this is good to complete its HTML/CSS course to learn a few new things as well. The way of coding practice in Dash is quite similar to Codecademy.
All you do is to practice as per the instructions, and while completing the course, you will be able to write codes in HTML/CSS.
When we are talking about learning to code online, W3schools must be mentioned because it is the pioneer in this, and in fact, it has been there for long. Other sites came after this only. W3schools has even better teaching course for HTML. You get to read the lessons that are explained with examples. And, then you can try the code yourself by executing. Before I started learning HTML using Codecademy, I did use W3schools at first to read and learn.
These three sites are my favourites. Apart from these, you can try learning through HTML courses on Lynda.com or Udemy.com as well. There is another one Team Tree House to learn HTML quickly.
So, these are the sites that help you learn HTML/CSS quickly and easily.
Moreover, if you want to practice on your computer, you need nothing extra. You can just start writing the code in Notepad, and save the file as abc.html or abc.htm (name can be anything but the extension should be .htm or .html). And, to see the result of the code, you need to open the file with any web browser such as Edge, Chrome, Safari, Firefox, etc.
<head><title>This is my first HTML page</title></head>
<h1>Welcome to My Page</h1>
<p>I am learning to code in HTML. I hope to learn it quickly and easily</p>
The output of this code will be:
In this HTML code, there is no CSS applied so you can see the default color and font style. Moreover, we can customize the color, and other stuff using CSS of this HTML page
First of all, let me explain the code that you see above.
The text that is written between angle brackets <> are called HTML tags such as <html> is an HTML tag. Every tag has a different meaning. And for every HTML tag, there is a closing tag as well. However, there are few tags which don’t have separate closing tags.
Every HTML page starts with <html> tag and end with </html>.
<head> => This defines the information about the document
<title> => This comes within <head> tag, and whatever you write in it, shows as the document title in browser as you can see in the screenshot below:
<body> => All the coding for the web page is done within body tag as whatever you do in it displays on the web page. As you can see in the code above, I did add some text in different tags but they are within <body> tag.
<H1> => It displays the text in heading 1 tag.
<p> => It displays the text as paragraph.
There are tons of such HTML tags for different purposes.
I have shown you some websites to learn HTML and CSS, but if you are a person who is more interested in reading books and then practice, then you can get books from your local store or Amazon.com.
- A Smarter Way to Learn HTML & CSS
- HTML: QuickStart Guide
- Sams Teach Yourself HTML and CSS in 24 Hours
I just named 3 books, but you can find many more books online, and get the one you want.
So the answer to the question “How Long Does it Take to Learn HTML?” is not specifically 1 month. It depends on how you learn. If you work hard, you can learn in 1 month but if you learn it slowly, it can take even 6 months.
If you have any confusion, do ask in the comments.