Paragraphs
Paragraphs are the building blocks of most web pages. They are used to break up text into smaller, more digestible chunks. Paragraphs can be used to introduce new sections, provide additional information, or simply to add some breathing room to the page.
General Guidelines
While, there are no hard and fast rules for paragraphs, some commonly used guidelines are based on width and spacing. The sweet spot for paragraph width is between 600px and 800px for large screens, which is commonly seen in the most popular blogs, articles, content pieces, etc. For smaller screens like mobile, width doesn’t matter as much, but margins and padding should be used to create white space and make the text more readable.
Pro Tip: Don’t justify paragraphs when it is part of body content like blogposts, articles, documentation or other similar content. Justified text may look great, but it can be very difficult to read.
Contrast and Spacing
The contrast between the text and the background is important for readability. Using pure black/white text on pure white/black text maybe tempting, but people with dyslexia can find it very difficult to read. It can also cause eye strain for readers.
Here a comparison of using pure white/black background with pure black/white text and using an off white/black background with off black/white text based on light/dark mode.
Uses a pure white/black background with pure black/white text
While, there are no hard and fast rules for paragraphs, some commonly used guidelines are based on width and spacing. The sweet spot for paragraph width is between 600px and 750px for large screens, which is commonly seen in most popular blogs, articles, content pieces, etc.
Uses an off white/back background with off black/white text.
While, there are no hard and fast rules for paragraphs, some commonly used guidelines are based on width and spacing. The sweet spot for paragraph width is between 600px and 750px for large screens, which is commonly seen in most popular blogs, articles, content pieces, etc.
Here are some pre-styled parapgraphs to get you started.
While you can use font-bold
class or <strong>
tags to make the text bold, but if you want to emphasize the text to screen readers you should use the <strong>
tag .