Editing content of a webpage using either HTML or Script: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
→‎Introduction: now mentions that other examples elsewhere in Wiki
m (→‎Script Example: expaining time query string)
m (→‎Introduction: now mentions that other examples elsewhere in Wiki)
Line 2: Line 2:
Essentially, HyperText Mark-up Language is for describing the content of a web page. The elements available in the language can identify the type of content (e.g. anchors, headings, sections, articles, asides, code, audio, button, caption, table, form, input, navigation, images, video and other media).
Essentially, HyperText Mark-up Language is for describing the content of a web page. The elements available in the language can identify the type of content (e.g. anchors, headings, sections, articles, asides, code, audio, button, caption, table, form, input, navigation, images, video and other media).


If a web page change simply involves inserting a different object (e.g. an embedded web page, a text file, or an image), and that object is available on the web site host, then HTML provides a mechanism for changing the content without using a script (Pure HTML example below).
In some circumstances, the page needs to be dynamic, i.e. we need to be able to change part of the content.  This article shows two ways of changing Cumulus derived content. Elsewhere on this Wiki, there are 3rd party web applications for displaying a year's observations in a calendar summary format, for frequently updated 'now' reporting, and for displaying weather graphically.  Other dynamic pages such as those processing forms are outside the scope of this article.
 
If a web page change simply involves inserting a different object (e.g. an embedded web page, a text file, or an image), and that object is available, then HTML provides a mechanism for changing the content without using a script (Pure HTML example below).


For more flexibility in changing the content of a HTML page, there can be a call to a JavaScript code (Script example below) and that can do the same as pure HTML and more advanced manipulation. Although a particular person may choose not to enable it, JavaScript is available in most modern browsers across most hardware platforms (including smart phones).  The browser will interpret the instuction in the script normally after it has loaded the initial direct HTML content.
For more flexibility in changing the content of a HTML page, there can be a call to a JavaScript code (Script example below) and that can do the same as pure HTML and more advanced manipulation. Although a particular person may choose not to enable it, JavaScript is available in most modern browsers across most hardware platforms (including smart phones).  The browser will interpret the instuction in the script normally after it has loaded the initial direct HTML content.


Finally, the server that hosts  a web page may offer a language that allows a script to be followed that results in a set of instructions being followed to generate some HTML code that is then sent to the user's browser.  
Finally, the server that hosts  a web page may offer a language that allows a script to be followed that results in a set of instructions being followed to generate some HTML code that is then sent to the user's browser.  One example is PHP and again there are PHP using routines elsewhere in this Wiki.
[[Category:WebTips]][[User:Sfws|Sfws]] 17:02, 28 November 2012 (UTC)
[[Category:WebTips]][[User:Sfws|Sfws]] 17:02, 28 November 2012 (UTC)


5,838

edits

Navigation menu