Class TagRule

All Implemented Interfaces:
AnimationIntf<CssRule>, BackgroundIntf<CssRule>, com.oorian.css.BasicBoxIntf<CssRule>, com.oorian.css.BasicUserInterfaceIntf<CssRule>, BorderIntf<CssRule>, com.oorian.css.ColorIntf<CssRule>, CountersIntf<CssRule>, com.oorian.css.CssStyleIntf<CssRule>, com.oorian.css.FilterEffectsIntf<CssRule>, com.oorian.css.FlexibleBoxLayoutIntf<CssRule>, com.oorian.css.FontIntf<CssRule>, com.oorian.css.GeneratedContentForPagedMediaIntf<CssRule>, com.oorian.css.ImageValuesAndReplacedContentIntf<CssRule>, com.oorian.css.ListIntf<CssRule>, com.oorian.css.MarqueeIntf<CssRule>, com.oorian.css.MaskingIntf<CssRule>, com.oorian.css.MultiColumnLayoutIntf<CssRule>, PagedMediaIntf<CssRule>, com.oorian.css.SpeechIntf<CssRule>, com.oorian.css.TableIntf<CssRule>, com.oorian.css.TextDecorationIntf<CssRule>, com.oorian.css.TextIntf<CssRule>, com.oorian.css.TransformIntf<CssRule>, com.oorian.css.TransitionIntf<CssRule>, com.oorian.css.WritingModeIntf<CssRule>

public class TagRule extends ElementRule
Represents a CSS rule that targets HTML elements by their tag name.

TagRule is an alias for ElementRule, providing a more intuitive name for targeting elements by their HTML tag. Both classes function identically.

Example usage:

 TagRule paragraphs = new TagRule("p");
 paragraphs.setLineHeight("1.6");
 // Generates: p { line-height: 1.6; }
 
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • TagRule

      public TagRule(String... tags)
      Constructs a tag rule targeting the specified HTML tags.
      Parameters:
      tags - One or more HTML tag names to target.