HTML中的上标文本<input type ="submit"/>

tom*_*exx 3 html css css3

是否可以在<input>标记的值字段中使用上标文本(例如,与注册标记一起使用)?

<input type="submit" name="submit" value="Sometext&reg;"/>
Run Code Online (Sandbox Code Playgroud)

Sir*_*rko 9

您可以使用<button type="submit">元素而不是<input type="submit">然后您可以在描述中包含您想要的任何标记,例如,<sup>对于上标文本:

<button type="submit">someText with <sup>superscripted parts</sup> </button>
Run Code Online (Sandbox Code Playgroud)