Al comienzo del documento tengo que poner <!DOCTYPE html> pero si el documemto tiene java y html como se declara


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

Replace this line with your code.

<do not remove the three backticks above>

#2

Hi csswhiz14970,

welcome to Codecademy! I’m going to answer in English as it’s my primary language although I do speak Spanish poorly :slight_smile:

“Java” is a programming language that does not go in HTML, I assume you mean JavaScript which does?

To put JavaScript in an HTML document you use a <script> tag like this

<!DOCTYPE html>
<html>
  <head></head>
  <body>
    <script>
      alert('Hi There csswhiz14970!');
    </script>
  </body>
</html>

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.