html tutorial - My First Program in HTML - html5 - html code - html form

my first program in html

Learn html - html tutorial - my first program in html - html examples - html programs

Here is an example of HTML5 documents we can create. HTML page starts with HTML5 doctype followed by the page title and content of the webpage. For content we are using a heading element and paragraph element etc. Now let’s see our first program of HTML.

learn html -  html tutorial -  html development tutorial -  html examples -  html  -  html script -  html program -  html download -  html samples  -  html scripts

Let’s see the Example

<!DOCTYPE html>
  <html lang="en">
       <title>My First Program</title>
       <h1>Hello, world!</h1>
       <p>Hello, world!</p>
       <p>Hello, world!</p>

Code Explanation

my first html program

  1. <!DOCTYPE html> defines the html5 version.
  2. <html> element is a root element of the HTML page.
  3. <head> element defines the Meta information of the webpage.
  4. <title> element is termed as the page title of the HTML page.
  5. <body> element defines the contents heading, paragraph, links, etc...
  6. <h1> element is termed as the heading of HTML page is given as “Welcome to Wikitechy”.
  7. <p> element has the name of the paragraph is given as “this is my first paragraph”.

Related Searches to My first Program in html