it is better to not write css inside html, there is always a file beside each component with .css or .scss which you can write your css there, you just need to assign a class to your html element and then use that class like:
in html file:
<button class="test"></button>
in css file:
https://github.com/amezenin/encyclopedia-frontend/blob/1d5ccf32e76e932d6ebbb4e0337173fb836f191e/src/app/article/article-list/article-list.component.html#L21
it is better to not write
css
insidehtml
, there is always a file beside each component with.css
or.scss
which you can write your css there, you just need to assign a class to your html element and then use that class like: in html file:<button class="test"></button>
in css file: