html - what is wrong using <b> and separation of logic -


i got comment question form tobia tesan can't msg in here.

php echo vs return, way better?

he suggest me change <span class="wuuk_time"> instead of using <b>, you'll define in css file, achieving separation of database logic, output logic , presentation/styling.

first, bad using <b>?

second, how separation of database logic, output logic , presentation/styling? use css. not separation of logic , output?

it's matter of 'best practices'. avoiding inline styling, such use of <b> tag done improve readability. can reuse class "wuuk_time" throughout html later, see fit.

moreover, if change styling italicized instead of bold example, easier change "wuuk_time" class reflect desired changes throughout webpage opposed hunting down individual <b> tags in html.

readability, maintainability.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -