Hướng dẫn how do i put a horizontal line between words in html? - làm cách nào để đặt một đường ngang giữa các từ trong html?

Tôi đã tìm kiếm một số giải pháp cho trang trí đơn giản này và tôi đã tìm thấy khá nhiều loại, một số điều kỳ lạ, một số thậm chí với JS để tính toán chiều cao của phông chữ và bla, bla, bla, sau đó tôi đã đọc Một trong bài đăng này và đọc một bình luận từ baydot nói về fieldsetlegend và tôi nghĩ đó là nó.thirtydot speaking about fieldset and legend and I thought that was it.

Tôi đang ghi đè lên 2 kiểu yếu tố đó, tôi đoán bạn có thể sao chép các tiêu chuẩn W3C cho chúng và đưa nó vào lớp .middle-line-text của bạn (hoặc bất cứ điều gì bạn muốn gọi nó) nhưng đây là những gì tôi đã làm:




Đây là fiddle: http://jsfiddle.net/legnaleama/3t7wjpa2/

Tôi đã chơi với các kiểu biên giới và nó cũng hoạt động trong Android;) (được thử nghiệm trên KitKat 4.xx)

EDIT:

Theo ý tưởng của Bekerov Artur cũng là một tùy chọn hay, tôi đã thay đổi hình ảnh .png Base64 để tạo đột quỵ bằng .SVG để bạn có thể hiển thị trong bất kỳ độ phân giải nào và cũng thay đổi màu của phần tử mà không cần bất kỳ phần mềm nào khác liên quan :)

/* SVG solution based on Bekerov Artur */
/* Flexible solution, scalable, adaptable and also color customizable*/
.stroke {
background-image: url("data:image/svg+xml;utf8,");
background-repeat: repeat-x;
background-position: left;
text-align: center;
}
.stroke h3 {
background-color: #ffffff;
margin: 0 auto;
padding:0 10px;
display: inline-block;
font-size: 66px;
}

/* SVG solution based on Bekerov Artur */
/* Flexible solution, scalable, adaptable and also color customizable*/
.stroke {
background-image: url("data:image/svg+xml;utf8,");
background-repeat: repeat-x;
background-position: left;
text-align: center;
}
.stroke h3 {
background-color: #ffffff;
margin: 0 auto;
padding:0 10px;
display: inline-block;
font-size: 66px;
}
3<
/* SVG solution based on Bekerov Artur */
/* Flexible solution, scalable, adaptable and also color customizable*/
.stroke {
background-image: url("data:image/svg+xml;utf8,");
background-repeat: repeat-x;
background-position: left;
text-align: center;
}
.stroke h3 {
background-color: #ffffff;
margin: 0 auto;
padding:0 10px;
display: inline-block;
font-size: 66px;
}
90
/* SVG solution based on Bekerov Artur */
/* Flexible solution, scalable, adaptable and also color customizable*/
.stroke {
background-image: url("data:image/svg+xml;utf8,");
background-repeat: repeat-x;
background-position: left;
text-align: center;
}
.stroke h3 {
background-color: #ffffff;
margin: 0 auto;
padding:0 10px;
display: inline-block;
font-size: 66px;
}
91<6
/* SVG solution based on Bekerov Artur */
/* Flexible solution, scalable, adaptable and also color customizable*/
.stroke {
background-image: url("data:image/svg+xml;utf8,");
background-repeat: repeat-x;
background-position: left;
text-align: center;
}
.stroke h3 {
background-color: #ffffff;
margin: 0 auto;
padding:0 10px;
display: inline-block;
font-size: 66px;
}
93
/* SVG solution based on Bekerov Artur */
/* Flexible solution, scalable, adaptable and also color customizable*/
.stroke {
background-image: url("data:image/svg+xml;utf8,");
background-repeat: repeat-x;
background-position: left;
text-align: center;
}
.stroke h3 {
background-color: #ffffff;
margin: 0 auto;
padding:0 10px;
display: inline-block;
font-size: 66px;
}
94
/* SVG solution based on Bekerov Artur */
/* Flexible solution, scalable, adaptable and also color customizable*/
.stroke {
background-image: url("data:image/svg+xml;utf8,");
background-repeat: repeat-x;
background-position: left;
text-align: center;
}
.stroke h3 {
background-color: #ffffff;
margin: 0 auto;
padding:0 10px;
display: inline-block;
font-size: 66px;
}
90>

/* SVG solution based on Bekerov Artur */
/* Flexible solution, scalable, adaptable and also color customizable*/
.stroke {
background-image: url("data:image/svg+xml;utf8,");
background-repeat: repeat-x;
background-position: left;
text-align: center;
}
.stroke h3 {
background-color: #ffffff;
margin: 0 auto;
padding:0 10px;
display: inline-block;
font-size: 66px;
}
3<
/* SVG solution based on Bekerov Artur */
/* Flexible solution, scalable, adaptable and also color customizable*/
.stroke {
background-image: url("data:image/svg+xml;utf8,");
background-repeat: repeat-x;
background-position: left;
text-align: center;
}
.stroke h3 {
background-color: #ffffff;
margin: 0 auto;
padding:0 10px;
display: inline-block;
font-size: 66px;
}
90
/* SVG solution based on Bekerov Artur */
/* Flexible solution, scalable, adaptable and also color customizable*/
.stroke {
background-image: url("data:image/svg+xml;utf8,");
background-repeat: repeat-x;
background-position: left;
text-align: center;
}
.stroke h3 {
background-color: #ffffff;
margin: 0 auto;
padding:0 10px;
display: inline-block;
font-size: 66px;
}
91<6__202

Làm cách nào để thêm một đường ngang giữa văn bản trong HTML?

  • Thẻ là một thẻ trống. Nó có nghĩa là nó không yêu cầu một thẻ cuối. Vì vậy, bạn cần gõ để thêm một dòng ngang vào trang HTML.
  • Làm thế nào để bạn tạo một đường phân cách ngang trong HTML?
  • /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    90
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    91<6
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    93
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    94
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    90>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    90
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    91<6__202

    Làm cách nào để thêm một đường ngang giữa văn bản trong HTML?

    Thẻ là một thẻ trống. Nó có nghĩa là nó không yêu cầu một thẻ cuối. Vì vậy, bạn cần gõ để thêm một dòng ngang vào trang HTML.

    • Làm thế nào để bạn tạo một đường phân cách ngang trong HTML?
    • Thẻ HTML Thẻ trong HTML là viết tắt của quy tắc ngang và được sử dụng để chèn quy tắc ngang hoặc ngắt chủ đề trong trang HTML để chia hoặc các phần tài liệu riêng biệt. Thẻ là một thẻ trống và nó không yêu cầu thẻ cuối. Được sử dụng để chỉ định sự liên kết của quy tắc ngang.

    Xem thảo luận

    Thêm đường ngang bằng thẻ: Thẻ quy tắc ngang () được sử dụng cho mục đích chèn các đường ngang vào tài liệu HTML để phân tách các phần của tài liệu. Nó là một thẻ trống hoặc không ghép đôi có nghĩa là không cần thẻ đóng.


    tag: The Horizontal Rule tag (
    ) is used for the purpose of inserting horizontal lines in the HTML document in order to separate sections of the document. It is an empty or unpaired tag that means there is no need for the closing tag.

    Syntax:

     

    Ví dụ 1: Ví dụ này mô tả & nbsp; Tag để thêm đường ngang.This example describes the  


    tag to add the horizontal line.

    HTML

    <html>

    <

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    1>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    5
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    6
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    5>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    9
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    1>

    <

     
    3>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<
     
    7
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    6
     
    7>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<fieldset3>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<fieldset7fieldset8fieldset7>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    9
     
    3>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    9html>

    Output:

    Hướng dẫn how do i put a horizontal line between words in html? - làm cách nào để đặt một đường ngang giữa các từ trong html?

    Ví dụ 2: Ví dụ này mô tả thẻ với các thuộc tính khác nhau và các giá trị của chúng để tạo kiểu đường ngang.This example describes the


    tag with various attribute & their values to style the horizontal line.

    HTML

    <html>

    <

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    1>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    5.middle-line-text7
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    5>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    9
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    1>

    <

     
    3>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<
     
    79
     
    7>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<fieldset3 ________ 75 ________ 76 ________ 77 & nbsp;

    <8<9<6html

    <8html3<6html5>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<fieldset3 ________ 75 ________ 76 ________ 77 & nbsp;

    <8<9<6html

    <8html3<6

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    00 

    <8

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    022.

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<fieldset3 ________ 75 ________ 76 ________ 111 ​​& nbsp;

    <8

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    02<6
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    15 

    <8<9<6

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    19 

    <8html3<6

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    23
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    24

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    9
     
    3>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    9html>

    Output:

    Hướng dẫn how do i put a horizontal line between words in html? - làm cách nào để đặt một đường ngang giữa các từ trong html?

    Thêm đường ngang bằng các thuộc tính CSS: trong trường hợp này, chúng tôi sẽ sử dụng thuộc tính kiểu đường viền để tạo đường ngang. Chúng ta có thể sử dụng thuộc tính Border-Top để chỉ định kiểu của đường viền trên cùng hoặc thuộc tính Border-Bottom, có thể đặt kiểu của đường viền dưới cùng của một phần tử. Cả hai thuộc tính có thể được sử dụng để thêm đường ngang.In this case, we will be using the border-style Propertyto create the horizontal line. We can either use the border-top property that specifies the style of the top border or the border-bottom property, which can set the style of the bottom border of an element. Both properties can be used to add the horizontal line.

    Ví dụ 3: Ví dụ này mô tả bản vẽ của đường ngang bằng cách sử dụng thuộc tính kiểu đường viền.This example describes the drawing of the horizontal line using the border-style Property.

    HTML

    <html>

    <

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    1>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    5
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    41
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    5>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    46>

    <8

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    49

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    50
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    51

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    50
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    53

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    50
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    55

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    50
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    57

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    50
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    59

    <8

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    61

    <8

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    63

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    50
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    65

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    50
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    67

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<fieldset3 ________ 75 ________ 76 ________ 77 & nbsp;

    <8

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    61

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    9
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    46>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    9
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    1>

    <

     
    3>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<
     
    7
    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    41
     
    7>

    <8

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    022.

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    3<fieldset3 ________ 75 ________ 76 ________ 111 ​​& nbsp;

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    9
     
    3>

    /* SVG solution based on Bekerov Artur */
    /* Flexible solution, scalable, adaptable and also color customizable*/
    .stroke {
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: repeat-x;
    background-position: left;
    text-align: center;
    }
    .stroke h3 {
    background-color: #ffffff;
    margin: 0 auto;
    padding:0 10px;
    display: inline-block;
    font-size: 66px;
    }
    
    9html>

    Output:

    Hướng dẫn how do i put a horizontal line between words in html? - làm cách nào để đặt một đường ngang giữa các từ trong html?


    Làm cách nào để thêm một đường ngang giữa văn bản trong HTML?

    Thẻ là một thẻ trống.Nó có nghĩa là nó không yêu cầu một thẻ cuối.Vì vậy, bạn cần gõ để thêm một dòng ngang vào trang HTML.type
    to add a horizontal line to an HTML page.

    Làm thế nào để bạn tạo một đường phân cách ngang trong HTML?

    Thẻ HTML Thẻ trong HTML là viết tắt của quy tắc ngang và được sử dụng để chèn quy tắc ngang hoặc ngắt chủ đề trong trang HTML để chia hoặc các phần tài liệu riêng biệt.Thẻ là một thẻ trống và nó không yêu cầu thẻ cuối.Được sử dụng để chỉ định sự liên kết của quy tắc ngang. The
    tag in HTML stands for horizontal rule and is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections. The
    tag is an empty tag, and it does not require an end tag. Used to specify the alignment of the horizontal rule.