Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Basics Structuring Your Content Using Multiple <header> and <footer> Elements

Ted Wahl
Ted Wahl
3,234 Points

Why do article tags come up like <article class= ""> in atom.io text editor but not in workspaces??

using articles in the various <h> elements.

2 Answers

Hi Ted,

that's actually a plugin which you may for some (for me unknown) reason have automatically installed. There is lots of plugins for atom which make your life easier - this is one of them.

I don't use this actually so when I use atom this does not happen automatically.

In workspace there is just a couple of things which you find in atom. Most things you can use in atom are not included in workspace. One of the reasons I would think this is actually better is that when learning to write code it is better if you actually have to write it yourself... Once you are really fluent then it makes sense to use a lot of autocompletion.

Makes sense?

Happy coding,

Nils

PS: You can upvote my post and/or mark as "best answer" (at the bottom of my post) if it helped you. :-)

Hello again,

I actually just noticed that in atom it really automatically adds the class attribute when you type "article" and hit tab. It does not do so with other elements (there you need a plugin) so I assumed there was a plugin working in your version of atom... ;-)

I don't really know exactly why atom is adding the class attribute with the <article> tag and not with for example <h1> or <p> tag.

Maybe someone else knows?

Nils

Sheridan Packer
PLUS
Sheridan Packer
Courses Plus Student 5,834 Points

I am merely guessing but it sounds likes it assumes you want to assign a class to anything within that article tag. So that you could then link it to your CSS styles page and use CSS to manipulate any article tag that shares the same class="". Which might be a creature comfort for someone dealing with lots of CSS styling.