Home
About Me
Contact

Upcoming!


Upcoming!


The <body> tag

The <body> tag is the container tag in html which contains all the text to be
displayed. It contains all the content of the webpages, like images and text.
There can only be one body tag in one webpage. You cannot write multiple body tags in one webpage.


<!DOCTYPE html>
The <!DOCTYPE html> tag marks the start of the html program. It doesn't have any ending tag.

<html lang="en">
The <html lang = "en"> tag acts as the container for all the html code.

<body>
The <body> tag contains all the text that is displayed on the webpage.

</body>
This is the closing tag of the <body> tag.

</html>
This is the closing tag of the <html lang = "en"> tag.

The Paragraph tag

The paragraph tag is the tag which holds all the content. You can write anything between
its starting tag, <p> and its closing tag, </p>, and see it run on the screen!

Example 1

<!DOCTYPE html>
The <!DOCTYPE html> tag marks the start of the html program. It doesn't have any ending tag.

<html lang="en">
The <html lang = "en"> tag acts as the container for all the html code.

<body> The <body> tag contains all the text that is displayed on the webpage.

<p> The paragraph tag which holds the text content of the webpage. These are not used for headings.
Hello there, everybody! I am learning HTML! The text inside the <p> tag is displayed on the screen.
</p> This is the closing tag for the paragraph tag.

</body>
This is the closing tag of the <body> tag.

</html>
This is the closing tag of the <html lang = "en"> tag.





Now let's try adding some more text in the paragraph tag!

Example 2

<!DOCTYPE html>
The <!DOCTYPE html> tag marks the start of the html program. It doesn't have any ending tag.

<html lang="en">
The <html lang = "en"> tag acts as the container for all the html code.

<body> The <body> tag contains all the text that is displayed on the webpage.

<p> The paragraph tag which holds the text content of the webpage. These are not used for headings.
HTML is the abbreviated form of Hypertext Markup Language. It was founded in 1990 by Tim-Berners-Lee, who also founded the World Wide Web. The text inside the <p> tag is displayed on the screen.
</p> This is the closing tag for the paragraph tag.

</body>
This is the closing tag of the <body> tag.

</html>
This is the closing tag of the <html lang = "en"> tag.


<< Previous Next >>

Courses:

Javascript CSS HTML

Glossary

Centel Technologies Private Limited © 2020
All rights reserved.