As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I work in front end markup so I'm constantly templating site. Does anyone know of good resources to learn some good conventions or inspiration for element names? I like names that relate to print layouts so perhaps someone could point me to a resource for naming different sections of a document/layout.
I get a bit sick of using generic names such as block, wrapper, content, header etc over and over. Things like colophon, masthead, hero etc seem to hold more meaning.
A little bit of inspiration
I remember finding this when I was searching for the same thing. It's a collection of names used by some of the best known css guys. It comes from Andy Clarke
Here you go as requested in your comment...
http://meiert.com/en/blog/20080812/best-practice-ids-and-classes/
Got this in 10 seconds by typing 'best practice html class names' into Google.
Personally, I name my elements as abbreviations of what they relate to - div containing a submit button I would name 'smtbtn'. Short, sweet and phonetically almost says what it is.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Sorry if this is a dumb question, but I just got a job developing a site in French. Is there anything I should do or do differently that I wouldn't do if I were coding an English site?
There are a few typographic specialties in French that a well-designed HTML page should handle somehow, such as special spacing rules around punctuation characters. They are somewhat tricky to handle with just HTML and CSS. See my page HTML authoring in French.
I don't think you have anything to worry about with regards design / look n feel.
You'll have a lot to worry about with regards content though.
Date formatting
Currency formats
Thousand separator and other stuff
I'm assuming you aren't saddled with the task of working on the content as well.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am working in rails, and a looking for some resources to design visually pleasing HTML forms. I can write the CSS, so even examples would be great.
Any recommendations?
There are many resources out there, you can just google for well looking forms or something like this.
There are also javascript libraries which makes customized selects/checkboxes etc -for example a project called uniform - check it out, you might like it. It provides you tools to customize it.
You can try Gravity Forms for WordPress then you never need to hand code the html and it inserts unique id's and matching classes in the HTML. This means the sky is the limit when it comes to styling your form.
If you are not using WordPress, here is a nice tutorial for designing form layouts.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
I used to be a tab freak -- I would always use tabs to indent my source code, and if I saw any spaces, I would instantly do a regex search/replace to replace all leading spaces with tabs.
...until I realized that I hadn't noticed the presence of a lot of the spaces in some files, such that they opened up inconsistently in different editors (e.g. Notepad++ vs. Emacs vs. Visual Studio).
What are good reasons for why one is better than the other in general? Is either one generally known as better practice?
With good text editors, it does not really matter. It is just a technical background detail. The UI behavior will be just the same.
The only important thing here is that everyone in a project makes the decision what to use, and that everyone sticks to that. Because, as you discovered, there will be problems if both tabs and spaces are used for indentation inside a file.
UPDATE: When I mean that everyone in a project makes the decision what to use, I of course mean that everyone should agree on the same decision. :D (This can be the tricky part.)
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I really would like to get into HTML 5 way.
As a title implies, I am looking for web sites that could serve as an example of HTML 5 usage. I am not talking about some kind tutorials. I am also not interested in shiny things like canvas, video, workers, geolocation ect, yes they are important and nice, but I would really like to become from the roots.
What I am looking for are the cases of, not only correct, but beautiful and self descriptive usage of markup (html elements, new and old, sectioning examples, new form features, microformats). So I could Ctrl + U them (view the source) and learn from them. As there a lot of not really well written websites, and from the other side, most of them are XHTML served as text/html, I found this a not so easy task. That is the reasoning behind that question.
Will be really grateful for all good links.
http://html5gallery.com/
check out http://www.html5rocks.com/
My favorite link for some awesome examples of HTML5 usage is at http://www.chromeexperiments.com/
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I remember once visiting a website that would present a book/novel summary in the most interesting way. It would show a list of words that were repeated most often in that book and which were unique/uncommon. In other words, it would show the maximum frequency words but not common words like the, I, you etc. Then it needs to have things like showing a phrase if that is repeated often. For example, Treasure Island would probably have words like - pirates, storm, fought, treasure, pieces of eight, island, Long John Silver, Jim, omen etc.
This was the most interesting way to quickly get a good feel of whether I would like reading that book or not. I cannot find that website anymore. So I thought of looking for a software that would do the job. I have a couple of books in pdf and doc format which I would like to have analyzed. Does anyone know of a good tool/software out there that can do this?
Of course I could probably code this myself but it sure would be nice to not reinvent the wheel. So my question is, "do you know of any such software?"
Thanks,
Mugen
(bookworm)
Try Wordle.net. It creates tag clouds and renders them in different ways.
Answer attribution: Dave