In HTML there are two type of elements.
Block elements are block level elements with auto break line or new line. Block level elements includes headings, paragraph, prserve, div elements and these elements always starts on new line
<div>Content</div>
You can use block elements any where within an HTML document.
Span element is a inline element and it always starts inline, it does not starts on new line.
<span>Content</span>
You can use span element any where within an HTML document.
Div and Span are pair tags, output of div element is block level and output of span element is inline.
Open notepad or any other text editor, follow the following points.
a little boxto span element
save file with name task.html or task.htm and then open it using any browser and see results.
Don't forget div and span are non empty element which means it always comes in pair.