|
|
What Language Is That? - A guide to the most common web languages. | ||
Discussion by Habble with 16 Replies.
Last Update: December 15, 2007, 5:04 am (View Latest) | Page 1 of 2 pages. | ||
HTML
Probably one of the languages you will hear about the most, HTML stands for Hyper-Text Markup Language. HTML is the main language used to code websites. Without HTML, there would be no websites! If you opened up the source code for this page, and looked throuugh it, you'd find little bits of code that look <b>like</b> <i>this</i>. The things like <this> are called tags. Tags can either affect what's on the page at that spot, e.g. <img src="hello.gif"> would place an image with the filename "happy.gif" in that spot on the page. Or they can affect what comes between them, e.g. <u>Hello!</u> would show up as Hello!. Note the ending tag (</u>) that tells the browser when to stop underlining the text.
File extensions: .html, .htm
Find out more: http://www.w3.org/html/
XHTML
XHTML stands for Extensible Hyper-Text Markup Language. It is designed to show as both XML (See below) and HTML, allowing a wider variety of browsers to view it properly. XHTML users must conform to certain rules, such as tags must be written in lowercase, and elements cannot overlap.
File extensions: .xhtml, .html, .htm
Find out more: http://www.w3.org/MarkUp/
XML
XML stands for Extensible Markup Language. It is similar to HTML, except it's designed to be used not only in web browsers, but a wide variety of other programs. XML offers an easy way to lay things out in an application. XML is also designed to be clear and concise, and easy readable by people. XML allows you to create tags that will appear differently in a program, and therefore making an extremely flexible language.
File extension: .xml
Find out more: http://www.w3.org/XML/
CSS
CSS stands for Cascading Style Sheets. CSS is used to style a website, setting colours, backgrounds, fonts etc. Without excessive use of tags surrounfing the whole page. A typical CSS Sheet would look like this:
body { background-color: #DDDDDD; font-family: Verdana; font-size: 10px; color: #000000; }
a:link { text-decoration: none; color: #FF0000; }
a:active { text-decoration: none; color: #FF0000; }
a:visited { text-decoration: none; color: #FF0000; }
a:hover { text-decoration: underline; color: #00FF00; }
As you can see, we declare what element we're setting the style of (e.g. body), then inside { } brackets, we define the style attributes in the form attribute: value;. Style sheets can be placed within <style> tags in the head of the document, called from an external style sheet using the <link> tag, or the style for a particular element can be set using the style="" attribute.
File extension: .css
Find out more: http://www.w3.org/Style/CSS/
PHP
PHP stands for Hypertext Preprocessor (Don't ask me how!) It's a server-side scripting language, which means it's interpreted and converted to HTML before the browser recieves it. PHP is placed within <?php ?> tags in a document. To interpret PHP, you must be accessing the document through a server that can interpret PHP, rather than just locally. PHP is used for many things, connecting to databases, creating cookies, performing calculations and more. It's one of the most used scripting languages, and can be extremely powerful.
File extension: .php (Although you can set other extensions to allow PHP functionality with)
Find out more: http://www.php.net
JavaScript
JavaScript, not to be confused with Java, is a clientside scripting language, this means that the users browser does all the processing. Disadvantages with this are that you're relying on the fact that the user has an up-to-date browser for the scripts to work. JavaScript is placed withing <script> tags, or a source code is defined using <script src="">. JavaScript works like many other scripting languages. It is object-oriented, and is designed to interact with HTML elements.
File extension: .js
Find out more: http://www.javascript.com
SQL
SQL stands for Structured Query Language. It's the language used by SQL Database managers, such as MySQL, to carry out requests. Although it isn't a very large language, it's important for every webmaster using Databases to know. To get all results from a table using SQL, we would call "select * from tablename;", or if we wanted to select a specific column and a specific row, we could call "select lastname from tablename where firstname = 'John';"
All commands in SQL require a semicolon at the end, except for when using PHP's SQL functions, or when using the "use" function, to switch databases. SQL can be either called directly, or SQL commands can be read from a file.
File extensions: .sql
Find out more: http://www.sql.org/
AJAX
AJAX isn't really an entirely different language, but people use it to refer to the funtions in JavaScript used to remotely access a webpage. This is extremely useful for Webmasters who don't like the idea of reloading pages all the time to refresh information.
Find out more: http://en.wikipedia.org/wiki/Ajax_(programming)
Thu Sep 6, 2007 Reply New Discussion
PHP: PHP Hypertext Preprocessor is a recursive acronym meaning that the definition of the acronym contains the acronym. I couldn't possibly think that far ahead in naming a language nor poses the skill to write my own language which leads me to believe that the originators are pretty smart people.
I did think that given the importance that Perl has played in the development of web based applications, it should also be mention.
Perl (Practical Extraction and Report Language) is usually what is running when you see anything that uses the cgi-bin directory. It is a very powerful language and was the main server side parser before PHP. File extensions include .cgi and.pl
ASP (Active Server Pages) is also a common language for the web. Personally, I don't use it and don't have little personal information about the language but thought it should be mentioned. It is limited in usefulness since support on Unix/Linux based web servers (usually running Apache) isn't very good which is problematic since the vast majority of web servers use this platform. ASP is a Microsoft language and as a result is rather complex but very powerful!
I like the point that you made about PHP parsing the script into HTML prior to being sent to the browser. Many people don't understand this. In fact, most people don't understand that there are only four ways to display information as a web page. HTML, JavaScript, Plain Text, and graphical (through JS or HTML usually). These are the only formats that your browser will understand. While it is possible to code a website entirely in JavaScript, I don't recommend it.
vujsa
Thu Sep 6, 2007 Reply New Discussion
-HellFire
Thu Sep 6, 2007 Reply New Discussion
Oh and by the way, you forgot about XSLT, XLink, XForms, MathML, and SVG, which are XML-based languages that should be mentioned at least a little with XML.
Wed Sep 12, 2007 Reply New Discussion
Wed Sep 12, 2007 Reply New Discussion
As to the html over xhtml debate..I personally believe xhtml is the future of static web design, rather than HTML 5. Obviously HTML 5 will be wider used, as it will be more supported by programs, but the majority of good web developers will probably use xhtml. It loads faster, and works better across many browsers than HTML 4.0 does, plus it utilizes good practices in coding such as ending statements (tags in html), and properly nesting code, which must be done in almost all programming languages.
Fri Sep 14, 2007 Reply New Discussion
QUOTE
I prefer using XHTML over HTML. It is the next generation of web languages, and many sites are currently adopting it.I do as well. However, I do question what the advantage really is. People say that XHTML is a lot more strict so webmasters are forced to do things the standards-compliant way. However, this is only if these webmasters actually bother checking to see if their website validates. If they don't bother to do this, then XHTML will have the same problem as HTML--there will still be many mistakes.
Moreover, there are some changes in XHTML that I think are rather pointless----<strong> instead of <b>? What's the difference besides an arbitrary change in wording? Besides, <b> is actually shorter than <strong>, so why the change? Then there's <center>, which is actually a very very useful tag. There isn't an easy way to do centering with CSS on all browsers. (It's a hack, basically.)
Nonetheless, XHTML still has its good points, or else I wouldn't be using it. I've heard that it scales nicely to other non-computer platforms like cell phones and such. Always useful, I guess. Though that does make me wonder why Google doesn't switch to XHTML...considering all their new mobile technology and all.
Sat Sep 15, 2007 Reply New Discussion
and changing <b> tag to <strong> or <i> to <em> is a logical way to do, CSS is used to do everything with appearance, that includes bold, italic and center, html or in this way xhtml doesn't need to do anything with the appearance of the website/layout whatever, it needs to deal with data and it needs to be valid by xml tools, html even wasn't designed to do such things like addition of colours, it was the browsers which added this stuff and w3c agreed with it until css and xhtml came in ~1999.. and today, if you want to use b tags and etc. just use html4 and it will validate and you won't have any problems with most of the browsers parsing the documents.
Sat Sep 15, 2007 Reply New Discussion
Sun Sep 16, 2007 Reply New Discussion
xhtml is cleaner to read so when you are on a site copying or learning from the code, its easier to know what it all is.
Sun Sep 16, 2007 Reply New Discussion
Mon Sep 17, 2007 Reply New Discussion
i also tried c++, gave up
now i just like learning web scripting/programming languages.
ive never looked at perl before, i dont even know what it does or what it is used for.
Mon Sep 17, 2007 Reply New Discussion
for some reason each language has some advantages and shortcomings, for instance html is plain, fast but at the same time not so dynamic, on the other side php is more dynamic but little more complicated; css is more stylish and easy to maintain but it is not supported by all the browsers.
My suggestion is that you have to learrn each language a bit and mix it on your website for your own goal.
Fri Oct 5, 2007 Reply New Discussion
QUOTE (muztagh)
If you go deeper in web development and try to create more complicated features on your website actually you have to mix those languages. for example I have a website which is mainly built on html but I also use some scripts of php and code the styles with css, furthermore sql and javascript also used.for some reason each language has some advantages and shortcomings, for instance html is plain, fast but at the same time not so dynamic, on the other side php is more dynamic but little more complicated; css is more stylish and easy to maintain but it is not supported by all the browsers.
My suggestion is that you have to learrn each language a bit and mix it on your website for your own goal.
Link: view Post: 111848
I totally agree with that. I love to code using XHTML and of course with that you need CSS too, but I do learn JavaScript here and there to spruce up my pages a little (not something dramatic flash text, just little things executed onmouseover and stuff). I do use PHP for server-side scripting needs, and I do use MySQL for databases, which is an essential.
HTML is plain and not dynamic because it is designed to be a markup language. It is designed to tell browsers how to display the page.
PHP is dynamic because it is a server-side language to generate dynamic content.
CSS is the language for styling HTML/XHTML documents but unfortunately I need to write separate CSS for Internet Explorer because its CSS support isn't very good
XML is for organizing data which I use to organize data
XSLT is to transform the XML files into nicely formed XHTML documents so that people can read them easily.
Remember, even expert developers (Yahoo!, Google, Facebook, etc) do not memorize all functions in PHP, they refer to reference material at times when necessary.
Tue Dec 11, 2007 Reply New Discussion
Still, I'm by no means an expert web developer. More of a tinkerer, with a love for clean code.
Fri Dec 14, 2007 Reply New Discussion
Port Forwarding For Webservers Running a Webserver On a Router (0)
|
(5) Fake An Ajax Loading Sequence use a background GIF to do it
|
Index




