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

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

SCOPE SUBJECTS OF FSC PRE-MEDICAL

F.SC PRE-MEDICAL SUBJECTS SCOPE OF FSC PRE-MEDICAL F.SC PRE-MEDICAL SUBJECTS SCOPE OF FSC PRE-MEDICAL The students those are interested in medical sciences in future they must also improve their skills and abilities that helps them to become a good doctor or pharmacists. Thus FSc Pre-medical provides a general definition of the fundamentals of scientific research in the field of mobile science.We are giving you detailed information about admission in FSc in pre-medical group, FSc Pre-Medical Subjects and eligibility criteria for admission. This is very complex and conceptual field so we recommend students who are simply crazy to be a doctor or anything else. This is the first step in your journey to be good doctor. Read this article fully we provide all the essential information here. Top 10 Degrees which has More Scope in Pakistan – 2020 FSc Pre-Medical Subjects : FSc pre-Medical group is two year program which is divided into two part. The subject list is given below these all subje...

HTML Introduction - HTML Tutorial for beginners

HTML Introduction In this tutorial we learn about HTML Introduction. HTML is the standard markup language for creating Web pages. HTML stands for HyperText Markup Language HTML describes the structure of a Web page HTML consists of a series of elements HTML elements tell the browser how to display the content HTML elements are represented by tags HTML tags label pieces of content such as "heading", "paragraph", "table", and so on Browsers do not display the HTML tags, but use them to render the content of the page A Simple HTML Introduction Document HTML Example Explained The  <!DOCTYPE html>  declaration defines this document to be HTML5 The  <html>  element is the root element of an HTML page The  <head>  element contains meta information about the document The  <title>  element specifies a title for the document The  <body>  element contains the visible page content The  <h1>  element defi...