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"><h3></a> 023 * element. 024 * 025 * <p> 026 * The h3 element represents a third-level heading in a document or section. It is used to 027 * mark up subsections that are hierarchically below h2 elements. The h3 element is typically 028 * used to organize content into smaller subsections and is important for creating a logical 029 * document structure. It is typically rendered in a smaller font size than h2 but larger 030 * than h4 elements. 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 subsection heading</jc> 037 * H3 <jv>simple</jv> = <jsm>h3</jsm>(<js>"Basic Configuration"</js>); 038 * 039 * <jc>// H3 with styling</jc> 040 * H3 <jv>styled</jv> = <jsm>h3</jsm>(<js>"Advanced Settings"</js>) 041 * .class_(<js>"subsection-title"</js>); 042 * 043 * <jc>// H3 with complex content</jc> 044 * H3 <jv>complex</jv> = <jsm>h3</jsm>( 045 * <js>"Step 3: "</js>, 046 * <jsm>strong</jsm>(<js>"Database Setup"</js>), 047 * <js>" "</js>, 048 * <jsm>em</jsm>(<js>"(Optional)"</js>) 049 * ); 050 * 051 * <jc>// H3 with ID</jc> 052 * H3 <jv>withId</jv> = <jsm>h3</jsm>(<js>"Troubleshooting"</js>) 053 * .id(<js>"troubleshooting"</js>); 054 * 055 * <jc>// H3 with styling</jc> 056 * H3 <jv>styled2</jv> = <jsm>h3</jsm>(<js>"Common Issues"</js>) 057 * .style(<js>"color: #888; margin-top: 20px;"</js>); 058 * 059 * <jc>// H3 with multiple elements</jc> 060 * H3 <jv>multiple</jv> = <jsm>h3</jsm>( 061 * <js>"3.1 "</js>, 062 * <jsm>span</jsm>().class_(<js>"step-title"</js>).children(<js>"Installation"</js>), 063 * <js>" "</js>, 064 * <jsm>small</jsm>(<js>"(5 minutes)"</js>) 065 * ); 066 * 067 * <jc>// H3 with links</jc> 068 * H3 <jv>withLinks</jv> = <jsm>h3</jsm>( 069 * <js>"See also: "</js>, 070 * <jsm>a</jsm>(<js>"/docs/faq"</js>).children(<js>"Frequently Asked Questions"</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#h3() h3()} 080 * <li class='jm'>{@link HtmlBuilder#h3(Object...) h3(Object...)} 081 * </ul> 082 * </ul> 083 * </p> 084 * 085 * <h5 class='section'>See Also:</h5><ul> 086 * <li class='link'><a class="doclink" href="https://juneau.apache.org/docs/topics/JuneauBeanHtml5">juneau-bean-html5</a> 087 * </ul> 088 */ 089@Marshalled(typeName = "h3") 090public class H3 extends HtmlElementMixed<H3> { 091 092 /** 093 * Creates an empty {@link H3} element. 094 */ 095 public H3() {} 096 097 /** 098 * Creates an {@link H3} element with the specified child nodes. 099 * 100 * @param children The child nodes. 101 */ 102 public H3(Object...children) { 103 children(children); 104 } 105 106}