HTML Basic Tags And Their Examples - The hub of technology | Dedontech

Latest Updates

HTML Basic Tags And Their Examples


"HTML tags and examples"

The “word HTML” is an abbreviation of “Hypertext Markup Language”. HTML is used to create electronic documents known as web pages that are displayed on the “World Wide Web”. Each page is connected to another page. The process which is referred to as hyperlinks. Every web page you see on the Internet is written using one version of HTML codes or the another.

The basic elements of an HTML page are listed below:

  • A text header, denoted using the <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.
  • A paragraph, denoted using the <p> tag.
  • A horizontal ruler, denoted using the <hr> tag.
  • A link, denoted using the <a> (anchor) tag.
  • A list, denoted using the <ul> (unordered list), <ol> (ordered list) and <li> (list element) tags.
  • An image, denoted using the <img> tag
  • A divider, denoted using the <div> tag
  • A text span, denoted using the <span> tag

“In HTML” we have the “open tags” and the “close tag”. Take for example, bold <b>which is the open tag and </b> the close tag. Any text that is between the tags will be BOLD. HTMLAnchor tag is the tag use to link pages together. It is also called hyperlink.

Example:


The above code will display the following:
Visit my Site

Bold Tags example:


Advertisement
HTML body Tags. This is an example of html body tags:

HTML Line Break Tag Example:


Html Center Tag: the tag centers your contents in the area you want it to be at the center part of you documents.

Advertisement
To run the html code below, copy the code and paste it on you html editor.
Example 1:

Example 2:

The code above will display the output below:
Dedontech Blog

Download complete HTML Tags PDF file


Sponsored Links

No comments