1

Definition of the <p> tag according to the MDN documentation:

The HTML <p> element represents a paragraph of text. Paragraphs are usually represented in visual media as blocks of text that are separated from adjacent blocks by vertical blank space and/or first-line indentation.

What is a paragraph here? Are we talking about blocks of text with sentences only, or is any piece of text considered a paragraph? For example if I have a list of items and want to display the item count at the top (e.g. 12 results), should I use a <p> or a <div>? Does it make any difference to screen readers?

TylerH
  • 20,799
  • 66
  • 75
  • 101
Mickäel A.
  • 9,012
  • 5
  • 54
  • 71
  • 1
    The SEO portion was off-topic. You can ask about that on [Webmasters.SE](//webmasters.stackexchange.com). The question about screen readers is on-topic – Machavity Dec 01 '17 at 13:40
  • `

    ` and `

    ` (as far as text goes) generally are just containers. They hold whatever you put in them.
    – Machavity Dec 01 '17 at 13:42
  • Are you familiar with the HTML specification? And why do you think there would be a difference with screen readers? – TylerH Dec 01 '17 at 15:06
  • In articles you should separate the paragraph with `

    ` tags, but it's very broad and I guess any answer would be about good/bad practice (Which is based on opinions, i.e - off topic). Read this answer https://stackoverflow.com/a/2226574/754119 perhaps it will help

    – Alon Eitan Dec 01 '17 at 15:25

0 Answers0