HTML - SPAN and DIV Tags

23 July 2021

<div style="color:#0000FF">

<h3>This is a heading</h3>

<p>This is a paragraph.</p>

</div>

The <span> and <div> tags have no required attributes, but the three that are the most useful are:

You can make a <span> or <div> point to a style sheet using id or class.

Source: Montgomery College Java Bootcamp (canvas)