HTML

What Is HTML?

HTML is Hypertext Markup Language is the standard markup language for creating web pages and web applications. With Cascading Style Sheets and JavaScript, it forms a triad of cornerstone technologies for the World Wide Web

Syntax

 
01
02
03
04
05
06
07
08
09
10
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
 
 
</body>
</html>
 
 

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


</body>
</html>

Headings in HTML

HTML provides not only plain paragraph tags, but six separate header tags to indicate headings of various sizes and thicknesses. Enumerated as heading 1 through heading 6, heading 1 has the largest and thickest text while heading 6 is the smallest and thinnest, down to the paragraph level. This topic details proper usage of these tags.

Using Headings

Headings can be used to describe the topic they precede and they are defined with the h1 to h6 tags. Headings support all the global attributes.

  • h1 defines the most important heading.
  • h6 defines the least important heading.
  • Defining a heading:

     
    1
    2
    3
    4
    5
    <h2>Heading 2</h2>
    <h3>Heading 3</h3>
    <h4>Heading 4</h4>
    <h5>Heading 5</h5>
    <h6>Heading 6</h6>
     
     
    <h2>Heading 2</h2>
    <h3>Heading 3</h3>
    <h4>Heading 4</h4>
    <h5>Heading 5</h5>
    <h6>Heading 6</h6>
    

    Example

     
    1
    2
    3
    4
    5
    6
    7
    8
    9
    <h1>Main title</h1>
    <p>Introduction</p>
    <h2>Reasons</h2>
    <h3>Reason 1</h3>
    <p>Paragraph</p>
    <h3>Reason 2</h3>
    <p>Paragraph</p>
    <h2>In conclusion</h2>
    <p>Paragraph</p>
     
     
    <h1>Main title</h1>
    <p>Introduction</p>
    <h2>Reasons</h2>
    <h3>Reason 1</h3>
    <p>Paragraph</p>
    <h3>Reason 2</h3>
    <p>Paragraph</p>
    <h2>In conclusion</h2>
    <p>Paragraph</p>
    






















































    Comments

    Popular posts from this blog

    How to seperate character from string in php

    How to Delete record using PHP Ajax

    Uploads Only 10 files in month step by step