HTML5 & human languages - links
HTML5 & human languages - Introduction
intro. The structure of sentences in human languages shows us interesting similarities to the basic structure of HTML5.
Human languages like English and HTML5 both have a modular structure.
"Modular" means here that a sentence in English and the HTML5 page consists of blocks or functional units that form together their unique unity: a message / a story, an HTML5 page.
Each block called here "element" has its own function in the unity.
hierarchy. In both systems all elements are hierarchically related to each other. And next to it each element has an hierarchy in itself.
human language. In the sentence The old man is driving his new car the predicate (expressing action) element is driving is the core element of the sentence. The man as subject ('who is acting') and the new car as object ('what is done') of the sentence are a working-out of the action and dependent on the predicate.
In this constellation the subject is functionally dominant over the object. The object can be omitted, the subject cannot. Every action needs explicitly an specific actor. But the object of the action is apparently less important to mention because eating automatically assumes an eatable object.
In the predicate element is driving you see two word elements that form an hierarchical relationship to each other: driving is the core of the predicate, is can be considered as a grammatical, attributal element added to driving.
This internal hierarchical relationship we also see in The old man and his new car. The attributes The, old, his and new are placed left of the core words man and car in both elements.
HTML5. Compare the mentioned linguistic unity (= sentence) with an HTML5 unity. Let's take the head and body elements. Both elements are important to transfer the message to the visitor of the web page. The title element in the head section displays a title for the page in search-engine results. The p element in the body section containing one or more sentences and / or images shows us the real content.
In this constellation I would consider the p element as more important than the title element. Without the p element containing text and images there is no message at all to be shown to the visitor. Without the title element the findability of the page on the internet is weak. The content is still there, visible. So the body can be considered as the core element in the html element (the web page as a whole).
Inside the body element we see different hierarchical relationships. The div element is dominant over the p element; the p element is always placed inside a div element and not vice versa. Attributes - hierarchically less important - added to the div and p elements are put left of the content of the element, that means placed in the start tag of the element.
In addition, attributes can be omitted; attributes provide additional information (alt as replaceable info to an image) or functions (styling). In human languages you see the same principle: the and old in the old man are only additional (grammatical and semantical) information added to man.
While English or Finnish are produced by peoples voices, HTML5 is an artificial product of the human brain.
All elements in a sentence represent a part of the content, the message as a whole. In an HTML5 page only the body element represents the content.
position of attributes
HTML5: In HTML5 attributes are always placed in the start tag. I think this is not a logical choice, but the result of intuitive thinking in English.
English: In English attributes (preposition, article, adverb, adjective) are always to the left of the core element (substantive). In the predicate the same principle is applied: in has bought or has been eaten bought and eaten are the kernel of the element; has and has been are the verbal attributes placed to the left of the kernel verbal forms.
Finnish: If Finnish was chosen to programm HTML5, then the structure of HTML5 might have been very different from the real situation now. In the 'Finnish' situation attributes were perhaps placed in the end tag: <p>pöydällä</p class="bg-success"> in stead of the real situation in <p class="bg-success">pöydällä</p>. See also example 2 below.
This article is a first step, not a final elaboration of a thought. A challenge to everyone who is interested in human and artificial languages.
HTML5 & human languages - Examples
example 1 in HTML5: <html> html element ... = to be regarded as an independent element <head> head element or section </head> = to be regarded as an dependent element <body> body element or section </body> = to be regarded as an dependent element ... or html section </html> example 1 in a human language: John has eaten a sandwich. = a sentence = a linguistic statement = to be regarded as an independent linguistic element has eaten = predicate element of the sentence ('activity') = to be regarded as a dependent linguistic element John = subject element of the sentence ('who has eaten') = to be regarded as a dependent linguistic element a sandwich. = object element of the sentence ('what is eaten') = to be regarded as a dependent linguistic element Remarks: Elements are moduls. Dependent modules are part of an independent (<html> element) or a dependent module (<p> element as part of the <body> element). Phrases (predicate, subject, object) can be considered as modules as well, in the sense that they are parts of the sentence. And a sentence can be seen as one of the dependent modules (with other sentences) in a paragraph.
example 2 in HTML5: HTML attributes always in start tag: <h1 class="bg-success" title="HTML5">HTML5</h1> HTML attributes not allowed in end tag:
<h1>HTML5</h1 class="bg-success" title="HTML5">example 2 in a human language: In this English construction the attributes like the adverb also, the preposition on, and the personal pronoun my are positioned left to the substantive table: also on my table. In this Finnish construction the attributes like the 'adverb' -kin (= also), the 'preposition' -llä (= on), 'personal pronoun' -ni (= my) are positioned right to the substantive: pöydällänikin. Remarks: The fact that attributes in HTML are always placed in the start tag is probably the intuitive result of programming HTML in an English way of thinking. In an experiment a *Finnish, *Hungarian or *Turkish speaking person should programm HTML linguistically in a Finnish, Hungarian or Turkish way of thinking. The results could be very suprising. * Finnish, Hungarian and Turkish belong typologically to the so called agglutinative languages.