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

Top 5 mobile companies 2021

  Sometime in the past cell phone or wireless was viewed as an extravagance. Telecom organizations use to charge for both approaching and active call. Today the world has changed. We have advanced from First Generation of Mobile Phone Technology to the 5Th Generation. Presently, in many nations, telecom organizations charge for just cordial calls. Approaching calls are free.   Likewise, in the past there were not many rumored and confided in Mobile Phone Brands and Companies in the World. Brands like Motorola and Nokia managed the cell phone market. Because of innovative advancement and gigantic expansion popular, an ever increasing number of organizations have joined the cell phone fabricating business.   Prior cell phone handsets were basic and were implied uniquely to settle on and get telephone decisions and instant messages. With headway in innovation and less expensive call and information rates, straightforward component telephones are supplanted by cell phone. These cel

How create tables in html?

Html Table This tutorial will help you to learn Html Table and It is very easy to learn .You just follow my tutorial .Open your notepad and write code ,save it and see it in browser step by step. Lets Start. Html Table Table is used to store data in rows and columns. We will use example how can create a table in html Example   <!DOCTYPE html> <html> <body> <h2>Basic HTML Table</h2> <table style="width:100%">   <tr>     <th>Name</th>     <th>FatherName</th>      <th>Age</th>   </tr>   <tr>     <td>Ali</td>     <td>Abbas</td>     <td>50</td>   </tr>   <tr>     <td>Aslam</td>     <td>Ashraf</td>     <td>45</td>   </tr>   <tr>     <td>Mohsin</td>     <td>Ali</td> <td>40</td>   </tr> </table> </body> </html> Browser Result: <

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.                                                        Photo by Tom Pumford on Unsplash   Canon has been making film and afterward advanced cameras since 1937 – a lot later in the