Follow This Blog For more... 😊

Introduction to HTML | HTML | 001 |

  • HTML stands for Hypertext Markup Language. It's a simple and fundamental language used for creating web pages. Think of HTML as the building blocks or the skeleton of a web page.
  • Imagine you have a blank canvas, and you want to create a web page. HTML helps you structure and organize your content on that canvas. You can add text, images, videos, links, and more using HTML.
  • HTML uses a set of tags to define different elements on the web page. These tags are like instructions that tell the web browser how to display each element. They are written using angle brackets (< and >) and come in pairs - an opening tag and a closing tag. The content you want to display is placed between these tags.
  • For example, to create a heading, you use the `<h1>` tag. You open the tag by writing `<h1>` and close it by writing `</h1>`. Anything you put between these tags will be displayed as a heading on your web page.

Here's a simple HTML example:(Very Basic Structure of HTML)

<!DOCTYPE html>
<html>
<head>
    <title>My First Web Page</title>
</head>
<body>
    Content of the Web Page.
</body>
</html>

Output:




Let's break it down:
  • `<!DOCTYPE html>` is the document type declaration and tells the browser that this is an HTML document.
  • `<html>` is the root element that wraps around the entire HTML content.
  • `<head>` contains meta-information about the web page, such as the title displayed in the browser's title bar.
  • `<title>` sets the title of the web page.
  • `<body>` is where you put the visible content of your web page.
There are too many tags available in HTML.

That's the basic idea of HTML! By combining different many more tags and their attributes, you can create more complex and interactive web pages.

Comments

Popular Posts