मुख्य भागमा जानुहोस्
  1. गृहपृष्ठ
  2. मद्दत केन्द्र
  3. Websites

Add your own HTML, CSS and JavaScript

Design anything on your website with your own code, without putting your visitors or your account at risk.

ToolWhereWhat it is for
HTML & CSS blockEditor → Add → Your own codeYour own layout and styles inside the page. Search engines read it like the rest of the page.
Code blockEditor → Add → Your own codeWidgets with JavaScript: calculators, countdowns, slideshows, and embed codes from other services.
Your CSSEditor → Design → Your CSSStyles for every page of the website, on top of your design (plans with full design customization).
Analytics, pixels and verificationWebsite settingsGoogle Analytics, Google Ads, Meta Pixel, TikTok Pixel, Microsoft Clarity and search-engine verification, by ID.

Your plan page shows which plans include each tool.

The code editor

Select the block and press Edit code.

  • One tab per file (HTML, CSS, JavaScript) with colours, suggestions as you type, matching brackets and automatic closing tags.
  • A live preview next to your code, at computer, tablet or phone width. HTML and CSS update as you type; JavaScript runs when you press Run (Ctrl+Enter), or as you type if you tick Update as I type.
  • Snippets: ready-made price lists, notices, questions and answers, feature cards, a YouTube video, a countdown, an EMI calculator, a VAT calculator, a slideshow, tabs, and a place to paste an embed code.
  • Your design: your website's colours, fonts and button styles as CSS variables (for example var(--c-primary)), so your code matches when you change the design.
  • Parts that look mistyped are underlined. Fix indentation tidies the lines; Ctrl+F finds and replaces; Ctrl+S saves.
  • Your code is saved to the draft. Visitors see it when you Publish, and every published version stays in History.

HTML & CSS blocks

The HTML is placed in the page itself, so it loads fast and counts for search. Before it is shown it is cleaned with a safe list, and the editor tells you what was removed:

  • Kept: text, headings, lists, tables, pictures, links, video and audio, <details> questions, SVG drawings, and frames from YouTube, Vimeo, Google Maps, Google Forms, Docs and Drive, Facebook, Instagram, TikTok, Spotify, SoundCloud, Calendly, Canva and Airtable. Also class, id, style and aria-* attributes, and <style>.
  • Removed: <script>, event attributes such as onclick, javascript: links, forms and buttons, data-* attributes, frames from other websites, and ids that the website itself uses (starting with kb, s-, fr- or x-).

Your CSS only styles that block: every rule is placed inside it. To style the block itself, start a rule with body, html or :root. A Google Fonts @import is allowed at the top.

Code blocks (JavaScript)

A Code block runs in its own sandbox, a separate origin, which is how Google Sites and Wix run code they did not write. Your code can use any script or embed code, but it cannot read your page, your visitors' cookies or your dashboard, and it cannot change the page around it.

  • Turn on Grow to fit its content and the block takes the height of what it shows.
  • Turn on Use my website's fonts, colours and buttons to use the s-btn button class and the colour variables inside it.
  • Links open in the whole window when clicked. Pop-ups are allowed.
  • In a sandbox there are no cookies or local storage, so widgets that need a sign-in, or that float over the whole page (such as chat bubbles), may not work inside a block. For analytics and ad pixels use Website settings instead.

Your CSS

Applies to every page of the website, after your design, including the shop's catalog and product pages. It is cleaned like CSS in blocks, but not limited to one block. Use it for fonts, spacing, buttons and anything the design panel does not offer. It is part of full design customization in your plan. The footer's Report link and, on plans that show it, the Made with badge stay visible whatever the CSS says.

Analytics, pixels and verification

Paste only the ID, for example G-XXXXXXXXXX. We add the provider's official tag to every page of your live website (not the editor's preview). If you use analytics or pixels, say so in your privacy notice.

Limits

Up to 100 KB of HTML, 50 KB of CSS and 100 KB of JavaScript in each block, and 50 KB of website CSS. Changes to your own code are recorded in your workspace's activity log.

के यो उपयोगी भयो?