Html common text format

HTML defines tags in text format, such as using them to make fonts bold or italic.

Here are some common text formatting tags

label      description
<b>Define bold text.
<big>Define a large word.
<em>Define emphasis on text.
 <i>Define italics.
 <small>Define a small word.
 <strong> Define aggravated tone.
<sub>Define the subscript.
<sup>Define the upper label.
<ins>Define the insertion word.
 <del>Define the delete word.

Computer Output tab

label      description
<code>   Define the computer code.
<kbd>   Define the keyboard code.
<samp>    Define a computer code sample.
<tt>   Define the typewriter code.
<var>    Define variables.
<pre>    Define pre-formatted text

In the following sections, we will introduce computer code elements.

Instance

The following example uses some of the above tags, you can compare the results of the HTML display.


References, citations, and term definitions
label      description
<abbr> Define an abbreviation
 <acronym>    Define an acronym.
 <address>    Define the address.
<bdo>    Define the text direction.
<blockquote> Define long references.
  <q>   Define short quotations.
<cite>   Define references, citations.
<dfn>  Define a definition project.
Instance

HTML <q> for short references

Instance
HTML <blockquote> for long references
Instance

The HTML <abbr> element defines an abbreviation or an acronym.

Program running result:

PRC was established in 1949.

Marking abbreviations provides useful information for browsers, translation systems, and search engines.

Instance

The HTML <bdo> element defines a bi-directional override.

If your browser supports bdo, the text will be written from right to left (rtl):

 
These tags are used in the same way. If you are interested, you can try it.


How to see the source code of HTML

The HTML page that is seen in the browser is the result of the browser interpreting the HTML source code.

There are two ways to view the source code of this HTML. One is to click the right mouse button and click the View Source command; the second is to select the Source command in the browser menu View.

Use View Source to get the source code of the webpage, so you can learn from other people's well-written places. However, if you have little knowledge of HTML, looking at other people's complex HTML source code will only make you dizzy. I suggest you wait a second time and learn some basics.


Last Updated: 2018-07-06 12:32:44 By akshay

SHARE THIS

share_facebook share_twitter share_google_plus

Please Comment Here :