Skip to main content

HTML BASIC PART1

HTML DOCUMENT STRUCTURE

<!DOCTYPE html>
<html>

   <head>
      <title>Heading Example</title>
   </head>
 
   <body>
      <h1>Structure Heading</h1>
          <p>Paragraph</p>
   </body>
 
</html>



**Save this code from .htm or.html extension**


OUTPUT

Structure Heading

      Paragraph



HTML HEADING

HTML has 6 levels of heading that is <h1> <h2> <h3> <h4> <h5> and <h6>


EXAMPLE:

<!DOCTYPE html>
<html>

   <head>
      <title>Heading Example</title>
   </head>
 
   <body>
      <h1>This is heading 1</h1>
      <h2>This is heading 2</h2>
      <h3>This is heading 3</h3>
      <h4>This is heading 4</h4>
      <h5>This is heading 5</h5>
      <h6>This is heading 6</h6>
   </body>
 
</html>

Output


This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6

Paragraph Tag


<p> Tag is used for a paragraph. It is paired tag. Each paragraph start from opening tag <p> and closed from closing tag </p>.

EXAMPLE:

<!DOCTYPE html>
<html>

   <head>
      <title>Paragraph </title>
   </head>
 
   <body>
      <p>Here is a first paragraph of text.</p>
      <p>Here is a second paragraph of text.</p>
      <p>Here is a third paragraph of text.</p>
   </body>
 
</html>
OUTPUT:
Here is a first paragraph of text.
Here is a second paragraph of text.
Here is a third paragraph of text.

Comments

Popular posts from this blog

HTML VERSIONS

There are different Versions of html.You should have to know about the versions.                                   HTML                                                                 1991        HTML 2.0                                                           1995        HTML 3.2                                                           1997       ...

HTML BASIC PART2

HTML STRUCTURAL TAGS There are several html structural tags. We will learn these tags one by one. ANCHOR TAG <a> ARTICLE TAG <article> ASIDE TAG <aside> LINE BREAK TAG <br> DETAILS TAG <details> DIVISION TAG <div> HEADER TAG <header> HGROUP TAG <hgroup> HORIZONTAL RULE TAG <hr> FOOTER TAG <footer> NAV TAG <nav> SECTION TAG <section> SPAN TAG <span> SUMMARY TAG <summary>     ANCHOR TAG  Anchor tag denoted by <a>. It is used to define a hyperlink. It means that it allows the user to move from one page to other. Anchor tag is a paired tag it means  that it has opening and closing tag both. We can link a img,audio,video,pdf etc. By default, links are appear as follows. unvisited link , appear in underlined and blue color. visited link  , appear in underlined and purple color. active link , appear in underlined and red color. ...

WELCOME TO HTML

                                                        What is HTML? H tml   stands for  Hypertext Markup Language . Some student thinks that HTML is a programming language but it is not a programming language. It is a markup language. It is used to design web pages.  The father of HTML is  Tim-Berners Lee . He is also director of W3 Consortium.Html is created in 1991 but officially releasing year of HTML is 1995 with HTML 2.0 version. What is Web? The web is nothing, in simple term, it is a collection of web pages. What is Hypertext? H ypertext means that it is a way to web pages or HTML documents are linked together. If you want to access a page then you should have to click on the link. What is the Markup language? M arkup language means that it is used for the presentation of text on the...