HTML TUTORIALS BLOG HTML (Hypertext Markup Language) uses a markup system composed of elements which represent specific content. HTML is sometimes called a programming language but it has no logic, so is a markup language.

HTML5 Heading and Paragraphs

 Headings :


HTML provides not only plain paragraph tags, but six separate header tags to indicate headings of various sizes and thicknesses.

Headings can be used to describe the topic they precede and they are defined with the <h1> to <h6> tags. Headings support all the global attributes.

● <h1> defines the most important heading.

● <h6> defines the least important heading. 

Defining a heading:

<h1>Heading 1</h1>

<h2>Heading 2</h2>

<h3>Heading 3</h3>

<h4>Heading 4</h4>

<h5>Heading 5</h5>

<h6>Heading 6</h6>


Paragraphs :

<p>

Defines a paragraph

<br>

Inserts a single line break

<pre>

Defines pre-formatted text

Paragraphs are the most basic HTML element.


HTML Paragraphs

The HTML <p> element defines a paragraph:

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

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

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.


Text Formatting

While most HTML tags are used to create elements, HTML also provides in-text formatting tags to apply specific text-related styles to portions of text. Examples of HTML text formatting such as highlighting, bolding, underlining, subscript, and stricken text.


Highlighting

The <mark> element is new in HTML5 and is used to mark or highlight text in a document

<p>Here is some content from an article that contains the <mark>searched query</mark> that we are looking for. Highlighting the text  will make it easier for the user to find what they are looking for.</p>

A common standard formatting is black text on a yellow background, but this can be changed with CSS.

Previous
Next Post »