HTML stands for Hypertext markup language.HTML is a markup language that uses to build websites. HTML has a defined skeleton of the website.
HTML is a collection of tags called elements of tag. And each element of the HTML has an opening tag and a closing tag. the opening tag is defined as <tag name> and the closing tag is defined as </tag name>.
In HTML there are some tags that only open tags only those tags are known as self-closing tags. for example <img>, <a> etc.
There are some basics tags are explained as follows :
- paragraph tag <p>: this tag is used to write paragraphs on a webpage. In this tag, we used lorem4 to write a dummy paragraph on a webpage.
- line break tag <br>: this tag is a self-closing tag that is used to break the line.
- <!DOCTYPE>: this tag defined the document type.
- <html>: defines an HTML document.
- <head>: contains the information for the document.
- <title>: this tag is used to write the title of the website.
- <body>: this tag is used to define the body of the document.
- <h1> to <h6>: these tags are used to define the heading of the documents. And here “h1” is the most important heading and “h6” is the least important heading and <h1> to <h6> the importance of the heading decreases.
- <hr>: this tag is used to draw a horizontal line on the webpage.
- <!–…–>: This is used to comment out the text. which explains the code without running.
- Some tags are coded on vs code notepad and show how to run it on the webpage as follows :
- <p> tag: which is used to write a paragraph on a webpage.
Source: hashnode.com