More About On HTML: The Following Is The Syntax
More About On HTML: The Following Is The Syntax
Introduction to HTML
HTML language is developed by Tim Berner-Lee at CERN (Consiel European pour la Research
Nuclear) to enable permit the researchers to share their research papers with the help of the
Internet. Generally all the browsers support HTML, but basically it was used by Mosaic
Browser. The HTML 1.0 is the first version of HTML, whereas continuous growth of Web
extended HTML growth in several other ways. World Wide Web Consortium (W3C) is the
organization which did not specify the first version of HTML. This organization maintains the
language and keeps evolving it in proper direction. Latest version of HTML is HTML 5.01
which is in general use and is the sub version of HTML 5.0. The errors which are occurring in
HTML 5.0 have been fixed in this version.
The whole HTML document comes under the <html>tag which is used as a container. The entire
content of the HTML page comes under the opening and closing of the <html>tags. This
<html>tag indicates the browser this is the starting of the document and the closing </html>tag
indicates that it’s the ending of an HTML document.
For the heading of the HTML document, the tag which is used is <head>tag. The information
contains some certain headings regarding documents that come under this. There are only few
tags which are valid under the heading section. These are the following:
<link>tag : Defines reference for the resource.
<base>tag : Defines a base URL for all the links present on a page.
<meta>tag: Defines the Meta- Information such as keyword and descriptions for search engines
and refresh rates about the page.
<script>tag : The HTML page uses the script which is defined by this tag.
<style>tag : Defines the internal style sheet for the HTML page.
The contents of the HTML document describe under the <body>tag. The contents of a web page
whatever they are defined between the opening and closing of the <body>tag, it may be a text,
audio, video and images all conies under this tag.
HTML Lists
To itemize the information in a concise format, the list makes it easy. It is used to present the
elements in an attractive way and very clearly so that the user can read as well as understand it
easily.
Ordered List.
Unordered List.
Definition List.
Ordered List
The list of items in which each item of the list has a specific numerical order comes under the
ordered lists. The ordered list is also known as numbered lists. The order number can be
alphabetical or numeric and that can be either a lower case or upper case. By using <ol> tag
ordered list is created. With the <li> tag, the items of list are created.
Unordered List
The list which appears as a list of items and bullets and the items are presented separately comes
under the unordered lists. To create the unordered lists of items the <ul> tag is used and <li> tag
is used to create the elements.
The following is the syntax which is used to create the unordered list:
<ul>
<li> list item 1 </li>
<li> list item 2 </li>
</ul>
Definition List
The lists and explanation of the terms comes under the definition lists.
Images in HTML
HTML’s multimedia features allow you to include images, audio clips, video clips. And other
multimedia elements in the web pages.
Insert Image
You can insert any image in your web page by using <img> tag.
Syntax
<img src =“Image URL” alt = “some_text”>
Example
<Html>
<Head>
<Title> Inserting image in webpage </title>
</head>
<Body>
<img src = “/html/images/computer.png” alt = “Computer Image”>
</body>
</html>
Example:
<Html>
<Head>
<Title> Set image width/Height ></title>
</head>
<Body>
< img src = “/html/images/computers.jpg”
alt = “Computer Image” height = “150”
Width = “150” /7
</body>
</html>
Example:
<Html>
<Head>
<Title> Set Image Alignment </title>
<img src = “/html/images/computer.jpg” alt =“Computers
Images” border = “3” align = “right” >
</body>
</html>
Introduction of Links
The page of a website is connected through the links. By clicking on a link, a user navigates to a
new page of a website. You can break a long document into multiple pages which allows you to
navigate from page to page easily, and this can only be done through the links. Basically, links
are having two basic components and these are Targets and Links.
Hypertext Link.
Bookmark Link.
Email Link.
Hypertext Link
With the help of hypertext, the hypertext link is created. It may be underlined or coloured. The
links between the web pages that can be either located in the same site or other site is created by
hypertext link.
Bookmark Links
To connect one section to another section within the same document or to a specific section
within another document, a bookmark link is used. Basically, it consists of two documents. A
target which acts as an identifier that designates the target of the link and a link where you click.
Email Link
A type of link that is used to create links, which open up an email application, is an email link. A
new message window is opened, when you click on the link. Using <a> tag email link is created.
<p>
<a href="http://koollearning.000webhostapp.com/">Click here
</a>
</p>
</body>
</html>
<audio controls>
<source src="audio.mp3" type="audio/ogg">
Your browser does not support the video tag.
</audio>
</body>
</html>
Example of video tag :
<html>
<body>
</body>
</html>
Example of Marquee tag :
<marquee>This text will scroll from right to left</marquee>