In the previous post we learn about How to insert image in HTML.HTML is a web page designing language in which we can design different type of web pages.In this post we will learn what is HTML tag.
Heading tag:
<P>:
This is first paragraph
This is second paragraph
What is HTML tags:
An HTML element that starts with a tag and ends with a tag is called as HTML element.The tag is a unit of markup.Tags start with a less than sign (<) followed by a keyword,concluded with greater than sign (>).These symbols are known as angle brackets. example of html elements are as <p>.....</p>,<h1>.....</h1>,<div>.....</div> etc.
Heading tag:
Heading tag is important in HTML because any HTML document start with heading.we can use different size of heading.HTML has six level of heading which use the elements are <H1>, <H2>, <H3>, <H4>, <H5>, <H6>.
This is H1 heading
This is H2 heading
This is H3 heading
This is H4 heading
This is H5 heading
This is H6 heading
<P>:
This is a paragraph tag that start with <p> and ends with </p>.This is a paired tag.when we use <p> tag element it will be structure your document into different paragraph.A paragraph can be created by enclosing text within paragraph codes <p>.....</p>.we must specially define a paragraph in the code by using a paragraph tag.
example
<html> <head> <title>Demo of paragraph</title> </head> <body> <p>This is first paragraph</p> <p>This is second paragraph</p> </body> </html>
The above example will produce following output:This is first paragraph
This is second paragraph
<B>:
This is a Bold tag that starts with <b> and ends with </b>.The text enclosed in between <b> and</b> will be displayed in bold form you can see in below example.
<I>:
This is a Bold tag that starts with <b> and ends with </b>.The text enclosed in between <b> and</b> will be displayed in bold form you can see in below example.
This is a italic tag that starts with <i> and ends with </i>.The text enclosed in between <i> and</i> will be displayed in italic form you can see in below example.
<U>:
This is a underlline tag that starts with <U> and ends with </U>.The text enclosed in between <U> and</U> will be displayed in underline form you can see in below example.
<U>:
This is a underlline tag that starts with <U> and ends with </U>.The text enclosed in between <U> and</U> will be displayed in underline form you can see in below example.
<html> <head> <title>Demo of paragraph</title> </head> <body> <p>This is normal text</p> <B>This is a Bold text</B><br/> <I>This is a italic text</I><br/> <U>This is a underline text</U><br/> </body> </html>
The above example will produce following output:
This is normal text
This is a Bold text
This is a italic text
This is a underline text
0 comments:
Post a Comment