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

Find Any Result of Pakistan Online Results

2019 Results Online - Find Any Result of Pakistan Find Any Result of Pakistan online, find exams results of any class, any education board and university of Pakistan. Complete database of every latest and old result of Primary, Middle, Ninth Class, Matric, FSC, FA, ICOM, ICS, BA, BS, BCOM, BSC, MA, MSC, MCOM, LLB, B.Ed, M.Ed, MBA, MIT, CA, ACCA, MPhil, MS CS, PhD, PGD, ADP, BS SE, MS. Simply select your class below, and get the latest result. Complete archives of old results is also available for reference. Simply enter the roll number and get the latest results. Select Class Primary Middle Ninth Class Matric FSC ICOM ICS FA Punjab Boards Multan Faisalabad Bahawalpur Gujranwala Lahore Sargodha Rawalpindi DG Khan Sahiwal Fedral Khyber Pakhtunkhawah Boards Peshawar Sawat Kohat Malakand Abbottabad Bannu Mardan ...

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

Midterm solved past papers reference by Moaaz and waqqar

MIDTERM SOLVED PAST PAPERS  Dear  VU  Students here you can read and download Midterm Solved Past Papers Reference by Moaaz and Waqar Siddhu . easily you can download Mid Term Solved Papers Reference by Moaaz and Waqar Siddhu Click the download button and download Solved Mid Term Papers reference by Moaaz and Waqar Siddhu. you can also download  Final term Solved Papers by Moaaz and Waqar Sidhu. SELECT YOUR SUBJECT CODE AND DOWNLOAD PAST PAPER CS Subjects CS001 – Computer Proficiency License Waqar Sidhu Files  Download Midterm Other Solved  Download CS101 – Introduction to Computing Waqar Siddhu Files                Download Other Students Files              Download CS201 – Introduction to Programming Waqar Siddhu Files                Download Other Students F...