write a html program to display your school name and address using various heading level tags

 

In this page you can learn a HTML program to display the name of your school using heading tag.

Steps are given below:

  • First you have to create a html file with the name of index.html
  • At next you have write an HTML tags that is <html></html>
  • Inside the HTML tag you have to write ah head tag. In the head tag we have to include <title></title> tag.
  • After that we have to create a body tag. In that body tag we have to write an heading tag to display the name of the school.
  • Here the h1 tag is used as a heading tag.
  • At next we have included a style sheet to display the school name at center.
  • Using the css we have to display the school name at the center of the page and give color for that.

PROGRAM TO DISPLAY THE SCHOOL NAME IN HTML:

<html>
  <head>
    <title>Display school name</title>
  </head>
  <style type="text/css" media="all">
  h1{
    text-align: center;
    color: red;
  }
  </style>
<body>
 <h1>RAGUL MATRIC HIGHER SECONDARY SCHOOL</h1>
</body>
</html>

OUTPUT



0 Comments

Post a Comment

Post a Comment (0)

Previous Post Next Post