HTML For Beginners
HTML For Beginners
● The browser ignores extra spaces and new lines between words and markup tags when
reading the document.
● Thus, the following three text fragments will be formatted identically
HTML5?
Introduction: HTML stands for Hyper Text Markup Language. It is used to design web pages
using a markup language. HTML is an abbreviation of Hypertext and Markup language.
Hypertext defines the link between the web pages. The markup language is used to define the
text document within the tag which defines the structure of web pages. HTML 5 is the fifth and
current version of HTML. It has improved the markup available for documents and has
introduced application programming interfaces (API) and Document Object Model (DOM).
Features:
● It has introduced new multimedia features which supports both audio and video controls
by using <audio> and <video> tags.
● There are new graphics elements including vector graphics and tags.
● Enrich semantic content by including <header> <footer>, <article>, <section> and
<figure> are added.
Page No - 1
● Drag and Drop- The user can grab an object and drag it further dropping it to a new
location.
● Geo-location services- It helps to locate the geographical location of a client.
● Web storage facility which provides web application methods to store data on the web
browser.
● Uses SQL database to store data offline.
● Allows drawing various shapes like triangle, rectangle, circle, etc.
● Capable of handling incorrect syntax.
● Easy DOCTYPE declaration i.e., <!doctype html>
● Easy character encoding i.e., <meta charset=”UTF-8″>
Example Explained
● The <!DOCTYPE html> declaration defines that this document is an HTML5 document
● The <html> element is the root element of an HTML page
● The <head> element contains meta information about the HTML page
● The <title> element specifies a title for the HTML page (which is shown in the
browser's title bar or in the page's tab)
● The <body> element defines the document's body, and is a container for all the visible
contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
● The <h1> element defines a large heading
● The <p> element defines a paragraph
Page No - 2
Tages Used In HTML 5
Formatting
Tag Description
<bdi> Isolates a part of text that might be formatted in a different direction from
other text outside it
Page No - 3
<kbd> Defines keyboard input
<rp> Defines what to show in browsers that do not support ruby annotations
<template> Defines a container for content that should be hidden when the page
loads
<u> Defines some text that is unarticulated and styled differently from normal
text
Page No - 4
ADVERTISEMENT
Frames
Tag Description
Page No - 5
Images
Tag Description
<canvas> Used to draw graphics, on the fly, via scripting (usually JavaScript)
Audio / Video
Tag Description
<source> Defines multiple media resources for media elements (<video>, <audio>
and <picture>)
<track> Defines text tracks for media elements (<video> and <audio>)
Links
Tag Description
Lists
Page No - 6
Tag Description
Tables
Tag Description
<col> Specifies column properties for each column within a <colgroup> element
Page No - 7
<style> Defines style information for a document
<details> Defines additional details that the user can view or hide
Meta Info
Tag Description
<base> Specifies the base URL/target for all relative URLs in a document
Programming
Tag Description
Page No - 8
<script> Defines a client-side script
<noscript> Defines an alternate content for users that do not support client-side
scripts
Page No - 9