Skip to main content

HTML tag types and how to set them

Learn about the HTML tags you can apply to boxes in Studio.Design, along with step-by-step instructions for setting them.

Common types of tags

HTML includes many different types of elements, such as heading tags (like <h1>) and paragraph tags (like <p>). Setting the right tags makes it easier for search engines to understand your content, and improves accessibility, too.

Tips:

Tags for text boxes

By default, text boxes use the <p> tag. You can change it to any of the following:

  • <p>: A paragraph.

  • <h1>–<h6>: A heading. The lower the number, the higher the heading level.

  • <li>: An item within a list.

  • <span>: Has no special meaning on its own; it simply groups part of your text. Its child elements can use heading tags <h1>–<h6> or the <p> tag.

Tags for boxes and image boxes

By default, boxes and image boxes use the <div> tag. You can change it to any of the following:

  • <div>: Has no specific meaning; used for grouping elements.

  • <nav>: A navigation area.

  • <header>: Used for logos and navigation groups.

  • <footer>: An area for information like copyright notices and terms of use.

  • <section>: A section made up of a heading and its content.

  • <article>: A self-contained piece of content.

  • <main>: The main content area of the page. Use it only once per page.

  • <ul>: A group of list items.

  • <li>: An individual item within a list.

  • <label>: Used to group form fields.

  • <h1>–<h6>: You can apply heading tags <h1>–<h6> only to boxes whose child elements consist solely of images and text (such as <span>). For details, see HTML heading tags <h1> – <h6>.

  • <p>: You can also apply the <p> tag as long as the same condition is met (child elements consist solely of images and text, such as <span>).

How to set a tag

In Studio.Design, regular boxes use <div> by default, and text boxes use <p> by default.

  1. Select the box you want to set a tag for.

  2. Open the [Settings] tab in the right panel.

  3. Choose the tag you want from the [Tag] options.

    Note: If the <h1> heading tag doesn't appear in the list of options, see HTML heading tags <h1> – <h6>.

tag source code script

source code html htlm

Did this answer your question?