Professional Documents
Culture Documents
What is Html?
Html stands for Hyper Text Markup Language. Html mainly use for design a client side web
pages, this is a static page it means you can only view Html page not give request and not get response
from server. Using Html pages browser get user information through form (This is an Html element).
Html provides so many elements (like <p>, <img>, <h1>) to design a web page.
Hypertext: is text which contains links to other texts. The hypertext pages are interconnected by
hyperlinks, when mouse click on these link which brings you to a new webpage
Markup language: Any tag based language known as markup language, for example gml, sgml,
html, xml etc.
Web Page: A web page is a document which is commonly written in HTML and translated by a
web browser. A web page can be identified by entering an URL. A Web page can be of the static or
dynamic type. With the help of HTML only, we can create static web pages.
Tim Berners-Lee is known as father of Html. The first publicly
available description of HTML was a document called "HTML Tags", first
described, on the Internet by Berners-Lee in late 1991.
Features of HTML
It is a very easy and simple language. It can be easily understood and
modified.
It is very easy to make an effective presentation with HTML because it has a lot of formatting
tags.
It is a markup language, so it provides a flexible way to design web pages along with the text.
It facilitates programmers to add a link on the web pages (by html anchor tag), so it enhances the
interest of browsing of the user.
It is platform-independent because it can be displayed on any platform like Windows, Linux, and
Macintosh, etc.
It facilitates the programmer to add Graphics, Videos, and Sound to the web pages which makes
it more attractive and interactive.
HTML is a case-insensitive language, which means we can use tags either in lower-case or upper-
case.
HTML is a markup language which is used for creating attractive web pages with the help of styling,
and which looks in a nice format on a web browser. An HTML document is made of many HTML tags and
each HTML tag contains different content. E.g.
To open the file in a browser. Navigate to your file then double click on it. It will open in your
default Web browser. If it does not, open your browser and drag the file to it.
Explanation of code
1. The first line <!DOCTYPE html> is the document type declaration. It instructs the web browser
that this document is an HTML5 document. It is case-insensitive.
2. The <head> element is a container for the tags that provides information about the document, for
example, <title> tag defines the title of the document.
2 Mr.Kadam R.R. (Skill Development Cell)
Web-Development Certificate Course MGM’s College of CS&IT, Nanded.
3. The <body> element contains the document's actual content (paragraphs, links, images, tables,
and so on) that is rendered in the web browser and displayed to the user.
Most HTML elements are written with a start tag (or opening tag) and an end tag (or closing tag),
with content in between. Elements can also contain attributes that defines its additional properties. For
example, a paragraph, which is represented by the p element, would be written as:
HTML document consist of its basic building blocks which are:
Tags: An HTML tag surrounds the content and apply meaning to it. It is written between < and >
brackets.
Attribute: An attribute in HTML provides extra information about the element, and it is applied
within the start tag. An HTML attribute contains two fields: name & value.
Syntax
Output
Output
Attribute Description
controls It defines the audio controls which is displayed with play/pause buttons.
autoplay It specifies that the audio will start playing as soon as it is ready.
Loop It specifies that the audio file will start over again, every time when it is completed.
preload It specifies the author view to upload audio file when the page loads.
Output:
Attribute Description
controls It defines the video controls which is displayed with play/pause buttons.
height It is used to set the height of the video player.
width It is used to set the width of the video player.
poster It specifies the image which is displayed on the screen when the video is not played.
autoplay It specifies that the video will start playing as soon as it is ready.
loop It specifies that the video file will start over again, every time when it is completed.
src It specifies the source URL of the video file.
Example of video tag in HTML where are using height, width, autoplay, controls and loop attributes.
Output
- Output
Click Here
When you click the share button, a share panel will open displaying some more buttons. Now click
on the Embed button, it will generate the HTML code to directly embed the video into the web pages. Just
copy and paste that code into your HTML document where you want to display the video and you're all
set. By default video embedded inside an iframe.
Output