HTML Basic Tutorial of Commonly Used Tags

Often when I deliver a custom WordPress website to a client I get asked a lot of questions in regards to HTML code and what the tags mean, primarily because they don’t want to “accidentally break” their website. Although it is not easy to do that within a WordPress environment I have put together a small tutorial on the most commonly used HTML elements. I hope it helps.

HTML Introduction:

HTML Stands for Hyper Text Markup Language, made up of markup tags which are then used to describe web pages. HTML markup tags are often called HTML tags and they are surrounded by angled brackets <>, most HTML tags normally come in pairs comprised of an opening <p> and closing </p> tag.

Browsers such as Opera, Safari, Chrome, Internet Explorer, and Firefox read the HTML documetns and display them as webpages, they do not display the tags themeselves but use them to interpret to content of the document.

HTML Basics

An HTML Element is everything from the opening tag to the closing tag and the HTML Content is everything between.
Example: <p>(opening tag) THIS IS THE HTML CONTENT </p>(closing tag)

Some HTML elements have empty content and are “closed” in the opening tag. An example of this would be the <img> (or image) tag.

HTML Attributes provide additional information about an element and are always defined withing the opening tag. Attributes always come in name=”value” pairs

HTML Headings are defined by the <h1> to <h6> tags, with the <h1> tag defining the first (and usually largest) heading while the <h6> tag would be the last (and usually smallest) heading.
Example: <h1>This is a first heading</h1>

HTML Paragraphs are defined by the <p> tag, each paragraph must be defined by the opening <p> and closing </p> tag in order for the browser to accurately display proper spacing between paragraphs.

HTML Links are defined by the <a> tag; however, in order to properly apply a link you must include the href attribute.
Example: <a href=”http://www.avantmg.com”>THIS IS A LINK</a>)

HTML Images are defined with the <img> tag and its common attribues are “src”, “width”, and “height”, the src attribute stands for “source” and it refers to the location of the image itself while the width and height attributes define the dimensions of the image that will be displayed in the browser:
Example: <img src=”/image-sample.jpg” width=”100″ height=”100″ /> Please note that the <img> tag does not require a closing tag because it has “empty content” and therefore it is closed “/” within the opening tag.

HTML Line Breaks <br />are used to start a new line with out starting a new paragraph.
Example: <p>This is a paragraph <br />line break</p>

Was the article helpful?

Leave us a note and tell us what you think, and don’t forget to give us a google+ rating

Share this!

Subscribe to our RSS feed. Tweet this! StumbleUpon Reddit Digg This! Bookmark on Delicious Share on Facebook
  1. Lena Frankfurter
    December 30, 2011 at 3:28 am

    Das ist gut, Ihr Blog ist cool, gef?llt mir. Vielen Dank für die Bemühungen meines Freundes.

    • Shelly
      February 23, 2012 at 2:55 am

      I visit your blog fleuqentry and its very good , I am not a expert webmaster but i like your blog as its very simple and understandable.. please keep it up , 10/10 marks?

  2. A. Joquel
    December 30, 2011 at 4:10 pm

    I’m a long time watcher and I just believed I’d drop by and say hello there for your very first time.

  3. Key
    January 4, 2012 at 9:19 pm

    Interesting content. Might be just me but I was thinking I would suggest it.

  4. Madalyn Bartholemew
    January 8, 2012 at 7:25 pm

    You have noted very interesting points! ps great website.

  5. Grant Komm
    January 8, 2012 at 7:55 pm

    I think this web site holds some real wonderful information for everyone. “Few friendships would survive if each one knew what his friend says of him behind his back.” by Blaise Pascal.

  6. Flournay
    January 11, 2012 at 6:26 pm

    I am incessantly thought about this, thankyou for posting .

Leave a reply

*

*

Your email address will not be published. Required fields are marked *