Hi Tony,
 Have a look at 
https://stackoverflow.com/questions/17930267/what-is-the-difference-between-syntax-and-semantics-of-programming-languages
and also Wikipewdia but in short!
Semantics is about the *meaning* of the sentence. It answers the questions: 
is this sentence valid? If so, what does the sentence mean?

For example I prefer the first piece of code below which create an aside


1.
<aside>
  <h4>Epcot Center</h4>
  <p>The Epcot Center is a theme park in Disney World, Florida.</p>
</aside>


2.
<div class="mycls">
  <div style="font-size:2em">Epcot Center</div>
  <p>The Epcot Center is a theme park in Disney World, Florida.</p>
</div>

Solution one is much more meaningful, easier to understand and easier to 
maintain, while both solutions are syntactically correct!

Other resources: [[https://www.webopedia.com/TERM/S/semantics.html]]

In linguistics, semantics is the study of meanings. In computer science 
<https://www.webopedia.com/TERM/C/computer_science.html>, the term is 
frequently used to differentiate the meaning of an instruction 
<https://www.webopedia.com/TERM/I/instruction.html> from its format 
<https://www.webopedia.com/TERM/F/format.html>. The format, which covers 
the spelling of language <https://www.webopedia.com/TERM/L/language.html> 
components 
and the rules controlling how components are combined, is called the 
language's *syntax* <https://www.webopedia.com/TERM/S/syntax.html>. For 
example, if you misspell a command 
<https://www.webopedia.com/TERM/C/command.html>, it is a syntax error. If, 
on the other hand, you enter a legal command that does not make any sense 
in the current context, it is a semantic error.

--Mohammad



On Monday, April 1, 2019 at 2:39:54 AM UTC+4:30, TonyM wrote:
>
> Mohammad,
>
> you and others are often referring to symantic, can you share a definition 
> if possible. The term clashes in my mind with philosophy and natural 
> languages use of the word.
>
> Thanks
> Tony
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/05c6d09b-b4b4-45da-869f-a5f6661d2b9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to