Top "Semantics" questions

The study of meaning as it applies to programming languages

<strong> vs <em>?

What is the difference? Both of them emphasize the text. The <em> tag shows text as italics, whereas &…

html xhtml semantics
Should I fix Xcode 5 'Semantic issue: undeclared selector'?

I'm trying to upgrade my app with Xcode5 but encountered a number of 'Semantic issues' in a third party library (…

ios selector semantics xcode5
Anchors inside headers, or vice versa - is there a different in relation to SEO?

I always stumble upon this (rather simple question) when making e.g. Wordpress blogs. Should I wrap the headline, which …

html hyperlink seo semantics
When to use <br> line breaks vs CSS positioning?

I've often wondered about the proper use of a <br> line break. Seems that often they are incorrectly …

html css w3c semantics semantic-markup
unordered_map: what to return if key is not in map?

As a preface to this question, I have to say that I am a Java programmer and therefore much more …

c++ semantics unordered-map
Which HTML tags are more appropriate for money?

If you had to properly choose one HTML tag to represent a price, a money amount or an account balance, (…

html semantics
nested fieldsets

Is it semantically correct to represent sub-sections using fieldsets? = Basic Info = First Name: ________ Last Name: ________ = Address = Business Name: ________ Streeet: ________ City: ________ …

html semantics
C# Switch with String.IsNullOrEmpty

Is it possible to have a switch in C# which checks if the value is null or empty not "" but …

c# string switch-statement semantics
Are parentheses around the result significant in a return statement?

Is there a difference between these two statements inside a function? bool returnValue = true; // Code that does something return(returnValue); …

c++ c semantics
What does the colon dash ":-" mean in bash

The result is the one desired; after a bit of trial and error. I don't understand what the "2:-" and "3:…

bash shell syntax semantics