Wednesday, April 7, 2021

HTML TUTORIAL

dn-html

1.Introduction of HTML

So, The HTML stands for Hypertext Markup Language. Where Hyper Text represents the Hyperlinks that are present on the web pages. The Markup simply means that it’s displayed the content on the web pages sequentially. The HTML is used for making web pages. Use tags to display documents etc.

Some Important Tags are <Html>where the HTML is Start. The tags mostly come with pair like <b></b>and this < > brackets are called angle brackets. What is present in these brackets are called elements. We learn much more about tags in our further course. Now let’s see how the HTML document is created.

Code

<html>
    <head>
         <title>My first web page</title>
    </head>
    <body>
       Hello World!!
    </body>
</html>

Save this document with .html format and click it where you save this document it will open with your default web Brower.

Output

Hello World Html01

Note: Every html document end with .html extension. Make sure that when you open the tag you close that well like <html></html> the / is use in closing tags

Quiz

HTML stands for?

Correct! Wrong!

HTML 1

Share your Results:

2What is a head and body tag?

1. What is the head?

So, basically, the head is used to store Metadata. The Metadata is just about the information of the HTML document and it defines the document title, character set, styles, scripts, and other Meta information. It just defines information about the document. We can identify Meta tag using <head> tag which tags are in the <head> tag are called Meta tag some example are following:<title>, <script>, <meta>, <link>, <style> etc.

2. What is the body?

Let’s see what the body of the HTML document is. The body uses to contain all the contents of an HTML document like images, videos, text, etc. basically body is the part that is mostly used by users.

Code

<html>
  <head>
     <title>This is title Meta tag</title>
  </head>
  <body>
      <h1>See the title and this is the body of the document</h1>
  </body>
</html> 

Save this document with .html format and click it where you save this document. So, it will open with your default web Brower.

Output

See the title

Note: So, Every html document have the head and body tag.

Quiz

Which tag is use to contain title tag?

Correct! Wrong!

Leave a Reply

Your email address will not be published. Required fields are marked *