We’re rewarding the question askers & reputations are being recalculated! Read more.
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 8207

HTML (Hyper Text Markup Language) is the standard content markup language of the web. It is an open standard developed and maintained by W3C (World Wide Web Consortium).

14
votes
There are several advantages to writing proper HTML and using semantic tags. Instead of asking yourself "How should this look?" Ask yourself "What does this mean?". What does it mean for a text to … behavior is currently undefined in latest versions of HTML, and will lead to unpredictable variations between browser implementations, and between browser versions. Using proper elements (<em>, <strong> as …
answered Jun 7 '14 by Madara Uchiha
2
votes
A few things: Don't use <br>s as a design element (i.e. breaking lines for a layout). Use CSS's display: block or surround with <div> or <p> elements. <br>s are meant for line breaks in text, withou …
answered Sep 29 '15 by Madara Uchiha
1
vote
I wouldn't name my classes like that for anything that goes out in the open. While it sounds cool and is a nice inside joke, the class names are not semantic, hard to remember and not very helpful in …
answered May 29 '14 by Madara Uchiha
2
votes
I'll primarily do the JS: Spacing and code style: Everything is perfect except for one line. if(this.map[this.y-1]) if (this.map[this.y-1][this.x] ===0){ - if if? Why not use &&? See short circuit e …
answered Jun 19 '14 by Madara Uchiha
3
votes
In the order I spot things (so in no particular order): Don't use innerHTML, especially not with user input. Imagine a user called Bob<script>alert('I am evil');</script> You can use document.create …
answered Nov 9 '15 by Madara Uchiha
1
vote
Well, it is unlikely for the countries to change much, and even if they do, you might as well change it in HTML rather than in PHP. It really doesn't matter much, there's no point in abstracting … these. I'd go with making this static HTML, and save some performance (although probably negligible). You would want to use PHP however, if you need extra functionality like "Apply selected on the country the user is GeoIP detected from". That is best handled with PHP. …
answered Jun 19 '14 by Madara Uchiha
7
votes
You should let CSS handle most of the job for you. Example JS: var a = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']; var count = 1; var html = ''; for (var i = 0; i …
answered Jun 10 '14 by Madara Uchiha
1
vote
There are already native functions to escape for HTML and JS strings: htmlspecialchars() and json_encode(). See this related question on Stack Overflow As for innerHTML, simply don't use it. Use …
answered Dec 1 '14 by Madara Uchiha
1
vote
My other answer explains the general best practice, let's go over your code. You can pass an array to str_replace() so that it replaces every occurence of matching substrings with their replacement …
answered Dec 1 '14 by Madara Uchiha
3
votes
Let's start with a dry review: Underscores in JavaScript hurt the eyes. The absolute naming convention of JavaScript is to use camelCase. Your underscore notation, while consistent, hurts the eyes o …
answered Aug 30 '14 by Madara Uchiha