24
loading...
This website collects cookies to deliver better user experience
<h1></h1>
stands for heading tag 1. This tag is used to add heading on the page. we have some more tags for headings.<h1>heading</h1>
<h2>heading</h2>
<h3>heading</h3>
<h4>heading</h4>
<h5>heading</h5>
<h6>heading</h6>
<a></a>
anchor tag. This is used to add links in the web page. yes, those blue color underlined text.<a href="www.google.com">link</a>
href="www.google.com"
inside <a>
. Now what is that ? href=""
is know as attributes in HTML. Anything that you type inside a tag with quotes <tag attribute=""></tag>
is knows as attributes. href
stands for header reference. This attribute is used to add link url. Means in this case, we set our url to www.google.com
. If we don't set any href
attribute. Anchor tag will not re-direct you to anywhere.If you have to redirect to other HTML file give files name in href. Example href="index.html"
<p></p>
paragraph tags.<p>this is a very long long paragraphhhhhhhhhhhhh.</p>
Remember all these property should be inside <body>
tag.
<!-- for bold text -->
<b>bold text</b>
<br>
<!-- for italic font -->
<i>italic font</i>
<br>
<!-- for underlined text -->
<u>underlined text</u>
<br>
<!-- for strike through text -->
<s>stike through text</s>
<br>
<!-- you can use more the one tags at a time -->
<b><i><u>this is bold, italic and underlined :) </u></i></b>
<br>
<!-- By default if you give more that 1 space it trims down to 1 space
but if you want to add text with lots of space. use pre tag -->
<pre>
h
e
l
l
o
</pre>
<br>
This tag is know as break line. This tag is used to add a line break. And Notice we are not close it. Because, In HTML we have some tags which do not close.
Remember to close all tags, and also close them in order. For example
wrong.
<b><i><u>This is wrong</b></i></u>
right.
<b><i><u>This is right</u></i></b>
<!--
You have to make two pages. you can give any name to them.
But make sure you give these things.
both page should contain
1. at least one heading tag.
2. at least two paragraphs, and you should make at least one paragraph bold, italic or underline.
3. link to the other page.
->