Improving your DEV articles
Tags: dev, writing, meta
Published: 2021-06-17 17:43:09

---
title: Improving your DEV articles
published: true
description: Some recommendations to improve your DEV articles.
tags: dev,writing,meta
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4bv7rloet2q2s2nv82yz.jpeg
---

This article is an extension of a previous [twitter thread](https://twitter.com/alvaro_montoro/status/1378006020815982595). Here are some recommendations to improve your DEV articles:

1. [Add a cover image](#add-a-cover-image)
2. [Format the text](#format-the-text)
3. [Add more than just text](#add-more-than-just-text)
4. [Add `alt` attributes to images](#add-raw-alt-endraw-attributes-to-images)
5. [Do not add code as images](#do-not-add-code-as-images)
6. [Identify your code language](#set-the-code-language)
7. [A demo is worth 1,000 lines of code](#a-demo-is-worth-1000-lines-of-code)
8. [Be consistent with the topic](#be-consistent-with-the-topic)
9. [Link sources](#link-sources)
10. [Use language correction tools](#use-language-correction-tools)
11. [Extra: Add monetization to your profile](#extra-add-monetization-to-your-profile)

----

## Add a cover image

Images are the language of social media: they capture ideas in little space, but more importantly, they draw attention. And (unfortunately), now more than ever, drawing attention is as important as the content itself.

When someone shares our article on social media, it will be displayed along with the link and the cover image, and we don't want the default (and nice-but-kind-of-boring) auto-generated DEV image.

Not everyone has the artistic abilities or the Photoshop skills to create a catchy cover image, but some sites can help you with that:

- [Unsplash](https://www.unsplash.com)
- [Pexels](https://www.pexels.com/)
- [Pixabay](https://pixabay.com/)

For example, the cover image from this article was shared by [Glenn Carstens-Peters on Unsplash](https://unsplash.com/photos/npxXWgQ33ZQ).

Also, take into account that **only articles with cover images are showcased on DEV front page**! This doesn't mean that DEV will showcase our article just by having a cover image, but at least it will have the chance of being there at a more visible spot. And more visibility can translate into more readers.

## Format the text

Avoid the "[dreaded wall of text](https://davecharest.com/dreaded-wall-of-text/)." Don't just have a big chunk of text that scares readers away (I know it would scare me). Instead, format your text to make it easier to read: break your content into paragraphs, group it in sections with headings, add lists to organize elements, use bold fonts to highlight important concepts... It will make the text easier to read and keep the readers engaged and paying more attention. Do you want a practical example? See this paragraph and compare it to the content below. It is the same text but formatted differently. Which one is easier to read and follow?

Avoid the "[dreaded wall of text](https://davecharest.com/dreaded-wall-of-text/)." Don't just have a big chunk of text that scares readers away (I know it would scare me). 

Instead, format your text to make it easier to read: 

- break your content into paragraphs, 
- group it in sections with headings, 
- add lists to organize elements, 
- use **bold fonts** to highlight important concepts... 

It will make the text easier to read and keep the readers engaged and paying more attention. Do you want a practical example? See these paragraphs and compare them to the first paragraph of this section. It is the same text but formatted differently. Which one was easier to read and follow?


## Add more than just text

[Humans are visual creatures](https://www.forbes.com/sites/tjmccue/2013/01/08/what-is-an-infographic-and-ways-to-make-it-go-viral/), we may read, but what really will catch our attention is images: charts, graphs, photos...

When relevant, those images will serve two purposes: spice up the article (catching attention and engaging users) and supporting the text (emphasizing the content.)

<figure>
<img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7vb92azd21yu59uj2s3x.png" alt="People following directions with text and illustrations do 323 percent better than those following directions without illustrations"/>
<figcaption>Image from <a href="https://www.easel.ly/blog/text-vs-images-which-content-format-effective/">easel.ly</a></figcaption>
</figure>



## Add `alt` attributes to images

Think accessible! Use DEV's alt functionality to add alternative text and descriptions to your images. This may not be too relevant for sighted users, but screen reader users will really appreciate it.

When uploading an image, don't forget to add a proper alternative text. Here is how the code looks:

```
![Here goes the alt](https://path-to-image.jpg)
```

The path to the image goes between the parenthesis, and in brackets, we can see the alternative text.

## Do not add code as images

This is related to accessibility too, but it affects everyone ([because accessibility affects everyone](https://dev.to/alvaromontoro/a-case-for-web-accessibility-d4i#accessibility-affects-everyone)). 

Adding code as an image may seem like a great idea: it is properly formatted, and it looks nicer... but that's where all the advantages end and the cons outweigh the pros:

- Readers cannot copy the code to test it themselves
- Users of phones and small screens will have trouble reading the code in an image.
- They need to have a proper alternative text (see the previous point)
- Some firewalls may block the images.

Instead, we can add blocks of code by using the back-ticks this way:

    ```
    code
    ```



## Set the code language

"_Now I can add code as text, but it looks ugly and colorless! So it's not worth it!_" Patience, young grasshopper! 

We have added and formatted the code as text... but it looks dull and difficult to read as all is white. To add more color and styles, you can specify the language next to the backticks like this:

    ```javascript
    code in js
    ```

or

    ```html
    <html code>
    ```

DEV will then format your code and add colors according to the language's grammar and syntax, making it easier to read. Here is an example:

```javascript
// this is some JavaScript code
let x = 0;
window.alert(`${x} is a number`);
```



## A demo is worth 1,000 lines of code

We have code, and it looks amazing now. But what's better than seeing static code? Seeing it running! DEV allows code snippets from sites like CodePen or JSFiddle in the articles. Please take advantage of it!

And it is not limited to front-end development. There are many options and platforms to use:

```
/* CodePen */
{% codepen url-to-your-codepen-demo %}

/* CodeSandbox */
{% codesandbox id-of-sandbox %}

/* DotNetFiddle */
{% dotnetfiddle url-to-your-dotnetfiddle-demo %}

/* JSFiddle */
{% jsfiddle url-to-your-jsfiddle-demo %}

/* Kotlin */
{% kotlin url-to-your-kotlin-demo %}

/* StackBlitz */
{% stackblitz id-of-demo %}

/* ...and many more... */
```

Also, these [liquid tags](https://docs.forem.com/frontend/liquid-tags/) go beyond demos and code. You can add nice links to other sites like GitHub, Twitter, Youtube, or even DEV. You can see a full list of liquid tags on the right side when editing your posts.

## Be consistent with the topic

Talk the talk, and walk the walk. The "_do what I say, not what I do_" experience takes credibility away from the content. We need to be consistent and reliable:

- When writing about good practices, we should follow good practices.
- When writing about security, we should share secure and safe code.
- When writing about accessibility, our code should be accessible. (And the post images should definitely have alt text!) 
- etc.

Failing at this is something that will put your readers off, and that could make them question the trustworthiness of what they are reading.

## Link sources

Offer resources for readers to dig deeper into the topic. They'll support your content, add credibility to your article, and spice up the article (links normally are underlined and with different colors, breaking the monotony of the text.)

And please, please, please, please: every time you use someone else's text/code, cite your sources! Failing to do so could be considered [plagiarism](https://en.wikipedia.org/wiki/Plagiarism). Furthermore, it goes against DEV/forem terms of use... and the law in many countries!

<figure>
![Photograph of a hand holding a pen scratching out "author's signature" and writing "mine" instead](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qy5wod49qltpb12uotot.jpeg)
<figcaption>Original image by Ryan Minkoff on <a href="https://pixabay.com/en/quality-hand-write-pen-signature-500958/">Pixabay</a></figcaption>
</figure>

## Use language correction tools

Ideally, it would be nice to have a person review our articles before we hit the publish button. But that's not always possible. Some browsers will highlight unknown words on the DEV editor, which is nice but not enough.

There are tools online that will help you with your grammar and syntax: Grammarly, ProWritingAid, Ginger, Reverso, Hemingway App... I use [Grammarly](https://chrome.google.com/webstore/detail/grammarly-for-chrome/kbfnbcaeplbcioakkpcpgfkobkghlhen).

These extensions may not be perfect, but they are definitely helpful... especially for people whose first language is not English but (try to) write in English. And they will be helpful for native-English-speakers too.

## Extra: Add monetization to your profile

This is more of an advantage for you than for your readers, but still, a nice option DEV/forem offers: [make some money with what you write](https://dev.to/alvaromontoro/monetize-your-website-3j5j#1-web-monetization).

Activate web monetization by adding a payment pointer in the following path in the settings:

    Settings > Extensions > Web monetization

Web monetization works by adding a meta tag with a link to your payment pointer. It does not affect how readers see your posts, and it won't impact the speed/performance of the site.

You probably won't be making enough money to retire, but better than nothing.