Skip to main content

Basic Tags in Html

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:

Basic Tags in Html








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>


and result in browser:

Basic Tags in 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:

Basic Tags in Html






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:

Basic Tags in Html


I hope you like the post ,please don't hesitate to share my post to your friends. Thanks!!!

 

Comments

Popular posts from this blog

Best and Top 5 Camera Brands 2021

  Regardless of whether you're purchasing your first computerized camera or updating your current photography gear, realizing the top camera brands in 2021 is fundamental. Picking the correct brand for you is significant in light of the fact that it will go far to molding your photography style and how you work out your unit. The brand you pick will likewise impact the nature of your gear and the scope of frill viable with it. We mean to make the determination cycle much simpler by showing you the best camera brands for advanced cameras. So how about we investigate the top camera brands accessible and what you need to know to settle on the best buying choice. Canon Odds are that in the event that you've at any point thought about purchasing another camera, the name Canon has come up.                                                       ...

Best Laptops in the world 2021

  best laptops in the world 2021: Our picks of the most recent models from the top brands to help you locate the best PC for your requirements.   In the event that you're on the chase for the best workstations of 2021, we can help. On this page we've positioned the best in class workstations cash can purchase at the present time, and regardless of what sort of PC you're after, or what your spending plan is, we're sure you'll locate the best PC for your demands on this page.   Need the absolute best PC at the present time? At that point look no farther than the MacBook Air (M1, 2020). Macintosh has given its PC an enormous upgrade with regards to equipment (on account of the new M1 chip it planned itself), and figures out how to offer top tier execution, alongside a staggering thin and light plan and a sensibly moderate sticker price too.   Be that as it may, even this right on time into 2021, we've additionally seen some splendid Windows 10 workstati...

What are the Editors of html?

 What are the Editors of html? HTML  editors use to create html pages professionally. Many editors available that can be used to create html webpages. to learn html , I will recommend you to use Notepad. 1:How open notepad in windows 8 or later: open the Start Screen and type notepad   How use in window 7: start > programs> accessories > notepad 2:Write Code when you open notepad then write code : 3:Save Html Code Save Html code on your computer .Select File>Save as from notepad menu and name it "index.html" or "index.htm".Set the encoding to UTF-8,it is the preferred encoding for html files. 4.View Page In Browser Now open your page in browser (chrome, fire fox etc) and right click on file or double click and select open with) ...your page will appear in browser like: I hope you like the post ,please don't hesitate to share my post to your friends. Thanks!!!