Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 175303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:40:29+00:00 2026-05-11T13:40:29+00:00

For so long, I’ve read and understood the following truths concerning web development: HTML

  • 0

For so long, I’ve read and understood the following truths concerning web development:

  1. HTML is for content
  2. CSS is for presentation
  3. JavaScript is for behavior.

This is normally all fine and good, and I find that when I strictly follow these guidelines and use external .css and .js files, it makes my entire site much much more manageable. However, I think I found a situation that breaks this line of thought.

I have a custom forums system that I’ve built for one of my sites. In addition to the usual formatting for such a system (links, images, bold italics and underline, etc) I’ve allowed my users to set the formatting of their text, including color, font family, and size. All of this is saved in by database of forum messages as formatting code, and then translated to the corresponding HTML when the page is viewed. (A bit inefficient, technically I should translate before saving, but this way I can work on the system live.)

Due to the nature of this and other similar systems, I end up with a lot of tags floating around the resulting HTML code, which I believe are unofficially deprecated since I’m supposed to be using CSS for formatting. This breaks rules one and two, which state that HTML should not contain formatting information, preferring that information to be located in the CSS document instead.

Is there a way to achieve dynamic formatting in CSS without including that information in the markup? Is it worth the trouble? Or, considering the implied limitations of proper code, an I to limit what my users can do in order to follow the ‘correct’ way to format my code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:40:30+00:00Added an answer on May 11, 2026 at 1:40 pm

    It’s okay to use the style attribute for elements:

    This is <span style='color: red;'>red text</span>. 

    If users are limited to only some options, you can use classes:

    This is <span class='red'>red text</span>. 

    Be sure to use semantic HTML elements:

    This is <strong>strong and <em class='blue'>emphasized</em></strong> text with a <a href='http://www.google.com' rel='external'>link</a>. 

    Common semantic elements and their user-space terms:

    • <p> (paragraphs)
    • <strong> (bold)
    • <em> (italic)
    • <blockquote> (quotes)
    • <ul> and <ol> with <li> (lists)
    • More…?

    Likely less common in forum posts, but still usable semantic elements:

    • <h1>, <h2>, etc. (headings; be sure to start at a value so your page makes sense)
    • <del>, and, to a lesser extent, <ins> (strikeout)
    • <sup> and <sub> (superscript and subscript, respectively)
    • <dl> with <dt> and <dd> (list of pairs)
    • <address> (contact information)
    • More…
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 108k
  • Answers 108k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'm not sure if you'll need a framework. Check out… May 11, 2026 at 9:14 pm
  • Editorial Team
    Editorial Team added an answer Basically, the CodeSharp library is doing some trickery with the… May 11, 2026 at 9:14 pm
  • Editorial Team
    Editorial Team added an answer You just write this: var song = (from s in… May 11, 2026 at 9:14 pm

Related Questions

For so long, I've read and understood the following truths concerning web development: HTML
Even though I always strive for complete validation these days, I often wonder if
I'm currently in the process of choosing a project for a grad-level compiler course
i have a very interesting problem. background i've used TTreeView for years but only
I'm a complete Xcode/Objective-C/Cocoa newbie but I'm learning fast and really starting to enjoy

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.