Hello, Welcome. My name is kunaal. From today, I am going to start "Learn web development" series for all beginners and for those who want to start web development.
In this series, I will be explaining you each and every concepts, and after that you should practice each example that I'll perform in the article. And I will give you some problems as a homework which you can solve to practice web development.
So, I think that enough introduction about this series.
Let's start then.
Well, as we all use languages like English, Spanish, Hindi, etc to communicate with others. The same way we communicate with computers. But, computers are not very smart as they seem. They only understand binary codes.
Binary codes are sets of 0 and 1. Computer understand different combinations of 0 and 1.
You can see computers are more complicated. And as a human, it's impossible to remember all these combinations, to order computer. That's why we have programming languages.
I think that's enough, as we no need to worry about compilers and binary codes for web development.
HTML - Hyper Text Markup Language. HTML is a structured language. HTML is used to define the structure of website. HTML is used add content to the web page. Basically HTML is used to create a web page.
We do not consider HTML as a programming languages. We consider it as a structured language because it is used to create structure.
Vs code is an IDE. Programmers use it to write codes. You can also use notepad if you want. But even if you are beginner, I'll recommend you to use VS code or any other text editor except Notepad.
Now, let's talk about HTML in detail. Before that, create a file, name it
index.html (index is a file name and
.html is a extension which tells computer that this is an HTML file). It should look like your default browser icon.
Open this file in your code editor. And write this
<!DOCTYPE html> <html> <head> <title>title of the page</title> </head> <body> </body> </html>
Let's understand each line.
This tells the version of HTML language. HTML 5 is the latest version and to tell browser that we are writing HTML 5 we use this. It also enable some HTML 5 features.
In HTML,text with angular brackets
< > know as tags. Tags are like a block. Which used to define an element or make space for an element in the document. We have lot's of tags to create specific elements.
Notice mostly all these tags end like this
</ >. This define the end of the block.
Now, this Html tag means we are starting our html block. Anything that our web page contain should be inside html tag.
<html> <head> </head> </html>
you can see we added this
<head> tag inside our
<html></html> tag and we are closing it by
<head> tag is used to define the head portion of the document which contains information related to the document.
<html> <head> <title>title of the page</title> </head> </html>
Title tag is used to set web page's title. remember to close all these tags.
<body> hello world </body>
<body> tag is used to define web page body. You can see, I typed
hello world inside
Remember to close all these tags.
You can practice writing HTML basic Structure. I recommend you write it 5-6 times. And practice closing all tags.
So, that's sit about HTML for today. In next article we'll learn about heading tags, para tags and other font related tags.
If I missed something or you have any doubt feel free to ask me in discussion.
Thanks For reading.