What is HTML

HTML is a standard markup language (Markup language are designed for the preparing, definition and introduction of content.) for making web pages. Full form of HTML is Hyper Text Markup Language.


<!DOCTYPE html>
<title>Page Title</title>
<!– information –>

<!DOCTYPE> Explain

  • <!DOCTYPE> is an instruction to the web browser with a document type definition (DTD). <!DOCTYPE> must be before starting html tag.
  • <!DOCTYPE> supports browser like as Mozilla, Crome, Internet Explorer, Opera, Safari.


<!DOCTYPE root-element SYSTEM “URI”>

DTD Example

  • HTML 5
    <!DOCTYPE html>
  • HTML 4.01
    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
  • XHTML 1.0
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

    • <html> element is the root element of an HTML.

      <head> element contains meta information about the page.

      <title> element indicates a title for a web page.

      <body> element shows the web page information.