If you want a whole section of a Web page (multiple paragraph's or a table) to be affected by the same style. you can enclose that section within "div" tags. The div element is a block-level alement. It adds structure; hovewer the content inside the tags does not appear visually different when used by itself (unless you style it that way). Div can be used to align (left, center, right) and with the id attributes (this text is inside a 'div id' tag.)
The 'span' element, typically used with inline text, can be used in conjunction with a CSS class. It identifies an individual section of text (e.g. a word or two) for special formatting. For example, if I want to make only certain words bold and green to highlight them, I could create a class to do.
Now, here is an example of bold and green.Another
bold
and
green