标签: HTML

6 个内容

笔记(3)

本文深入探讨了HTML到Markdown转换的技术本质,包括两者范式差异、转换器挑战、DOM解析、标签转换规则和样式处理策略。讨论了工程实践中的常见问题、性能优化、工具链整合及AI辅助转换的未来趋势。最后给出了工具选型建议和质量验证流程。

Elliot Yang·
128 浏览

本文总结了 HTML 规范的细节,包括:关闭表单自动填充(`autocomplete="off"`及`new-password"`),各浏览器表现差异,`autocomplete`属性值详解,以及自动填充样式的重置方案(box-shadow)。同时提到了移动端 `cursor: pointer`的影响,域名解析库psl,cookie中domain设置差异,拖拽效果实现,img标签alt属性优化SEO和无障碍,以及iOS拍照图片旋转问题。

Elliot Yang·
102 浏览

HTML标准元素自带键盘可访问性,自定义组件需使用`tabindex`属性确保可访问。`tabindex="0"`将元素加入Tab顺序,`-1`移除。避免使用`tabindex > 0`,因其破坏DOM顺序,影响屏幕阅读器体验。Lighthouse可检测`tabindex > 0`的问题。

Elliot Yang·
108 浏览

动态(3)

E
Elliot Yang
公开

via efsg

浏览:163点赞:0
E
Elliot Yang
公开

How to use React label element?

If you try to render a <label> element bound to a text input using the standard for attribute, then it produces HTML missing that attribute and prints a warning to the console.
js
1<label for={'user'}>{'User'}</label>
2<input type={'text'} id={'user'} />
Since for is a reserved keyword in JavaScript, use htmlFor instead.
js
1<label htmlFor={'user'}>{'User'}</label>
2<input type={'text'} id={'user'} />
浏览:244点赞:0