001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.juneau.bean.html5;
018
019import org.apache.juneau.marshall.*;
020
021/**
022 * DTO for an HTML <a class="doclink" href="https://www.w3.org/TR/html5/grouping-content.html#the-hr-element">&lt;hr&gt;</a>
023 * element.
024 *
025 * <p>
026 * The hr element represents a paragraph-level thematic break, such as a scene change in a story,
027 * or a transition to another topic within a section of a reference book. It is used to create
028 * a horizontal rule or line that visually separates content sections. The hr element is a void
029 * element that does not contain any content and is typically rendered as a horizontal line
030 * across the page.
031 *
032 * <h5 class='section'>Examples:</h5>
033 * <p class='bcode w800'>
034 *    <jk>import static</jk> org.apache.juneau.bean.html5.HtmlBuilder.*;
035 *
036 *    <jc>// Simple horizontal rule</jc>
037 *    Hr <jv>simple</jv> = <jsm>hr</jsm>();
038 *
039 *    <jc>// HR with styling</jc>
040 *    Hr <jv>styled</jv> = <jsm>hr</jsm>()
041 *       .class_(<js>"section-divider"</js>)
042 *       .style(<js>"border: 2px solid #ccc; margin: 20px 0;"</js>);
043 *
044 *    <jc>// HR with ID</jc>
045 *    Hr <jv>withId</jv> = <jsm>hr</jsm>()
046 *       .id(<js>"content-break"</js>);
047 *
048 *    <jc>// HR with styling</jc>
049 *    Hr <jv>styled2</jv> = <jsm>hr</jsm>()
050 *       .style(<js>"border: none; border-top: 1px dashed #999; margin: 30px 0;"</js>);
051 *
052 *    <jc>// HR with multiple attributes</jc>
053 *    Hr <jv>complex</jv> = <jsm>hr</jsm>()
054 *       .class_(<js>"fancy-divider"</js>)
055 *       .style(<js>"border: none; height: 3px; background: linear-gradient(to right, #ff6b6b, #4ecdc4); margin: 40px 0;"</js>);
056 *
057 *    <jc>// HR with accessibility</jc>
058 *    Hr <jv>accessible</jv> = <jsm>hr</jsm>()
059 *       .title(<js>"Section break"</js>)
060 *       .style(<js>"border: 1px solid #ddd; margin: 25px 0;"</js>);
061 *
062 *    <jc>// HR with custom styling</jc>
063 *    Hr <jv>custom</jv> = <jsm>hr</jsm>()
064 *       .class_(<js>"custom-hr"</js>)
065 *       .style(<js>"border: none; height: 1px; background-color: #e0e0e0; margin: 15px 0;"</js>);
066 * </p>
067 *
068 * <p>
069 * The following convenience methods are provided for constructing instances of this bean:
070 * <ul class='javatree'>
071 *    <li class='jc'>{@link HtmlBuilder}
072 *    <ul class='javatree'>
073 *       <li class='jm'>{@link HtmlBuilder#hr() hr()}
074 *    </ul>
075 * </ul>
076 * </p>
077 *
078 * <h5 class='section'>See Also:</h5><ul>
079 *    <li class='link'><a class="doclink" href="https://juneau.apache.org/docs/topics/JuneauBeanHtml5">juneau-bean-html5</a>
080 * </ul>
081 */
082@Marshalled(typeName = "hr")
083public class Hr extends HtmlElementVoid<Hr> {
084
085   /**
086    * Creates an empty {@link Hr} element.
087    */
088   public Hr() { /* Empty constructor. */ }
089
090}