How to add a comment between HTML ?
Adding a comments in HTML is easy . The comments won't be visible outside . You can add a comment like this <!-- Add the comment here --> .
Example :
<!-- This is an example comments in HTML -->
- There won't be any output to be viewed .
Adding a line is easy . A line can be added using the <hr/> tag .
Example :
<p>Hi this is an example</p> <hr/> <p>This is how it works</p>
Output :
Hi this is an example
This is how it works
What you have learned till now ?
I think now you might have got a small idea on HTML . Lets see what all we have learned, Try this one .
Example :
<html> <head> <title>Example</title> </head> <body> <h1>Heading One</h1> <h2>Heading Two</h2> <h3>Heading Three</h3> <h4>Heading Four</h4> <h5>Heading Five</h5> <h6>Heading Six</h6> <!-- This is an example comments in HTML --> <p>Hi, this is an example</p> Hai , this is an example<br/> This is how it works <b>This is an example</b> <strong>This is an example</strong> <i>This is an example</i> <em>This is an example</em> <big>This is an example</big> <small>This is an example</small> <u>This is an example</u> <ins>This is an example</ins> <del>This is an example</del> <p>Hi this is an example</p> <hr/> <p>This is how it works</p> </body> </html>
Output :
Heading One
Heading Two
Heading Three
Heading Four
Heading Five
Heading Six
Hi, this is an exampleHai , this is an example
This is how it works
This is an example
This is an example
This is an example
This is an example
This is an example
This is an example
This is an example
This is an example
Hi this is an example
This is how it works
That's all try this out and check your output . Next lesson will be about attributes, images and links in HTML . Don't forget to try this example .
i think you should teach html5 not old version :))
ReplyDeleteP.S ~ Nice Effort <3