Logical Style
Tags that control logical style provide a similar functionality to those that control content-based style, but they have no implicit visual characteristics or contextual meaning. Instead, they only provide a means of invoking a style sheet. These tags, like all others, might have an ID and class attribute set. Using style sheet rules for these class names and IDs allows the designer to provide decoration, font, and color styles for each section. Thus, these tags can be considered to be designer-defined, content-based tags:
- <div> indicates a division. A newline is inserted between the previous text and the text following the <div> tag. No physical changes are noticeable, except those implemented in style sheets.
- <span> indicates a spanned section of text is placed immediately after the text that precedes the tag with a newline. No physical changes are noticeable, except those implemented in style sheets.