Saturday, April 25, 2020

What is HTML ?



What is HTML?

HTML is a Hypertext Markup Language. With the help of HTML, we can create and develop a creative web page.

Basic Structure of HTML

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>

</body>

</html>




Brief Definition of HTML Code


<!DOCTYPE html> : !DOCTYPE HTML Means its supporting to html5 Tags.

<html> : HTML Means our HTML pages start from here. Inside HTML tags we can build our web page Note: Please remember that every opening tags should be closing are mandatory if you forgot the closing of any tag our web page will not work properly.


Head: In Head Section, we can call our external CSS and other useful libraries.

Title: In the Title tag, we can set the title of the HTML page. Please Remember that whichever we are writing in the head section that does not show on our web page. The head section useful for out of web page.

Body: The body tag is an important part of our web page. Without a body tag, we can not do something on the web page. In the body tag which we are writing. That display on our web page.

We are using some tags for the web page. Please try to yourself and if you're facing any issue for creating a web page. You can comment to me we will try to resolve your issue as soon as possible.

For the beginner, you can use a notepad editor to build your own web page.

For creating page very first please save your page .html extensions.

<!DOCTYPE html>
<html>
<head>
<title>Home</title>
</head>
<body>
<h1>My First Web Page</h1>
<h2>My First Web Page</h2>
<h3>My First Web Page</h3>
<h4>My First Web Page</h4>
<h5>My First Web Page</h5>
<h6>My First Web Page</h6>
</body>
</html>


The output of the above code


Index File
index.html

  Please try your self and build your web page.

  You Seem that by default our titles are aligned to the left.


  Question: How Can align title Center and right?

   Answer: Yes, You can align the title center and right with writing simple code.
   <h1 align="center">My First Web Page</h1>
    <h1 align="right">My First Web Page</h1>