Html Basic Tags
This tutorial will help you to learn Html basics and It is very easy to learn
these basic tags .You just follow my tutorial .Open your notepad and write code ,save it and see it in browser step by step.
Let's start.
Html Headings
Html headings start from <h1> to <h6>
<h1> use for most important tag and <h6> shows least important heading
Example
<<!DOCTYPE html> <html> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html>
and you will see result in browser like this:
Html Paragraphs
Html paragraphs are defined with <p> tag:
Example
<!DOCTYPE html> <html> <body> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html>
Html Images
<img> tag is used to define images in html and use following attributes :
(src) the source file
(alt) alternative text
Width
Height
Example
<!DOCTYPE html> <html> <body> <h2>Html Images</h2> <p>HTML images are defined with the img tag:</p> <img src="img.png" alt="techinfo901.blogspot.com" width="150" height="142"> </body> </html>
and result in browser is:
Html Links
<a> tag is used to define links in html
Example
<!DOCTYPE html> <html> <body> <h2>Hml Links</h2> <p>HTML links are defined with the a tag:</p> <a href="https://techinfo901.blogspot.com/">This is a link</a> </body> </html>
and result in browser is:
Comments
Post a Comment