Recent Posts

Saturday 20 January 2018

What is HTML tags.

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.


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 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.
<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

Followers

Popular Posts

Categories

social media

Text Widget

Powered by Blogger.

About Me

My name is junaid khan and i am a full time blogger and author of a blog tutorial called tutorialpointsolution.

String function

In the previous post we learn about what is String .we know that string is a collection of two or more characters.In string we can store al...

Search This Blog

Technology

Adbox

Recent Post

Breaking

Recent In Internet

Comments

Facebook

Pages

Comments

Pages

Recent

Pages

Technology