# Adding HTML attributes to Scribble \`subsubsection\`

**URL:** <https://racket.discourse.group/t/adding-html-attributes-to-scribble-subsubsection/1296>\
**Category:** Questions & Answers\
**Tags:** scribble, style\
**Created:** [September 11, 2022, 6:56pm UTC](https://racket.discourse.group/t/adding-html-attributes-to-scribble-subsubsection/1296 "2022-09-11T18:56:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sschwarzer](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/sschwarzer/32/1940_2.png) [@sschwarzer](https://racket.discourse.group/u/sschwarzer)\
**Post date:** [September 19, 2022, 11:10am UTC](https://racket.discourse.group/t/adding-html-attributes-to-scribble-subsubsection/1296/3 "2022-09-19T11:10:41Z")

</div>

Given the described bug, it's currently impossible to add a style attribute to a subsubsection. _However_, it's possible to go the other way around and add an `alt-tag` property to an [`elem`](https://docs.racket-lang.org/scribble/base.html#%28def._%28%28lib._scribble%2Fbase..rkt%29._elem%29%29)/[`element`](https://docs.racket-lang.org/scribble/core.html#%28def._%28%28lib._scribble%2Fcore..rkt%29._element%29%29).

Therefore, my workaround now is:

```scheme
@(define entry-subsection-style
   (make-style
     #f
     (list (alt-tag "h5")
           (attributes '((style . "border: none;
                                   padding-top: 0px;
                                   margin-top: 1em;
                                   font-size: 1.4rem;"))))))

@(define (entry-subsection text)
   (elem #:style entry-subsection-style text)))

```

---

_[View the full topic](https://racket.discourse.group/t/adding-html-attributes-to-scribble-subsubsection/1296)._
