HTML (Hyper Text Markup Language) is a coding language through which we can design a frontend webpage. All the required things on the Webpage can be designed by using this language. HTML is always written in a file whose extension is .html, e.g. index.html. Usually, the first coding file of html is named as “index.html” . HTML code is written in a Text Editor (Softwares to write a code in them). We have pre-installed software in our PC’s which can be used to write HTML code, i.e. Notepad. If you want to write the code in Notepad, Change .txt file to .html extension.
HTML code can be written in any Text Editor. Some Text Editors are mentioned below:
- Visual Studio Code (VS Code)
- Sublime Text
- Notepad++
- Notepad
- Pycharm (actually made for python coding)
Some text editors are built up for a different Programming Languages, but they let us write HTML code in them. A Funfact is that we can also write our HTML Code in the file with .php extension.
HTML Code is written between the “Tags”. Tags can be shortly known as The characters that make up a Web page’s formatted command. We have mainly two types of tags. 1.Opening Tag 2. Closing Tag. Every single thing you want to design will be coded between the opening tags and closing tag. Differnce b/w opening and closing tags can be seen in the example below. For Instance, If you want to centralize your text you have to write the text as below:
<center> I want to Centralize this text </center>
Opening Tag Syntax:
Less than sign > then put the command > greater than sign.
Closing Tag Syntax:
Less than sign > then put a slash (/) sign > put the command > greater than sign.
You may like to read: