A widget is a small, self-contained piece of a website that does one job: shows your Google reviews, lets people book an appointment, displays a map, or opens a live chat. On a website, the word usually means a block you add to a page rather than build yourself, often supplied by another company.
How a website widget gets onto your page
Most third-party widgets arrive as a snippet of embed code. You paste it into your page, and when a visitor loads the page their browser runs it. The snippet usually does one of two things: loads a script from the provider that draws the widget directly into your page, or creates an iframe, a framed window showing a page hosted by the provider. Either way the content and logic live on the provider's servers, so the widget updates itself without you touching your site.
The word also has a second, narrower meaning. In WordPress, "widgets" are the blocks you place in widget areas such as a sidebar or footer: recent posts, a search box, a category list. Phones and operating systems use the word for home-screen tiles, which is unrelated to websites.
Widgets small sites commonly add
- A Calendly or similar scheduling box that lets clients pick a meeting time.
- A Google Maps embed showing where your shop is.
- An Instagram feed strip showing your latest posts.
- A chat bubble in the corner from a support tool.
A plumber's site, for instance, might combine a reviews widget on the homepage, a map on the contact page and a booking widget on the services page, without writing any of that functionality.
When widgets are worth it
Widgets are the fastest way to add a feature a specialist company already does well. They make sense when the feature needs live data or a back end you do not want to run, such as scheduling or payments. They are less sensible for things your site could show as plain content, like a static list of opening hours.
Widget mistakes that cost you
- Stacking too many. Each one can load its own scripts, fonts and trackers, and a page with five widgets can become noticeably slower.
- Forgetting privacy rules. Embedded social feeds and chat tools often set cookies, which may need to appear in your consent banner and privacy policy.
- Assuming search engines read them. Text inside an iframe belongs to the provider's page, not yours, so do not rely on a review widget to put those words on your page for search.
- Ignoring mobile. A fixed-width widget can overflow small screens. Test it on a phone.
- Losing the account. If the provider account lapses, the widget disappears or shows an error on your live site.
Related terms
- Embed code: the snippet that places most widgets.
- Iframe: the frame many widgets display inside.
- Plugin: extends the site software itself rather than one spot on a page.
- Chatbot: a common widget type in the corner of a page.