Which is the proper way to store component

In the 3rd course in the Html/Css series, lesson 17, Input Groups, Mosh creates an input and an input-group. Here is the input: <input type="text" placeholder="Enter domain name here..." class="input" /> and the input-group: `


<input type=“text” placeholder=“Enter domain name here…” class="input />
<button class="btn btn–accent>Search

` . Which one should be saved as a component as inputs.html in the components directory?