Comments (11)
@jensgro its funny you mention that this article talks exactly about semantics http://coding.smashingmagazine.com/2013/08/20/semantic-css-with-intelligent-selectors/
and not using divs to style buttons
from semantic-ui.
Hi David, I didn't mention the article and of course in this article a button it was never propagated to mimic a button with a DIV. It's just not the way to do frontend-development correct.
What does in your view oppose the correct usage of HTML, i.e. the use of button if a button is required and not to style a DIV as a button and helping with Javascript to simulate what a button has out-of-the-box?
If I follow your examples we can get rid of all HTML-semantic and build a complete page just with DIV oder SPAN. That's useless.
from semantic-ui.
@jensgro Sorry im not sure i follow your question... Im not the author of the article, but what i was getting at is that it does not make sense to me to have a button made up from DIV and a empty I tag as found in http://semantic-ui.com/elements/button.html why not use BUTTON tag and style it... seems like that is what you suggested from the start and i was simply agreeing...
from semantic-ui.
Hi David, sorry, I made the assumption that you are the author of this very strange "framework".
Yes, it doesn't make sense to code sites like done in the examples of this project. I just wanted to emphasize on that.
from semantic-ui.
+1 @jensgro. I am more than a little put off by the total avoidance of HTML5 tags, i.e. why use <div class="ui menu">
when <nav>
serves the same purpose and is much more concise? The regression from <button>
to <div class="ui button">
, <header>
to <div class="ui header">
, <main>
to <div class="main container">
all seems very backwards to me.
Can anyone explain the rationale behind ditching actual semantic tags? Would it ever be preferable to use <span class="bold">
over the <b>
tag? The <b>
tag has an inherent special meaning, whereas the class names do not. Similarly, <header>
and <footer>
denote a particular kind of content, which isn't exactly communicated by just adding a few class names to divs. As a side note, the ui
class name seems totally redundant, but more dangerously, not consistently applied.
from semantic-ui.
You can use any tag you please. Button tag works as well as div or article. Semantic refers to the linguistic definition of the word, not the current developer re-appropriation to mean adherence to w3c specification.
For more on this refer to prescriptivist/descriptivist dilemma in linguistics as described in a humorous form by DFW
http://instruct.westvalley.edu/lafave/DFW_present_tense.html
from semantic-ui.
Okay, but if I use the button tag, would it be <button class="ui button">
? That would be redundant, no?
from semantic-ui.
Yes, it is redundant, but not all UI types are represented in html tags. We only get to play with a handful of new ones every few years, and hell some of those get deprecated. And who decides? A committee of industry folks who are on the W3C advisory board and a smidgen of browsers devs in the implementation. There's plenty of other sources of grief on the web over the whole process so i'll save the recap.
Semantic is about developers coming together to build standards around naming, so that we can share code between projects without having to learn each others conventions.
from semantic-ui.
+1
from semantic-ui.
+1
I am wondering if the old GitHub's upvote button was a real BUTTON 😆
from semantic-ui.
+1
from semantic-ui.
Related Issues (20)
- [Dropdown] Dropdown menu should open when clicked HOT 1
- [Dropdown] Should select option with selected attribute for select element with options having numeric values and labels HOT 2
- Chinese mirror site is porn
- Semantic-UI is dead! Look for Fomantic-UI, its beautiful successor HOT 2
- Please show "code" icon for "Text Labels" block
- Can't install Semantic UI, NPM errors. HOT 5
- Add OSSF Scorecard security workflow HOT 1
- 2023 Still no Tiktok Icon ? Politics or what ? HOT 1
- Popup should still be accessible after using touchscreen
- Docs: Outdated image urls in Search component
- [Flag] - Shows the Flag of Taiwan when try to use Burmese Flag HOT 2
- Cannot "prevent default" on a button inside the title when this row was injected thru acordion.insertAdjacentHTML
- In Semantic UI React, NVDA/JAWS is not announcing the options in the "Multiple Search Selection" dropdown. HOT 1
- Tabs functionality not working for SMW 4.1.1
- Dark mode for comment component HOT 1
- [Segment] - Your Bug Name HOT 1
- error: install semantic-ui HOT 1
- [Autocomplete] How can I upload dynmic options ti the
- [Autocomplete] Autocomplete is not perfect in pure html file
- fucntion overwrite
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semantic-ui.