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-s-element">&lt;s&gt;</a>
023 * element.
024 *
025 * <p>
026 * The s element represents contents that are no longer accurate or no longer relevant. It is
027 * used to mark up text that has been struck through or crossed out, indicating that the content
028 * is outdated, incorrect, or no longer applicable. The s element is typically rendered with
029 * a line through the text (strikethrough) and is commonly used for showing price changes,
030 * outdated information, or content that has been superseded.
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 strikethrough text</jc>
037 *    S <jv>simple</jv> = <jsm>s</jsm>(<js>"This text is no longer accurate"</js>);
038 *
039 *    <jc>// S with styling</jc>
040 *    S <jv>styled</jv> = <jsm>s</jsm>(<js>"This information is outdated"</js>)
041 *       .class_(<js>"outdated"</js>);
042 *
043 *    <jc>// S with complex content</jc>
044 *    S <jv>complex</jv> = <jsm>s</jsm>(
045 *       <js>"The "</js>,
046 *       <jsm>strong</jsm>(<js>"old price"</js>),
047 *       <js>" was $100."</js>
048 *    );
049 *
050 *    <jc>// S with ID</jc>
051 *    S <jv>withId</jv> = <jsm>s</jsm>(<js>"Text with ID"</js>)
052 *       .id(<js>"strikethrough-text"</js>);
053 *
054 *    <jc>// S with styling</jc>
055 *    S <jv>styled2</jv> = <jsm>s</jsm>(<js>"Custom styled strikethrough text"</js>)
056 *       .style(<js>"color: #999; text-decoration: line-through;"</js>);
057 *
058 *    <jc>// S with multiple elements</jc>
059 *    S <jv>multiple</jv> = <jsm>s</jsm>(
060 *       <js>"The "</js>,
061 *       <jsm>s</jsm>(<js>"old version"</js>),
062 *       <js>" has been "</js>,
063 *       <jsm>s</jsm>(<js>"replaced"</js>),
064 *       <js>" by the new one."</js>
065 *       );
066 *
067 *    // S with links
068 *    S withLinks = new S()
069 *       .children(
070 *          "See ",
071 *          new A().href("/old-version").children("old documentation"),
072 *          " (no longer maintained)"
073 *       );
074 * </p>
075 *
076 * <h5 class='section'>See Also:</h5><ul>
077 *    <li class='link'><a class="doclink" href="https://juneau.apache.org/docs/topics/JuneauBeanHtml5">juneau-bean-html5</a>
078 * </ul>
079 */
080@Marshalled(typeName = "s")
081public class S extends HtmlElementMixed<S> {
082
083   /**
084    * Creates an empty {@link S} element.
085    */
086   public S() {}
087
088   /**
089    * Creates an {@link S} element with the specified child nodes.
090    *
091    * @param children The child nodes. Must not be <jk>null</jk>.
092    */
093   public S(Object...children) {
094      children(children);
095   }
096}