HTML 5

- <!DOCTYPE html>
- <meta charset="UTF-8">
The DOCTYPE declaration
HTML 5 Example
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Sibeesh Passion wish you a happy new year</title>
- </head>
- <body>
- Welcome to Sibeesh Passion</body>
- </html>
Before Introducing HTML 5
After Introducing HTML 5



As you can see in the preceding image, HTML 5 has introduced:
- Header
- Nav
- Section
- Aside
- Article
- footer
Adding our own elements!
Yes, it is true, we can create our own element by introducing some styles, now we will see how to do this.
To do this we need a markup as follows.
- <!DOCTYPE html>
- <html>
- <head>
- <title>Your own element </title>
- <script>document.createElement("yourelement")</script>
- <style>
- yourelement {
- display: block;
- }
- </style>
- </head>
- <body>
- <div>
- Normal element
- </div>
- < yourelement >My element</ yourelement >
- </body>
- </html>

Sibeesh VenuPosted Nov 18, 2015, 3:41 AM
Harshad Pansuriya Thank you
Harshad PansuriyaPosted Nov 18, 2015, 2:26 AM
Nice one
Sibeesh VenuPosted Jan 4, 2015, 5:27 AM
Sanjay singh Thank you
Sanjay SinghPosted Jan 4, 2015, 5:21 AM
good one..