Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

When did you start Writing html?

HTML

  • Please log in to reply
86 replies to this topic

#61 Orjan

Orjan

    CC Mentor

  • Moderator
  • 2918 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#

Posted 06 February 2009 - 05:58 PM

Yepp, that's JavaScript. not HTML. but the JavaScript is nested inside the HTML.

the document.write function is javascript, nothing else.
  • 0

#62 MrGamma

MrGamma

    CC Regular

  • Just Joined
  • PipPipPip
  • 48 posts

Posted 06 February 2009 - 06:16 PM


<?php

print('

<script>

document.write(\'<span id="val1">10</span>

<span id="val2">20</span>

<span id="operator">Addition</span>

<!-- Hint: 30 //-->\');

</script>

');

?>


I think the real question is... Who can take it to the next layer deep?
  • 0

#63 Orjan

Orjan

    CC Mentor

  • Moderator
  • 2918 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#

Posted 06 February 2009 - 06:41 PM

well, here we use php to generate the html & javascript. doesn't make a difference.

HTML is still not turing complete and not a programming language.
pure HTML can not add two numbers together.

the real question is, if you, MrGamma, can understand the facts, or just fool around even more?
  • 0

#64 deer dance

deer dance

    CC Regular

  • Just Joined
  • PipPipPip
  • 37 posts

Posted 09 February 2009 - 03:56 PM

June '08

My signature says the rest.
  • 0

#65 MrGamma

MrGamma

    CC Regular

  • Just Joined
  • PipPipPip
  • 48 posts

Posted 09 February 2009 - 06:11 PM

HTML is still not turing complete and not a programming language.


Okay Okay... I am sort of fooling around... you're correct...


However... HTML gives instruction to it's interpreter and performs much in the same way JavaScript is read by clients browser, or the much in the same way PHP is interpreted by the Zend engine.

HTML is a programming language. Not really good for anything except layouts, and maybe the occasional <blink> instruction, but it's a programming language.

Unless of course your one of those people who wants to argue over Pluto's status as a planet.
  • 0

#66 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 10 February 2009 - 03:44 AM

No it's not a programming language. HTML is a markup language. All it does is describe information.

A programming language is a machine-readable artificial language designed to express computations that can be performed by a machine, particularly a computer. Programming languages can be used to create programs that specify the behavior of a machine, to express algorithms precisely, or as a mode of human communication.


HTML has no ability to make computations.

Even blink isn't programming. It's just another markup that tells the browser that it should make that element flash every now and then.

All the code you have used is not HTML doing the computations. Without using JavaScript, Java, PHP or any language try to add two numbers together. Amuse me.

HTML is not a programming language, it never will be.
  • 0

#67 MrGamma

MrGamma

    CC Regular

  • Just Joined
  • PipPipPip
  • 48 posts

Posted 10 February 2009 - 10:39 AM

HTML has no ability to make computations.


FALSE

<span>LESS COMPUTATIONS MADE</span>


Makes significantly less computations than...

<div><span><table><th></th><tr><td><b>MORE COMPUTATIONS MADE</b></td></tr></table></span></div>

Did ** just freeze over?


<div id="a">1</div>
<div id="b">2</div>



<?php

$a = file_get_contents(http://myfile.com/html.html);

$a = strip_tags($a);
$a = explode("\n",$a);

echo $a[0] + $a[1];

?>


Okay... So last I checked you might need something to interpret the instruction... Doesn't all code require something to interpret the instruction?

Can JavaScript or Php do anything without being connected to something else which translates it's "intention"... after all... php is not a self contained entity but rather it's just a piece of the whole... just like javascript and html...

Now if you had said HTML is static data... That's something I can agree on...

However... Javascript and Php are just static data until they are interpreted as well...
  • 0

#68 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 10 February 2009 - 10:43 AM

Those are not computations in the sense chili meant.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#69 MrGamma

MrGamma

    CC Regular

  • Just Joined
  • PipPipPip
  • 48 posts

Posted 10 February 2009 - 11:22 AM

I know... I am just trolling a little... sorry chili...
  • 0

#70 mikelbring

mikelbring

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 117 posts

Posted 11 February 2009 - 10:33 AM

I started to learn html in 2002. I used htmlkit for years as my editor. Then used scite for a few 2007-2008 now I use netbeans for php/css/xhtml.
  • 0

Realize the Web Web services and design.


#71 PythonPower

PythonPower

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 179 posts

Posted 15 February 2009 - 01:24 PM

Hand coded XHTML is the way to go.

On topic: I started at thirteen which would have been... 2005! A long time ago!
  • 0

#72 codyBane

codyBane

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 16 March 2009 - 09:20 AM

Gosh, I started back in 96/97 with Netscape Communicator. I haven't seen a wysiwyg editor produce such clean code since so now I use notepad or quanta.
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download