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

how to detect browser supports HTML5 microdata API

I use the following code to check for HTML5 microdata API support function supports_microdata_api() { return !!document.getItems; } but this is not working properly. How can I solve this problem?
0
votes
1 answer

Represent tabular data (field heading then data) semantically without using a table

I'm coding a responsive & semantic HTML5 webpage. However, I've just hit a snag: There's a piece of design that would normally be respresented as tabular data within the HTML (i.e. a heading and corresponding data) but it would be impossible to use…
I am me
  • 131
  • 2
  • 12
0
votes
1 answer

Having a fcaption align with the img

This is my code
Fig1. - A view of the pulpit rock in Norway.
And this produces the image and below it the figcaption, what I'm trying to do…
Naguib Ihab
  • 4,259
  • 7
  • 44
  • 80
0
votes
1 answer

Can someone explain why a header-element containing a single heading in an article is bad?

This article "Avoiding common HTML5 mistakes" on HTML5Doctor says: If your element only contains a single heading element, leave out the
. According to the article, this is bad practice:

Heading

lampshade
  • 2,470
  • 3
  • 36
  • 74
0
votes
1 answer

How does content in an a-element affects semantics, screen readers and search engines?

Let's say I have a list of articles on a preview page of a blog. I want the whole area of each entry to be clickable. In HTML5 this is a possible solution with valid markup:
lampshade
  • 2,470
  • 3
  • 36
  • 74
0
votes
3 answers

Which HTML tag to use to display time?

I am showing current time in my web app. I can show it in a span or a div. But which would be semantically apt?
Harish
  • 490
  • 2
  • 11
  • 19
0
votes
1 answer

Error in the semantic values returned by bison

A part of my bison grammar is as shown head: OPEN statement CLOSE { $$=$2; } ; statement: word { $$=$1; } | statement word { $$=$1; printf("%s",$$); } ; Now if my input is…
Jackzz
  • 1,417
  • 4
  • 24
  • 53
0
votes
1 answer

In PHP, what does the 'at' symbol before an L-value mean?

Everything I can find refers to the use of the @ symbol as a prefix to an expression, e.g.: $foo = @bar(); This is not what I'm talking about here. I have a statement which uses the @ symbol as a prefix to an L-value, like: @$foo = bar(); What…
jameshfisher
  • 34,029
  • 31
  • 121
  • 167
0
votes
5 answers

Are RDF triple Stores, suitable for everyday programming?

I like these a lot, and would like to use them for everything. Why would doing RDF triple stores for everyday programming (Entities/Tables), such as Contacts, Customers, Company etc. be a bad idea. Are there short falls in the technology that I…
WeNeedAnswers
  • 4,620
  • 2
  • 32
  • 47
0
votes
4 answers

Do I have to use

Do I have to use ul/ol elements when I make navbars/other groups of links or it is optional? Is it ok to replace this code
0
votes
1 answer

Understanding call by value-result and call by reference differnce

So I have this piece of Pascal code: program P; var a: array [1..2] of Integer; var i :Integer; var k :Integer; procedure update(x,y,z: Integer); begin x := x+1; y := x*2; x := y; k := x; end begin …
0
votes
0 answers

PHP Routing Case Sensitivity

There are many URL routing classes available, from frameworks (Laravel Routing) to stand alone classes such as FastRoute. Each routing class does its job slightly differently, some make use of regex, some do basic string comparisons and so on. I am…
Ozzy
  • 10,285
  • 26
  • 94
  • 138
0
votes
1 answer

semantic error in code

I've written a shell that has some basic features. It shall have an process list in which every executed process is listed. I write these informations in a struct called Pstatus. Pstatus will be written into a global list. If I try to read from…
user1550036
  • 211
  • 1
  • 3
  • 9
0
votes
3 answers

Usage of

tags

As far as I know, p tags create paragraphs. But I often find HTML code where these tags are used for other aims. For example, I found it in a Codecademy exercise:

Rex

div { position: relative; display: inline-block; …
user3546093
0
votes
1 answer

semantically replacing unordered list (UL) free text

I have found validating under HTML5, the validator is throwing up errors for using free text with an unordered list. EG.
    some free text
  • 1st list item
  • 2nd list item
So I have replaced this free text within the…
1DMF
  • 2,045
  • 4
  • 15
  • 17
1 2 3
99
100