<!–This is HTML comment this do not show anything in browser if you put in your code –>
[code]
<!– html comment starts with <!– and ends with –>
[/code]
This is a comment this will not appear in browser anywhere. HTML comment is to indiciate or describe our code this will do nothing just reference. start with < ! — without spaces and ends with — > widhout spaces.
How to create html document.
Download an html editor if you dont have any my suggestion is notepad++ install in your computer. Open Notepad++ make a new File in Notepad++ save file with name chapter1.html
Now follow the code below and put in your document and save it and see how it works. I will share a live link as well below.
[code]
<!– HTML Starts here –>
<html>
<!–head Starts here–>
<head>
<!–Title starts here–>
<title>Web development Chapter 1</title>
<!–Title ends here–>
</head>
<!– Head Ends here –>
<!–Body starts here–>
<!–Body is a section which will appear in browser page to visitors–>
<body>
<!–H1 is a heading 1 . we have heaading from h1 to h6. H1 is bigger then all.–>
<h1>I am H1 heading</h1>
<h2>I am H2 heading</h2>
<h3>I am H3 heading</h3>
<h4>I am H4 heading</h4>
<h5>I am H5 heading</h5>
<h6>I am H6 heading</h6>
<!–spaces are ignored by browser in HTML–>
<!–Paragarphs defined in tag <p>–>
<p>I am a dummy paragraph i can define para graphs and text in html.I am a dummy paragraph i can define paragraphs and text in html.
<!–Line Break tag here–>
<br />
I am a dummy paragraph i can define paragraphs and text in html.I am a dummy paragraph i can define paragraphs and text in html.I am a dummy paragraph i can define paragraphs and text in html.I am a dummy paragraph i can define p
aragraphs and text in html.</p>
<br />
<br />
<h3>How to give space in text in HTML</h3>
<p>
<!– Spaces are defined in <pre> tag will not be ignored by browser anyhow.–>
<pre>
i am ha wow I m A l i i a m s a i r a i c a
j q q e r z d r
n
</pre>
</p>
<!–Horizontal ruler applied by <hr /> –>
<hr Color="#CCCCCC" size="15px" width="50%" />
</body>
<!–Body Ends here–>
</html>
<!– HTML Ends here –>
[/code]
You can see live link of above code here. XHTML chapter 1