The document outlines common HTML tags and introduces key features of HTML5, including a simplified DOCTYPE declaration, semantic elements for better structure, and native support for audio and video. It also highlights enhancements like the <canvas> element for graphics, Geolocation API for location services, and localStorage for data persistence. Additional improvements include new form input types, responsive images, and the Web Workers API for concurrent processing.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
12 views2 pages
Tags
The document outlines common HTML tags and introduces key features of HTML5, including a simplified DOCTYPE declaration, semantic elements for better structure, and native support for audio and video. It also highlights enhancements like the <canvas> element for graphics, Geolocation API for location services, and localStorage for data persistence. Additional improvements include new form input types, responsive images, and the Web Workers API for concurrent processing.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
Common Tags:
<html>: Defines the root of an HTML document.
<head>: Contains meta-information about the document. <title>: Sets the title of the document. <body>: Defines the body of the document. <h1>, <h2>, <h3>, <h4>, <h5>, <h6>: Headings of different levels. <p>: Defines a paragraph. <a>: Defines a hyperlink. <img>: Embeds an image. <ul>: Defines an unordered list. <ol>: Defines an ordered list. <li>: Defines a list item within <ul> or <ol>. <div>: Defines a division or section in an HTML document. <span>: Defines a section in a document for styling purposes. <table>: Defines a table. <th>: Defines a table header cell. <tr>: Defines a table row. <td>: Defines a table cell. <form>: Defines an HTML form for user input. <input>: Defines an input control. <button>: Defines a clickable button.
HTML5 introduced several new features and enhancements over its
predecessors. Here are some of the basics of HTML5: DOCTYPE Declaration: HTML5 introduced a simplified, shorter doctype declaration:htmlCopy code<!DOCTYPE html> emantic Elements: HTML5 introduced several new semantic elements that provide better structure and meaning to web pages, such as <header>, <footer>, <nav>, <section>, <article>, <aside>, <main>, <figure>, and <figcaption>. These elements make it easier for search engines and screen readers to understand the content of a webpage. Audio and Video Support: HTML5 introduced native support for embedding audio and video content using the <audio> and <video> elements, respectively. This eliminates the need for third-party plugins like Flash for multimedia playback. Canvas: HTML5 introduced the <canvas> element, which provides a drawing surface for creating dynamic graphics and animations using JavaScript. It allows developers to draw shapes, lines, text, images, and more directly within the browser. Geolocation: HTML5 introduced the Geolocation API, which allows web applications to access a user's geographical location. This enables location-aware services and applications to provide customized experiences based on the user's location. LocalStorage and SessionStorage: HTML5 introduced the localStorage and sessionStorage APIs, which allow web applications to store data locally in the user's browser. This enables persistent storage of data across sessions without relying on server-side storage. Form Enhancements: HTML5 introduced several enhancements to web forms, including new input types (<input type="email">, <input type="url">, <input type="number">, etc.), validation attributes (required, pattern, min, max, etc.), and the <datalist> element for providing autocomplete suggestions. Responsive Images: HTML5 introduced the <picture> and <source> elements, along with the srcset and sizes attributes, which enable developers to provide multiple image sources and specify different image sizes for various device resolutions and screen sizes. Web Workers: HTML5 introduced the Web Workers API, which allows web applications to run scripts in background threads, separate from the main execution thread. This enables concurrent processing and improves performance for tasks like heavy computations or long- running operations. Web Storage: HTML5 introduced the Web Storage API, which provides a way for web applications to store key-value pairs locally in the user's browser. It offers a simpler alternative to cookies for storing small amounts of data persistently across sessions.