Help center / Advanced page

HTML and CSS reference

Every tag, attribute, CSS feature, address and limit for Advanced pages.

The complete list of what custom code on an Advanced page may use. Anything else is removed when you save; the editor shows what before you publish. For a walkthrough, see Make your page with HTML, step by step.

Tags kept

a abbr address article aside b bdi bdo big blink blockquote br caption center cite code col colgroup data dd del details dfn div dl dt em figcaption figure font footer h1–h6 header hgroup hr i img ins kbd li main mark marquee menu nav nobr ol p pre q rp rt ruby s samp section small span strike strong style sub summary sup table tbody td tfoot th thead time tr tt u ul var video wbr, and link for stylesheets.

SVG: svg g path circle ellipse rect line polyline polygon, with their drawing attributes (viewBox, d, fill, stroke, transform, sizes and positions).

Tags unwrapped (the content stays)

button label form picture dialog and any tag not listed here: the tag goes, the text and pictures inside it stay.

Tags removed with their content

script noscript iframe frame object embed applet template input select option textarea audio source track canvas map area meta base title head math

Attributes

class id style title lang dir role aria-* alt width height loading align valign colspan rowspan span scope open start reversed type value datetime tabindex and the old presentational ones (bgcolor color face size border cellpadding cellspacing nowrap hspace vspace, marquee's direction behavior scrollamount scrolldelay loop).

href on links, src on pictures and videos. Videos may also use autoplay muted loop playsinline controls preload.

Addresses

Where Allowed
Links (href) https://, http://, mailto:, tel:, #page
Pictures, videos, CSS url(), fonts, stylesheets Your uploads, any https:// address, data:image/webp pictures and small data:image/svg+xml drawings
Not allowed anywhere javascript:, plain http:// for files, addresses with a user name or password

CSS

Everything that styles a page, kept as written, including custom properties (--color), nesting, @media, @supports, @container, @layer, @scope, @keyframes, @font-face, @property, @counter-style and @page. @import of a stylesheet becomes a <link>.

Removed, one declaration at a time: expression(), behavior, -moz-binding, image-set(), element(), paint() and any url() that is not an allowed address.

Built in

  • Pages start with no margin around the body, like a site builder. Your own CSS overrides that.
  • Countdown: <time class="lk-timer" datetime="2030-01-01T00:00:00Z" title="Text when it ends"></time>.
  • Clicks on web links are counted in your stats.

Limits

What Limit
Pages 10
Uploaded pictures and videos 10 per site
Code, all pages plus shared styles 512,000 characters
Outside stylesheets 8 per site
A WebP picture written into the code (data:image/webp) 400 KB