From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/html/element/hr/index.html | 129 ++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 files/ru/web/html/element/hr/index.html (limited to 'files/ru/web/html/element/hr') diff --git a/files/ru/web/html/element/hr/index.html b/files/ru/web/html/element/hr/index.html new file mode 100644 index 0000000000..8776efb3aa --- /dev/null +++ b/files/ru/web/html/element/hr/index.html @@ -0,0 +1,129 @@ +--- +title: '
: The Thematic Break (Horizontal Rule) element' +slug: Web/HTML/Element/hr +translation_of: Web/HTML/Element/hr +--- +
{{HTMLRef}}
+ +

HTML <hr> элемент служит для тематического разделения абзацев.Рисует горизонтальную прямую

+ +
{{EmbedInteractiveExample("pages/tabbed/hr.html", "tabbed-shorter")}}
+ + + +

Historically, this has been presented as a horizontal rule or line. While it may still be displayed as a horizontal rule in visual browsers, this element is now defined in semantic terms, rather than presentational terms, so if you wish to draw a horizontal line, you should do so using appropriate CSS.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Content categoriesFlow content.
Permitted contentNone, it is an {{Glossary("empty element")}}.
Tag omissionIt must have start tag, but must not have an end tag.
Permitted parentsAny element that accepts flow content.
Implicit ARIA role{{ARIARole("separator")}}
Permitted ARIA roles{{ARIARole("presentation")}} or {{ARIARole("none")}}
DOM interface{{domxref("HTMLHRElement")}}
+ +

Attributes

+ +

This element's attributes include the global attributes.

+ +
+
{{htmlattrdef("align")}} {{deprecated_inline}}
+
Задает правило выравнивания.По умолчанию значение выставленно как left
+
{{htmlattrdef("color")}} {{Non-standard_inline}}
+
Задает цвет линии
+
{{htmlattrdef("noshade")}} {{deprecated_inline}}
+
Sets the rule to have no shading.
+
{{htmlattrdef("size")}} {{deprecated_inline}}
+
Устанавливает высоту в px
+
{{htmlattrdef("width")}} {{deprecated_inline}}
+
Задает длину линии в px либо в %
+
+ +

Example

+ +

HTML

+ +
<p>
+  Это первый параграф текста
+  Это первый параграф текста
+  Это первый параграф текста
+  Это первый параграф текста
+</p>
+
+<hr>
+
+<p>
+  Это второй параграф текста
+  Это второй параграф текста
+  Это второй параграф текста
+  Это второй параграф текста
+</p>
+ +

Result

+ +

{{EmbedLiveSample("Example")}}

+ +

Specifications

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', 'semantics.html#the-hr-element', '<hr>')}}{{Spec2('HTML WHATWG')}}Definition of the <hr> element
{{SpecName('HTML5 W3C', 'grouping-content.html#the-hr-element', '<hr>')}}{{Spec2('HTML5 W3C')}}
{{SpecName('HTML4.01', 'present/graphics.html#h-15.3', '<hr>')}}{{Spec2('HTML4.01')}}The align, noshade, size, and width attributes are deprecated
+ +

Browser compatibility

+ + + +

{{Compat("html.elements.hr")}}

+ +

See also

+ + -- cgit v1.2.3-54-g00ecf