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/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements">&lt;h6&gt;</a>
023 * element.
024 *
025 * <p>
026 * The h6 element represents the lowest level heading in a document or section. It is used to
027 * mark up subsections that are hierarchically below h5 elements. The h6 element is typically
028 * used to organize content into the smallest subsections and is important for creating a logical
029 * document structure. It is typically rendered in the smallest font size among all heading
030 * elements and is often used for fine-grained content organization.
031 *
032 * <h2 class='section'>Examples:</h2>
033 * <p class='bcode w800'>
034 *    <jk>import static</jk> org.apache.juneau.bean.html5.HtmlBuilder.*;
035 *
036 *    <jc>// Simple lowest-level heading</jc>
037 *    H6 <jv>simple</jv> = <jsm>h6</jsm>(<js>"Connection Timeout"</js>);
038 *
039 *    <jc>// H6 with styling</jc>
040 *    H6 <jv>styled</jv> = <jsm>h6</jsm>(<js>"Retry Attempts"</js>)
041 *       .class_(<js>"micro-heading"</js>);
042 *
043 *    <jc>// H6 with complex content</jc>
044 *    H6 <jv>complex</jv> = <jsm>h6</jsm>(
045 *       <js>"6.1 "</js>,
046 *       <jsm>strong</jsm>(<js>"Connection Pool Size"</js>),
047 *       <js>" "</js>,
048 *       <jsm>em</jsm>(<js>"(Default: 5)"</js>)
049 *    );
050 *
051 *    <jc>// H6 with ID</jc>
052 *    H6 <jv>withId</jv> = <jsm>h6</jsm>(<js>"Keep-Alive Settings"</js>)
053 *       .id(<js>"keep-alive"</js>);
054 *
055 *    <jc>// H6 with styling</jc>
056 *    H6 <jv>styled2</jv> = <jsm>h6</jsm>(<js>"Advanced Options"</js>)
057 *       .style(<js>"color: #bbb; font-size: 0.8em; font-weight: normal;"</js>);
058 *
059 *    <jc>// H6 with multiple elements</jc>
060 *    H6 <jv>multiple</jv> = <jsm>h6</jsm>(
061 *       <js>"6.1.1 "</js>,
062 *       <jsm>span</jsm>().class_(<js>"micro-title"</js>).children(<js>"Max Retries"</js>),
063 *       <js>" "</js>,
064 *       <jsm>small</jsm>(<js>"(Range: 1-10)"</js>)
065 *    );
066 *
067 *    <jc>// H6 with links</jc>
068 *    H6 <jv>withLinks</jv> = <jsm>h6</jsm>(
069 *       <js>"Ref: "</js>,
070 *       <jsm>a</jsm>(<js>"/docs/connection"</js>).children(<js>"Connection Guide"</js>)
071 *    );
072 * </p>
073 *
074 * <p>
075 * The following convenience methods are provided for constructing instances of this bean:
076 * <ul class='javatree'>
077 *    <li class='jc'>{@link HtmlBuilder}
078 *    <ul class='javatree'>
079 *       <li class='jm'>{@link HtmlBuilder#h6() h6()}
080 *       <li class='jm'>{@link HtmlBuilder#h6(Object...) h6(Object...)}
081 *    </ul>
082 * </ul>
083 *
084 * <h2 class='section'>See Also:</h2><ul>
085 *    <li class='link'><a class="doclink" href="https://juneau.apache.org/docs/topics/JuneauBeanHtml5">juneau-bean-html5</a>
086 * </ul>
087 */
088@Marshalled(typeName = "h6")
089public class H6 extends HtmlElementMixed<H6> {
090
091   /**
092    * Creates an empty {@link H6} element.
093    */
094   public H6() {}
095
096   /**
097    * Creates an {@link H6} element with the specified child nodes.
098    *
099    * @param children The child nodes.
100    */
101   public H6(Object...children) {
102      children(children);
103   }
104
105}