Questions tagged [semantics]

The study of meaning as it applies to programming languages

Semantics is the study of meaning. In computer programming, semantics refers to the relationships between symbols in a programming language, and how those symbols are combined and manipulated to produce a computing result.

Useful links

1728 questions
0
votes
1 answer

Article , section html5 semantics

I'm a little confused about article VS Section in HTML 5. My web page is divided into different types of foods. Each row is a different type of food - (Meat, veg and desserts). Each row is subdivided into three columns / recipes Should I enclose…
petr jian
  • 31
  • 1
  • 2
0
votes
1 answer

HTML semanctics Can elements come before heading tag in sectioning element?

Any HTML master out there please give me a GO. Usually in sectioning element like section or article, header or h1 ~ h6 tags stay prior to any element like following:

TITLE BLAH

blah blah…
norixxx
  • 2,549
  • 2
  • 19
  • 26
0
votes
1 answer

Emacs semantic auto-complete show error?

I use emacs semantic to auto-complete C language structure, but when I tag ">" (Message->) it show error "cannot analyze buffers not supported by semantic". Google many times and I did not find any solution. Debug Message: Debugger entered--Lisp…
Wink Chow
  • 11
  • 1
0
votes
2 answers

Semantics of identifier line in Python

What is the semantics of a Python 2.7 line containing ONLY identifier. I.e. simply a or something ? If you know the exact place in the Reference, I'd be very pleased. Tnx.
0
votes
1 answer

Can default visibility in Java Class have a protected member?

In Java, from my point of view, it does Not make sense for a default-visible class to have a protected member. From my point to view, it does not make sense because default visibility in Java = package-level protected visibility in Java =…
CS Lewis
  • 489
  • 8
  • 30
0
votes
1 answer

How to insert text to CKEditor without styles but preserve semantics

Is there a way how to paste formatted text to ckeditor without styles and preserving semantics? For example this is what it pastes:

An h1 header

ondrej
  • 967
  • 7
  • 26
0
votes
0 answers

Most semantic way to use different images with media queries

I need to have different sizes of my images, so I was going to show and hide the images with media queries. Will it confuse search engines / special screen readers if there are duplicates of one image on a page? Should I instead have just one image…
stackers
  • 2,701
  • 4
  • 34
  • 66
0
votes
1 answer

How to semantically improve this html snippet

Consider the following piece of markup:

Bar Foo

The end of the world

Jeanluca Scaljeri
  • 26,343
  • 56
  • 205
  • 333
0
votes
1 answer

Identifying and comparing syntactic structure of questio-sentence

I am getting question from user and trying to understand syntactically. My goal is to identify the exact question sentence from user entered question. Like Obama is president of USA, who is his wife? So I am able to apply anaphora resolution and…
user123
  • 5,269
  • 16
  • 73
  • 121
0
votes
1 answer

semantic web request result difference

PREFIX dbo: SELECT * WHERE { ?x foaf:primaryTopic ?n . ?x rdf:type ?z . FILTER (regex(?x, '^http://en.wikipedia.org/wiki/Barack_Obama$')). } LIMIT 10 when i call this request from…
coenni
  • 437
  • 4
  • 14
0
votes
4 answers

HTML5 semantic transformation

Is this correction correct semantically talking? I've written my doubts inside the HTML comments to explain my thoughts.

Movies

Genres

Below you can see the available genres:

1.…

Mimetix
  • 272
  • 1
  • 4
  • 12
0
votes
1 answer

"countByEnumeratingWithState:objects:count:" Error

I am trying to load a view controller where the accelerometer is moving an image view. the error in the title shows and the app crashes upon view loading. - (void)collsionWithWalls { CGRect frame = self.Mover.frame; frame.origin.x =…
Yugaman
  • 59
  • 1
  • 12
0
votes
2 answers

Name for compiler/interpreter phase which identifies special methods?

Is there a succinct term for the phase of a compiler or interpreter which identifies special methods, such as constructors and destructors? I think it probably fits under semantic analysis somewhere but I am wondering if there is a more specific…
Levi Morrison
  • 19,116
  • 7
  • 65
  • 85
0
votes
1 answer

Is accesskey attribute really case sensitive?

The specification says: If specified, the value must be an ordered set of unique space-separated tokens that are case-sensitive, each of which must be exactly one Unicode code point in length. However, as far as I have tested, it doesn't seems to…
Sebastien C.
  • 4,649
  • 1
  • 21
  • 32
0
votes
2 answers

Is this correct markup - empty element OR use css/js to achieve same effect

I have a situation where I need to have a separator between 2 items as shown in the plunk. I could think of 2 methods for this to do as 1) Put an empty span between items and style it like separator HTML:
1 2 3
99
100