# What is the difference between code#typeans and #typeans

**URL:** <https://forums.ankiweb.net/t/what-is-the-difference-between-code-typeans-and-typeans/14994>\
**Category:** Card Design\
**Created:** [November 16, 2021, 10:09am UTC](https://forums.ankiweb.net/t/what-is-the-difference-between-code-typeans-and-typeans/14994 "2021-11-16T10:09:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nici](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/nici/32/7145_2.png) [@Nici](https://forums.ankiweb.net/u/Nici)\
**Post date:** [November 16, 2021, 10:09am UTC](https://forums.ankiweb.net/t/what-is-the-difference-between-code-typeans-and-typeans/14994/1 "2021-11-16T10:09:10Z")

</div>

[The wiki entry](https://docs.ankiweb.net/templates/fields.html#checking-your-answer) did not make it clear enough and I couldn’t figure it out through trial and error.

So here I am…

---

<div class="post-metadata">

**Author:** ![Rumo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/rumo/32/1505_2.png) [@Rumo](https://forums.ankiweb.net/u/Rumo)\
**Post date:** [November 16, 2021, 11:40am UTC](https://forums.ankiweb.net/t/what-is-the-difference-between-code-typeans-and-typeans/14994/2 "2021-11-16T11:40:31Z")

</div>

Those are CSS selectors. `code#typeans` means "an HTML `code` tag with id `typeans`". Since ids are unique in well-formed HTML documents, these selectors should be equivalent.

---

<div class="post-metadata">

**Author:** ![Nici](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/nici/32/7145_2.png) [@Nici](https://forums.ankiweb.net/u/Nici)\
**Post date:** [November 16, 2021, 12:53pm UTC](https://forums.ankiweb.net/t/what-is-the-difference-between-code-typeans-and-typeans/14994/3 "2021-11-16T12:53:43Z")

</div>

Thanks, [that makes sense](https://www.w3schools.com/cssref/sel_id.asp) ( ´ ▽ ` )b

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 7:37am UTC](https://forums.ankiweb.net/t/what-is-the-difference-between-code-typeans-and-typeans/14994/4 "2023-05-01T07:37:57Z")

</div>

Closed on May 1, 2023, 7:37am UTC


