>1 <br/>标签
<br/> 标签用来对文档中的文本进行换行的处理。
- <br/> 标签插入一个简单的换行符。
- <br/> 标签是一个空标签[单标签],意味着它没有结束标签。
>2 <button></button>标签
<button> 标签定义一个按钮。
- <button> 元素内部,可以放置内容,比如文本或图像。
- 这是该元素与使用 <input> 元素创建的按钮之间的不同之处。
- 始终为 <button> 元素规定 type 属性。
- 不同的浏览器对 <button> 元素的 type 属性使用不同的默认值。
属性 | 值 | 描述 |
---|---|---|
autofocus | autofocus | 规定当页面加载时按钮应当自动地获得焦点。 |
disabled | disabled | 规定应该禁用该按钮。 |
form | form_id | 规定按钮属于一个或多个表单。 |
formaction | URL | 规定当提交表单时向何处发送表单数据。覆盖 form 元素的 action 属性。该属性与 type="submit" 配合使用。 |
formenctype | application/x-www-form-urlencoded multipart/form-data text/plain | 规定在向服务器发送表单数据之前如何对其进行编码。覆盖 form 元素的 enctype 属性。该属性与 type="submit" 配合使用。 |
formmethod | get post | 规定用于发送表单数据的 HTTP 方法。覆盖 form 元素的 method 属性。该属性与 type="submit" 配合使用。 |
formnovalidate | formnovalidate | 如果使用该属性,则提交表单时不进行验证。覆盖 form 元素的 novalidate 属性。该属性与 type="submit" 配合使用。 |
formtarget | _blank _self _parent _top framename | 规定在何处打开 action URL。覆盖 form 元素的 target 属性。该属性与 type="submit" 配合使用。 |
name | name | 规定按钮的名称。 |
type | button reset submit | 规定按钮的类型。 |
value | text | 规定按钮的初始值。可由脚本进行修改。 |
语法:
<button type="button">点我!</button>
>3 <dbo></dbo>标签
<bdo> 标签覆盖默认的文本方向。
bdo 指的是 bidi 覆盖(Bi-Directional Override)。
属性 | 值 | 描述 | |
---|---|---|---|
dir | ltr | 从左向右的文本方向。 | 必需。定义文本方向。 |
rtl | 从右向左的文本方向。 |
语法:
<bdo dir="rtl">该段落文字从右到左显示</bdo>
一直在路上,自律,坚持