Posts

Showing posts with the label HTML5 interview

List out the new features of HTML5?

 List out the new features of HTML5? Some of the most interesting new features in HTML5: New Semantic Elements − These are like <header>, <footer>, and <section>. Forms 2.0 − Improvements to HTML web forms where new attributes have been introduced for <input> tag. Persistent Local Storage − To achieve without resorting to third-party plugins. WebSocket − A a next-generation bidirectional communication technology for web applications. Server-Sent Events − HTML5 introduces events which flow from a web server to the web browsers and they are called Server-Sent Events (SSE). Canvas − This supports a two-dimensional drawing surface that you can program with JavaScript. Audio & Video − You can embed audio or video on your web pages without resorting to third-party plugins. Geolocation − Now visitors can choose to share their physical location with your web application. Microdata − This lets you create your own vocabularies beyond HTML...

What is < !DOCTYPE>? Is it necessary to use in HTML5?

What is < !DOCTYPE>? Is it necessary to use in HTML5? The < !DOCTYPE> is an instruction to the web browser about what version of HTML the page is written in. AND The < !DOCTYPE> tag does not have an end tag and It is not case sensitive. The < !DOCTYPE> declaration must be the very first thing in HTML5 document, before the tag. As In HTML 4.01, all < ! DOCTYPE > declarations require a reference to a Document Type Definition (DTD), because HTML 4.01 was based on Standard Generalized Markup Language (SGML). Where as HTML5 is not based on SGML, and therefore does not require a reference to a Document Type Definition (DTD). The <!DOCTYPE html> declaration defines this document to be HTML5

Example of HTML 5

Example of HTML 5 < !DOCTYPE   html > < html > < head > < title > Page Title < /title > < /head > < body > < h1 > This is a Heading < /h1 > < p > This is a paragraph. < /p > < /body > < / html >