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.
Advertisements
Try Out Code2care Dev Tools:

Advertisements



Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Advertisements


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, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR - https://donate.unhcr.org/in/en-in/ukraine-emergency