ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Using the HTML Element on Weebly

Updated on April 9, 2020
David3142 profile image

I am a former maths teacher and owner of DoingMaths. I create many worksheets and other resources learning many formatting tricks as I go.

Using HTML in Weebly

So you've got your Weebly website up and running using the basic elements such as text and image. Now you're wondering how to use the HTML element. There are many things you can do with this useful element and in this lens I will show some of the more interesting things I have come across.

Photo courtesy of - wikimedia commons

Why use the HTML element?

So why use the HTML element at all? The answer to this is fairly simple; you can add so much more to your site than the Weebly elements alone can give. I have built several websites now using Weebly and I have used the HTML box in most of them, and for a variety of reasons. It's all very easy and requires no prior coding knowledge. Everything on this lens is a matter of copying & pasting and following some simple instructions.

Visitor counter

Second Hand Book Sale wesbite
Second Hand Book Sale wesbite

A nice simple one to start with; the visitor counter. There are many different websites out there offering free visitor counters where you can choose the design you want and how many digits you would like your counter to show. You are then given an HTML code. Paste the code into the HTML element and the counter appears and will start counting visitors to your site.

There are many different designs of counter available and you can see a similar one on my Second hand book website in the above picture. (The picture shows the counter as it appears on the actual site).

Google AdSense

The HTML element also comes in very useful with Google AdSense. Although Weebly has an AdSense element for you to drag onto your page, any proceeds from this are split 50-50 with Weebly. However, anybody with a Pro account is allowed to put AdSense adverts onto their page using the HTML element which then allows you to keep 100% of the earnings.

All you have to do is access your AdSense account, go to the 'My Ads' section, and click on 'New Ad Unit'. Using this you can create whichever size advert you like, play around with the colour scheme to make it fit your site as well as deciding what kind of adverts you would like to show (or not show, as the case may be). You are then given a code to put into your HTML element.

The ad is saved on your AdSense account so that if you create a 'Banner' ad in your chosen colour scheme for one page, you can then add another 'Banner' ad to a different page without having to go through the whole creation again.

Photo courtesy of PNG crusade bot- wikimedia commons

Adding images and GIF animations to your Weebly site

The image element on Weebly is great if you just want to add a simple image. It allows you to alter the size of the image and use some simple effects, and is great if you are adding a normal image from your computer or somebody else's image from a given web address. However, sometimes you might want to add a simple GIF animation to your page and for this the image element just doesn't cut it. The HTML element is what you need. For this to work the GIF image needs to be already hosted on the internet and you need to know its web address.

In your HTML element, copy and paste the following code <img src="url"> replacing url with the url of the image you want to use. Your image will then appear.

If you want to change the size of your image, this requires a little bit of extra code. Simply add height="required size" width="required size" to the above code after the "url" but before the final >.

To enter the correct sizes, find the dimensions of the original picture. To do this, right click and look for the 'dimensions' part. This will give you the height and width of the picture in pixels. To change the size of the image without stretching, you need to multiply both original sizes by the same amount.

E.g. suppose my picture is 150 x 200 pixels. I could double it to 300 x 400, or multiply by 1.5 to get 225 x 300. These would both retain the correct scale, but be larger.


Embedding games and apps

To make my Online Tower Defence website, I made use of the HTML elements to embed the games. To do this find a website which offers you the chance to 'embed this game' or 'embed this quiz' or whatever it is you want to add. The site will give you an HTML code to embed into your HTML element and the game/quiz will appear.

For example, suppose you want to embed the game 'Bloons' onto your website. Simple type 'Bloons embed code' into Google and you should quite easily be able to find a site offering the chance to embed it. Copy and paste the given code into HTML box and you have the game embedded.

This is perfectly legal and moral as the site is giving you permission to embed it by virtue of giving you the code.

Image of 'Bloons' taken from

Weebly social media
Weebly social media

Social Media plug-ins

Weebly has come on a long way recently with regards to adding Social Media buttons to the site and it's very easy to link to your own Facebook/twitter etc. accounts from you Weebly site.

However, the HTML element is extremely useful for adding Social Media buttons to your site. The picture on this module shows part of the home page of my DoingMaths website. Using the HTML element I have added a Facebook 'Like' button, a Google 1+ button, a Pinterest button and a updating Facebook plug-in showing activity on my linked Facebook page.

All of these were done by adding the correct code into the HTML element.

You don't need an account with any of the above social media sites to have these buttons and they are great for SEO purposes as they are ways of telling the search engines that somebody enjoyed your site and wants to let others know.

See the links below for places to find code for these plug-ins.

© 2013 David

New Guestbook Comments

    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)
    ClickscoThis is a data management platform studying reader behavior (Privacy Policy)