Skip to main content

HTML Headings and Paragraphs


This Tutorial, we learn about HTML Headings and Paragraphs.





HTML Headings





Headings are defined with the to tags. defines the most important heading. defines the least important heading. Headings help in defining the hierarchy and the structure of the web page content.





<h1>Heading 1</h1>
<h2>Second Headin
g</h2>
<h3>Third Heading</h3>
<h4>Fifth Heading</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>





By default, browsers display headings in larger and bolder font than normal text. Also, headings are displayed in largest font, whereas headings are displayed in smallest font.





Note: Browsers automatically add some white space (a margin) before and after a heading.





Headings are more important in HTML Document





Headings in HTML help the search engine to understand and index the structure of a web page. The main keyword of the whole content of a webpage should be displayed by the h1 heading tag.





Use HTML headings for headings only. Don't use headings to make text BIG or bold.





Each HTML heading has a default size. However, you can specify the size for any heading with the style attribute, using the CSS font-size property:





<h1 style="font-size:70px;">Heading 1</h1>





HTML Paragraph





HTML paragraph or HTML p tag is used to define a paragraph in a webpage. Let's take a simple example to see how it work. It is a notable point that a browser itself add an empty line before and after a paragraph. An HTML <p> tag indicates starting of new paragraph.





<p>This is a paragraph.</p>
<p>This is another paragraph.</p>





You cannot be sure how HTML will be displayed. With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code. The browser will remove any extra spaces and extra lines when the page is displayed:





<p>
This paragraph
contains         a lot of spaces
in the source         code,
but the        browser
ignores it.
</p>





Note: Don't Forget the End Tag





HTML <pre> tag and <br> tag





The HTML <br> element defines a line break.





The text inside an <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks:





For Example:





<pre>
  F
irst My Bonnie lies over the ocean.





  Second My Bonnie lies over the sea.





  Third My Bonnie lies over the ocean.





  Oh, bring back my Bonnie to me.
</pre>





HTML Headings and Paragraphs in Urdu/Hindi






https://www.youtube.com/watch?v=7lXDyjm-Q2s




HTML Complete Tutorials Click Here.





Social Accounts





You Can Visit our YouTube Channel: Techz Hub


Comments

Popular posts from this blog

Top 10 Highest Paying Jobs in Pakistan 2021

Are you a fresh graduate who is finding a perfect high paying jobs in 2021? If yes, here is the list of Top 10 Highest Paying Jobs in Pakistan 2021  which mightbe helpful for you to find your dream job. Every year in Pakistan thousands of students graduate from  public and private universities of Pakistan  and got lost in the job market where most of them facess difficulties in findind the best job for them, that may earn them a handsome and beautiful livelihood. The Fresh Graduates look for a job which is according to their skills and qualifications but they have to wait for a long period of time from the employers’ response which is quite embarrassing. Before we discuss about the highest paying jobs in Pakistan ,  let’s take a "hello hi" short view on the related demographics of Pakistan for better understanding. According to 2019 Sarvay , The Total  Population of Pakistan  is around 216,565,318 with a growth rate of 2.04% which tell us that the ...

SCOPE OF PUBLIC ADMINISTRATION AFTER INTER & MASTERS

SCOPE OF PUBLIC ADMINISTRATION AFTER INTER & MASTERS According to Wikipedia the Definition of “ Public administration is the implementation of government policy and also an academic discipline that studies this implementation and prepares civil servants for working in the public service. ” It is the post at which you create the plan and ideas about the govt projects. It is one of the best leading and rewarding field if you have passion about to solve the problems of peoples then this profession is one of the best way to achieve your goal of humanity because this is non-profit based organization and in this field you can work as independent Public administrative as well as govt employer. The main goal of public administrative is to create new ideas solve problems and give the impressive real time solution for those issues and problems of the peoples.In this article we are going to discuss the scope of Public Administration jobs and Salary. Top 10 Degrees which has More Scope in Pak...

PARTS OF SPEECH – ENGLISH GRAMMAR

There are nine parts of speech Noun Pronoun Adjective Adverb Verb Preposition Conjunction Article Interjection You Can Read All Of Them By Just Clicking On The Topic Link