Monday, 5 January 2015

second lesson: conversion from html to html5

To convert a html document into html5 document.We need only one line
We add this one line at the top of our previous document. The line is. <!DOCTYPE html>
Our updated  helloworld document will be as:



<!DOCTYPE html> <html> <head> </head> <body> hello world html5 </body> </html>
This line <!DOCTYPE html> inform the browser that the document is valid html5 document

live demo on codepen

No comments:

Post a Comment