HTML - Headings, Paragraphs and Formatting Texts |#Blockl1| #Lect4 | Full Stack Development Course in Mobile | APK Learning

Headings, Paragraphs and Formatting Texts in HTML

In this lecture, we are going to learn about setting up environment and editor for HTML or we can say that we are going to learn how to use this markup language HTML in Android Phone.

I hope, after this lecture, you'll able to use and describe about headings, paragraphs and text formatting in HTML yourself. This is going to be our fourth lecture and we'll try to teach you very basic concepts in detail as a perspective of a beginner. So make sure you like this video and subscribe this channel for more content and share the needy one.

Headings

HTML headings are titles or subtitles that you want to display on a webpage.

Example:

<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4<h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>

Above code will generate the following output:

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraphs

A paragraph always starts on a new line, and is usually a block of text. The HTML <p> element defines a paragraph.

A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph.

Example:

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

HTML Display

You cannot be sure how HTML will be displayed. Large or small screens, and resized windows will create different results. With HTML, you cannot change the display by adding extra spaces or extra lines in your HTML code. The browser will automatically remove any extra spaces and lines when the page is displayed:

Example:

This paragraph contains a lot of lines in the source code, but the browser ignores it.

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

HTML Horizontal Rules:

The <hr/> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule. The <hr/> element is used to separate content (or define a change) in an HTML page:

The <hr/> tag is an empty tag, which means that it has no end tag.

Example:

<h1> This is heading 1 </h1>
<p> This is some text. </p>
<hr/>
<h2> This is heading 2 </h2>
<p> This is some other text. </p>
<hr/>

HTML Line Breaks:

The HTML <br> element defines a line break. Use <b> if you want a line break (a new line) without starting a new paragraph: The <br> tag is an empty tag, which means that it has no end tag.

Example:

<p>This is<br>a paragraph<br>with line breaks.</p>

Source Code:


  Click Here to Download PDF

Comments

Popular Posts