ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel
  • »
  • Technology»
  • Internet & the Web

Basic HTML Tags For Beginners

Updated on March 10, 2011


Now that you have read my How To HTML Code For Dummies you are ready to learn about HTML tags.

HTML tags are used to modify many different aspects of your web page.

This guide will teach you some of the basic tags used in HTML coding.

Background Tags

You can use tags to change the background of your web page.

To change the background you have to add to the <BODY> tag.

To add color to your page you have to add a <BACKGROUND COLOR> tag, or <BGCOLOR="color">


Dingy's Website
Hello, welcome to my web page. This is a sample website that I made for you to change!

You can also add an image, from your computer, to your background. Simply replace "imagefile.jpg" below with the name of the image on your computer that you want to use.


Dingy's Website
<BODY BACKGROUND="imagefile.jpg">
Hello, welcome to my web page. This is a sample website that I made for you to change!

Font Tags

There are many ways that you can create special, unique text on your webpage.

Some of the basic font editing tags are bold, italic, and underlining. Then you can change the size and color as well.

We'll start with the first three tags that I mentioned. These are very easy to learn, use, and remember.

Note: always remember to close("/") your tags.

<B>This is how you code BOLD text</B>
<I>This is how you code ITALIC text</I>
<U>This is how you code UNDERLINED text</U>
These codes are very easy to remember; B=Bold, I=Italic, and U=Underlined.

Now you are ready to change the size of your text. The way you change text size is by using a "font" tag.

<FONT SIZE=12>This is size 12 text.</FONT>

<FONT SIZE=18>This is size 18 text.</FONT>

<FONT SIZE=5>This is size 5 text.</FONT>

Play around with text sizes until you find the size that fits your page.

After you find the text size to use, you need to figure out what color you would like your text to be, default text color is black so if you don't code in a text color your text will automatically be black. 

Here's how you change the text color.

<FONT COLOR=RED>This text is red!</FONT>

<FONT COLOR=GREEN>This text is green!</FONT>

<FONT COLOR=LIGHTGREEN>This text is light green!</FONT>
Notice that there is no space in "lightgreen" in the html code! Do not put a space here or the code will not work correctly.

You can simply put the name of a color in your code or you can put the color's code number from a color chart that can be found either on your computer(paint) or through a web search. An example is;

<FONT COLOR=330033>This text is purple!</FONT>

Now you can put it all together!

<FONT SIZE=22 COLOR=330033>This text is size 22 and the color is purple(330033)</FONT>

<FONT SIZE=10 COLOR=RED><B><I><U>This text is size 10, red, BOLD, italic, and underlined!</FONT>

Try these out and play with the codes and see what you come up with!


Know you know how to enter text on your website and how to customize your background and fonts. How about spacing it all out?

You don't want your paragraphs to be crunched together, right?

Your web browser will automatically crunch everything together, so you have to tell it not to.

Here's how you fix that...

Dingy's Website
<BODY BACKGROUND="imagefile.jpg">
Hello, welcome to my web page. <P>This is a sample website that I made for you to change!</P>

Notice the "P" in the code? That is a paragraph tag! Look at what it does to that sentence in your web browser.

A paragraph tag does exactly what it sounds like, it makes a new paragraph!

What if you want the text right below another sentence with no space?...

Dingy's Website
<BODY BACKGROUND="imagefile.jpg">
Hello, welcome to my web page. <BR>This is a sample website that I made for you to change!</BR>

Did you see the difference there? The "BR" tag makes a break in the text, instead of having a space between the two sentences you just have one line under the other!

These two are pretty easy to remember too!

BR=Break(no space)

The End

Now you know a little bit more about HTML coding your webpage.

Please keep an eye out for my following hubs on HTML coding!

Thanks and Good Luck with your webpages!


    0 of 8192 characters used
    Post Comment

    • profile image

      a curios designer 7 years ago

      i wish yu would've added more info, but otherwise, it was great!

    • profile image

      Tor 7 years ago

      So, I save this file as example.html, right? And then when I open it, there is all this jibberish text all over. Is there a way to remove this or whats up with that?

    • profile image

      Coralie 7 years ago

      This was very helpful. I'm a student, and one of my courses will eventually be HTML coding, so I'm trying to get some basics in beforehand. This was a great place to start :)

    • profile image

      SHIVA 7 years ago

      Everything worked except for the backgroung color and image but i will figure it out, thanks awesome tips!

    • jonkarna profile image

      jonkarna 8 years ago

      The font tag is deprecated. Use CSS. &lt;span style="font-size: 22px; font-weight: bold; color: red;"&gt;This font is size 22px, bold, and red&lt;/span&gt; I hope that came out right...

    • profile image

      JNS 8 years ago

      I'm trying to code my own chatbox, but im not sure how. Please help.

    • profile image

      Bedroomproductions 8 years ago

      cool man i most defently going 2 b trying it out

    • profile image

      taboka 8 years ago

      wow this is good

    • profile image

      john doe 8 years ago

      VERY IMFORMAL i was basicly the same as mary may!!!

    • profile image

      Mary May 8 years ago

      This is GREAT! It really helped me at school! I even got perfect and my classmates PRAISED me caused it is so simple but still AMAZING!



    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)