HTML链接或引用标记

时间:2012-06-26 10:16:49

标签: html tags

是否有任何标记可以创建链接或其他html标记的引用?

例如

<form>
    <label>Email</label><input name="email" type="text" /><span class="required">*</span> 
    <label>Password</label><input name="password" type="text" /><reference selector=".required" />
</form>

用户实际上会看到:

<form>
    <label>Email</label><input name="email" type="text" /><span class="required">*</span> 
    <label>Password</label><input name="password" type="text" /><span class="required">*</span> 
</form>

2 个答案:

答案 0 :(得分:0)

在HTML5中,您可以使用必需属性,如果这可以帮助您在此特定方案中...

我不确定你的参考标签!

W3Schools Resource Here

答案 1 :(得分:0)

尝试使用jQuery。您应该能够找到一个模式(在这种情况下是参考标记),然后将其替换为特定的HTML代码。

相关问题