# Set title with any level header

**URL:** <https://talk.observablehq.com/t/set-title-with-any-level-header/4835>\
**Category:** Help\
**Created:** [March 28, 2021, 9:10am UTC](https://talk.observablehq.com/t/set-title-with-any-level-header/4835 "2021-03-28T09:10:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abitrolly](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/abitrolly/32/7214_2.png) [@abitrolly](https://talk.observablehq.com/u/abitrolly)\
**Post date:** [March 28, 2021, 9:10am UTC](https://talk.observablehq.com/t/set-title-with-any-level-header/4835/1 "2021-03-28T09:10:58Z")

</div>

Are there any reason not to use any level header for notebook titles? As described in this topic only level 1 header changes the title now.

> [@Newbie's questions: Notebook names, saving, and publishing](https://talk.observablehq.com/t/newbies-questions-notebook-names-saving-and-publishing/542):
>
> I’m just getting started and there’s a lot in the UI that isn’t obvious to me. I’ve made some errors, and I don’t know how to clean them up! My notebooks are always “Untitled.” How can I change that? When I make a new notebook, its name is “Untitled,” and so it over-writes my existing “Untitled,” and I lose all my work! If I can rename notebooks I could avoid this. Better yet, if the new notebook was named “Untitled2”, then “Untitled3”, and so on. Hoping to save my little test notebook …

---

<div class="post-metadata">

**Author:** ![tophtucker](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/tophtucker/32/4781_2.png) [@tophtucker](https://talk.observablehq.com/u/tophtucker)\
**Post date:** [March 28, 2021, 10:48pm UTC](https://talk.observablehq.com/t/set-title-with-any-level-header/4835/2 "2021-03-28T22:48:30Z")

</div>

Hi Anatoli, can you describe what you’re trying to achieve?

Currently, you can set [custom URLs](https://next.observablehq.com/@observablehq/custom-notebook-urls) and custom thumbnails, and you can style the h1 tag however you’d like (as described in that thread you linked to) — but the `<h1>` is the only way to set the notebook title.

I didn’t work here when that decision was made; I imagine the reason was the simplicity of matching the notebook metadata to the semantics of the HTML in the notebook. (If it could be based on `<h2>` tags, I imagine more ambiguity about which tag corresponds to the title, or more steps in the publishing workflow.) It has worked well for me, but of course there are cases it doesn’t cover, so let me know what you’re going for!

---

<div class="post-metadata">

**Author:** ![abitrolly](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/abitrolly/32/7214_2.png) [@abitrolly](https://talk.observablehq.com/u/abitrolly)\
**Post date:** [March 29, 2021, 12:02pm UTC](https://talk.observablehq.com/t/set-title-with-any-level-header/4835/3 "2021-03-29T12:02:55Z")

</div>

I don’t like the default overcapitalization of `<h1>` tag, therefore I use less screaming headers. I thought that the first title found is used. But recently discovered that my notebooks are Untitled because of that.

---

<div class="post-metadata">

**Author:** ![tophtucker](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/tophtucker/32/4781_2.png) [@tophtucker](https://talk.observablehq.com/u/tophtucker)\
**Post date:** [March 29, 2021, 6:32pm UTC](https://talk.observablehq.com/t/set-title-with-any-level-header/4835/4 "2021-03-29T18:32:02Z")

</div>

Ah, so like it’s too big? You can make the `<h1>` any size you’d like; e.g., `<h1 style="font-size: 1.5em;">My Chart Title</h1>` makes it the same size as our standard `<h2>`, with the advantage of being semantically clearer about being the topmost title.

If you want to do this on all your notebooks, you could make a style cell that you import into every notebook, like:

```auto
style = html`<style>
h1 {
  font-size: 1.5em;
}
</style>`

```

If the url of that is `@abitrolly/style`, you can import it like:

```auto
import {style} from "@abitrolly/style"

```

And then apply the styles by rendering `style` in a new cell:

```auto
style

```

(It’d be nice if you could make your default new notebook include that, which is something we sometimes talk about, but for now it’s a couple manual steps each time.)
