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

Posts on your website

So quick question here. After you have created a website and you want to start adding posts to it, do you write the full post in the html document, meaning that you write it, style it, and so on, in the actual html file. Or do you download an editor (similar to how you write posts in WordPress), write it there, and insert in by into the html file? Because after you publishing quite some posts there will be "huge" html files.

I'm not quite sure your question. But I'll answer the question I think you're asking. Always write out your html inside a local editor on your computer. Don't write it into an online html window.. something as simple as accidentally clicking the back button, or a server error on save will destroy your work.

Usually if you're creating a website that needs the ability to easily add more content(Content that will be added at a later date) you'll use a CMS (Content management system) like Wordpress. An important note is that you can still change the HTML/CSS of Wordpress sites if needed (Change layouts or whatever).

3 Answers

Yeah, there is a whole world of content management systems, and MVC frameworks to build custom content management systems, so you can dynamically add content to your site.

Sites the the WSJ add articles to their sites by creating new database entries, not by adding new html files.

Okay, thanks for the answers. But to specify my question a bit more, please read the following. So I have created a website from the ground up using so far html and css, but will also add javascript when I master it. The question I am trying to ask is where should I write my articles, posts, content whatever you may call it, that I want my website to be about. If we take WSJ for example, they have a website built up, but I can imagine that the journalists don't write their articles inside the actual html code.

Thanks for the help in advance!

You are right, they'd need to use a content management system as Sebastian has commented above.

Okay, thanks. Any idea how this process looks like? The use of Wordpress combined with your own website?

Basically (In wordpress) you would create your own childtheme then style it to fit your preference https://codex.wordpress.org/Child_Themes . You could start by using a blank theme if you'd feel that would be preferable (for example blankslate https://wordpress.org/themes/blankslate/). Then you'll mainly use CSS to change the look of your page while still having the power of wordpress as the backend (Allowing you to make posts, new pages etc.).