Help center / Advanced page

Using your own HTML and CSS

What custom HTML can do, and what is removed to keep visitors safe.

In the Advanced editor, switch to the HTML tab. It is the same page as the Visual tab, shown as code. The editor shows a live preview and tells you what would be removed before you publish. Drag the divider to give either side more room.

Pages

The tabs above switch pages, and + Page adds one. Under the tabs you can rename, reorder and delete the page you are on.

Put CSS and fonts in Shared styles. Whatever is there is added to every page, so you only write it once.

To link to another page, use its address, like <a href="#about">About</a>. Two tools write this for you:

  • Link to a page inserts a link to the page you pick.
  • Add page buttons inserts a row of buttons, one for each page.

What you can use

  • Standard HTML for text, layout, lists and tables, plus retro favorites like <marquee>.
  • CSS in <style> tags and style attributes, including @media and @keyframes.
  • Google Fonts, with a <link> or @import from fonts.googleapis.com.
  • Simple SVG shapes: svg, g, path, circle, ellipse, rect, line, polyline and polygon.
  • Links to web addresses, mailto:, tel: and your own pages. Web links open in a new tab.
  • Countdowns: <time class="lk-timer" datetime="2030-01-01T00:00:00Z" title="It's here!"></time>.

Images

Press Upload image. It adds an <img> tag pointing to your file. Images hosted on other sites are removed, since each one would let that site log the address of everyone who opens your page. Up to 10 images across the whole site.

What is removed

Scripts, event handlers like onclick, forms and inputs, iframes and other embeds, video and audio, and <meta> and <base> tags.

There is no way to turn this off. Your page is opened by your visitors, so it must not be able to run code in their browser, ask for their passwords or send them somewhere else without a click.

How it is protected

HTML is filtered on the server each time it is saved and again when it is shown. It is then displayed in a locked-down frame that cannot reach your Linky account or a visitor's. The only code allowed to run there is one small script of Linky's, which keeps timers ticking and counts link clicks.

All your pages and shared styles together can be up to 512,000 characters.