Bad coding practices with Block Themes #251
Replies: 4 comments 2 replies
-
Hi Aurélie!
I would not call it basics. It sounds more like a dogma to me. |
Beta Was this translation helpful? Give feedback.
-
Hi @aureliegerber. I'm wondering if you have an explanation or documents that describe why this might be a bad practice, as well as specific examples of where this is happening. I'm asking because, as far as I'm concerned, inlining CSS may or may not be a bad practice depending on the context. |
Beta Was this translation helpful? Give feedback.
-
Hi Vicente! For example, here are two references: It's the first thing you see in any web training course. Are these courses bad? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the links. I'd appreciate a example of what you mean by inlined CSS in Block Themes. In particular, I'd like to understand if you're talking about code generated by the editor, or code that has been manually added by developers. A search for For example, inline styles — as in the |
Beta Was this translation helpful? Give feedback.
-
Hello wordpress community,
One of the basics of web development: no <style> tags in html, no inline css.
However, with block themes there are many <style> tags in the html and many inline css.
Is it only me that this bothers?
Are there plans to change this?
Best regards
Aurélie
Beta Was this translation helpful? Give feedback.
All reactions