HTML5 HELLO WORLD Example


HTML5 has come a long way! It is now supported by all major desktop and mobile web browsers (Google's Chrome, Mozilla Firefox, Safari e.t.c) It is more consistent and has added a lot of new APIs that make creating web applications easy. Some features,

  • New Doctype.
  • New parsing rules.
  • New APIs : video, progress, nav, canvas etc.
  • New input attributes: date, time, email, and URL.
  • Drag & Drop API ...
  • Read more : http://www.w3.org/TR/html5-diff/

HTML5 - Hello World! Example for beginners

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>HTML5 : Hello World Example</title>
    </head>
    <body>
        <h1>Hello World</h1>
        <p>
            Hey there!
        </p>
    </body>
</html>
HTML5 Hello World Example Code Browser Output
HTML5 Hello World Example Code Browser Output

As a student, the best thing about Html5 is its doctype (no need for any namespace). In <html> tag you can set language example : lang="en"

Related Questions:

  1. What does HTML stands for?

    HTML acronym stands for Hyper Text Markup Language.
  2. What does HTML5 stands for?

  3. HTML5 acronym stands for Hyper Text Markup Language - version 5.
  4. What extension does HTML5 files have?

    You can save them as .html, .htm
  5. How to know if a webpage is HTML5?

    The file should have the doctype <!DOCTYPE html>
  6. Where can I write HTML5 code? Do I need a special tool?

    No, you can write HTML5 code in any text editor like Notepad on Windows or Text Edit on macOS.
  7. How to run HTML5 code?

    Simply run the file by doubling-clicking on it, it will open in your default browser - Chrome, Firefox or Safari.



Recent Posts:




Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.