ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

HTML Basic Tutorial

Updated on November 28, 2015

A beginner's guide to HTML, a short introduction to understanding some basics of HTML.

Have you ever tried to create a HTML page with any WYSIWYG (What You See Is What You Get) editor, and got a result that was different than what you had envisioned? Although WYSIWYG editors are supposed to make the job of creating a HTML page easier, sometimes there are just some things that require the actual tweaking of the HTML code: maybe you have a HTML page than just requires some alignment tweaking or you want to change the color of a row in a table, but you are unable to do so as the WYSIWYG editor does not have the function nor ability to accomplish the task. When you attempt to see the HTML code, you are bombarded by what looks like gibberish and you do not know where to start. In a sense, the abilities of WYSIWYG editors are limited and restrained. So it is beneficial to have some knowledge of HTML, and here is a guide on understanding the basics of HTML.


What is HTML?

HTML stands for Hyper Text Markup Language and a HTML page (file) can be created using a simple text editor or WYSIWYG editors. A HTML page (file) is a text file that contains small markup tags which tell your web browser how to display the page. The file extension of a HTML page can either be ".html" or ".htm".

Understanding HTML Basics (Basic Tags)

All HTML code starts with "". The start of any HTML code begins with an open tag "< >" and end with a close tag "". It is crucial that you close "" any tag after opening it, else your HTML page might not display properly. Below are some of the most commonly used words within the stated tags and their meanings:

  • html: usually found at the beginning of any HTML page
  • head: usually contains the title and body tag
  • title: enter information within this tag to give your HTML page a name, that is displayed on the top left had corner of your internet browser
  • body: defines the document's body; this is where all your content goes - sentences, tables, images etc...
  • h1-h6: are the size of headings, with 6 being the largest
  • table: creates a table
  • tr: row within a table
  • td: column within a table
  • p: paragraphs are defined with this tag - works the same way that "enter" does in Microsoft Word
  • font: sets the size and type of the font you want displayed on your HTML page
  • br: goes to the next line after the sentence or image, does not leave a spacing like the paragraph tag
  • b: bolds the text
  • a href: used to hyperlink a word/sentence or image to another page on the internet
  • li: bullets your sentences
  • ul: used before a li tag. It indents the bulleted sentences
  • img src: used to display images - what it does is reference to the place where that image is stored, and displays the image

A Sample HTML Page

In this example, the "" tags will be replaced with "{" and "}". Please remember that although the text here is not indented. It is recommended that if you ever attempt typing out HTML code to indent them, for easier viewing.



{title} This is my page {/title}



{p}Whatever sentence or paragraph you want, enter it here{/p}


{b} Whatever sentence or paragraph you want, enter it here{/b} //to bold it if you want


{a href="" target="_blank"} name of link {/a} //target is where you want the link to open to - _blank (new window)

{br} // goes to the next line

{a href=""} name of link {/a} //opens the link within the same page by default

{br} // goes to the next line

{img src="locationofimage" /} //just copy the url or address of where the image is stored in the " "

{ul} //for indented bullets

{li} text {/li}


{li}text{/li} //normal bullet

{table} //a table with 1 row and 2 columns


{td} text {/td}

{td} text {/td}





To view the above file, simple copy the code, change the "{ }" to "< >", remove the comments from "//" onwards, paste in all into a text file and save it as "nameofile.html" or ".htm", and open it as you would a normal file (your internet browser should be the one displaying the page). And there you have it, a beginner's guide in understanding the basics of HTML. For a comprehensive guide on HTML and all the possibilities do visit

Now you know the basics of creating a simple HTML page using a word editor, or simply modifying some parts of your HTML in your WYSIWYG editor. There is still so much more to learn, so have fun as you explore and discover the wondrous world of HTML!


    0 of 8192 characters used
    Post Comment

    No comments yet.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)