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

Bob Sutherton
Bob Sutherton
20,160 Points

presenting a lot of text content in HTML

I recently undertook a project for someone and their page has a lot of textual content in the form of interviews and articles and stuff. My question is regarding whether or not this textual material should be presented like any other content in html or what? It just seems like a lot of content to wrap in P tags, and being an interview there will need to be a lot of formatting on the text itself.

Any advice? I'm okay with using regular old p tags but I just want to be sure that this is proper.

4 Answers

Nathan Newell
Nathan Newell
7,634 Points

In the future when planning projects and it involves a lot of textual content I would suggest taking a look at using a content management system such as wordpress. You can add articles from an admin page which will provide you with a nice user interface for formatting.

Bob Sutherton
Bob Sutherton
20,160 Points

You know, I still may look into that. Thanks for the tip. This person has a website that was started in Drupal, but never finished. It may be worthwhile to explore building the site around Wordpress.

Gareth Borcherds
Gareth Borcherds
9,372 Points

Yep, one thing you can't get away from in web development is text formatting. Takes a long time and isn't always easy.

You could create a WYSIWYG editor (what you see is what you get) and input that into a database and echo it out to a specific page using php.

Brian Goldstein
Brian Goldstein
19,419 Points

You can also do a lot with CSS here too, like making a class for question that bolds and italicizes the interviewers question and a class for answers. Then in your text editor - you just copy and paste and voilia! text formatted.