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, may 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 to each section. Thus, these tags may 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 preceding the tag with a newline. No physical changes are noticeable, except those implemented in style sheets.