Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Wednesday 2 May 2018

Paragraph Tag in HTML

Paragraph Tag

The <p> tag offers a way to structure your text into different paragraphs. Each paragraph of text should go in between an opening <p> and a closing </p> tag as shown below in the example −

Example

<!DOCTYPE html>
<html>

   <head>
      <title>Paragraph Example</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>

This will produce the following result −
Here is a first paragraph of text.
Here is a second paragraph of text.
Here is a third paragraph of text.

Heading Tags HTML Basic Tags

Heading Tags

Any document starts with a heading. You can use different sizes for your headings. HTML also has six levels of headings, which use the elements <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>. While displaying any heading, browser adds one line before and one line after that heading.

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>

This will produce the following result −

This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6

what is HTML

HTML stands for Hypertext Markup Language, and it is the most widely used language to write Web Pages.
  • Hypertext refers to the way in which Web pages (HTML documents) are linked together. Thus, the link available on a webpage is called Hypertext.
  • As its name suggests, HTML is a Markup Language which means you use HTML to simply "mark-up" a text document with tags that tell a Web browser how to structure it to display.

Originally, HTML was developed with the intent of defining the structure of documents like headings, paragraphs, lists, and so forth to facilitate the sharing of scientific information between researchers.
Now, HTML is being widely used to format web pages with the help of different tags available in HTML language.

کسی کے فون کو چھونے کے بغیر اسے کیسے ہیک کریں؟

    آج ٹکنالوجی کی آمد کے ساتھ ، ہماری بیشتر معلومات آن لائن ہیں ، اور چاہے کوئی کتنا ہی کہے ، ہمارا ڈیٹا غیر محفوظ ہے۔ آپ نے ہیکنگ ، اخلاق...