What is New in HTML5?

The DOCTYPE declaration for HTML5 is very simple:

<!DOCTYPE html>

 

The character encoding (charset) declaration is also very simple:

<meta charset="UTF-8">

 

HTML5 Example:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Page Title</title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

 

The default character encoding in HTML5 is UTF-8.

New HTML5 Elements

The most interesting new HTML5 elements are:

New semantic elements like <header><footer><article>, and <section>.

New attributes of form elements like number, date, time, calendar, and range.

New graphic elements<svg> and <canvas>.

New multimedia elements<audio> and <video>.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *