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/text-level-semantics.html#the-small-element"><small></a> 023 * element. 024 * 025 * <p> 026 * The small element represents side comments such as small print. It is typically used for 027 * disclaimers, caveats, legal restrictions, or copyrights. The small element does not "de-emphasize" 028 * or lower the importance of text; it represents side comments. 029 * 030 * <h5 class='section'>Examples:</h5> 031 * <p class='bcode w800'> 032 * <jk>import static</jk> org.apache.juneau.bean.html5.HtmlBuilder.*; 033 * 034 * <jc>// Copyright notice</jc> 035 * Small <jv>copyright</jv> = <jsm>small</jsm>(<js>"Copyright 2024 My Company. All rights reserved."</js>); 036 * 037 * <jc>// Legal disclaimer</jc> 038 * Small <jv>disclaimer</jv> = <jsm>small</jsm>(<js>"This information is provided as-is without warranty."</js>); 039 * 040 * <jc>// Terms and conditions</jc> 041 * Small <jv>terms</jv> = <jsm>small</jsm>(<js>"By using this service, you agree to our terms and conditions."</js>); 042 * 043 * <jc>// Price with small print</jc> 044 * Small <jv>price</jv> = <jsm>small</jsm>( 045 * <js>"$99.99"</js>, 046 * <jsm>small</jsm>(<js>"*plus tax and shipping"</js>) 047 * ); 048 * 049 * <jc>// Form with small print</jc> 050 * Small <jv>formNote</jv> = <jsm>small</jsm>(<js>"Required fields are marked with an asterisk (*)"</js>); 051 * </p> 052 * 053 * <h5 class='section'>See Also:</h5><ul> 054 * <li class='link'><a class="doclink" href="https://juneau.apache.org/docs/topics/JuneauBeanHtml5">juneau-bean-html5</a> 055 * </ul> 056 */ 057@Marshalled(typeName = "small") 058public class Small extends HtmlElementMixed<Small> { 059 060 /** 061 * Creates an empty {@link Small} element. 062 */ 063 public Small() {} 064 065 /** 066 * Creates a {@link Small} element with the specified child nodes. 067 * 068 * @param children The child nodes. Must not be <jk>null</jk>. 069 */ 070 public Small(Object...children) { 071 children(children); 072 } 073}