Thursday, January 11, 2018

How To Use Video Tag In Html

Hello Friends My Name Is Viraj,Today I Will  Use Video Tag On Your Web Page.The HTML 5 <video> tag is used to specify video on an HTML document. The <video> element, which adds native video playback support to the HTML specification in HTML5, can be used to embed a video in an HTML document. Add the video URL to the element by using either the src attribute of the <video> element or by nesting one or more <source> elements between the opening and closing <video> tags.For example, you could embed a music video on your web page for your visitors to listen to and watch.The HTML 5 <video> tag accepts attributes that specify how the video should be played. Attributes include preload, autoplay, loop and more.The <video> element is new in HTML 5 and allows you to, get this, play a movie in your website! The data of this element is supposed to be video but it might also have audio or images associated with it. See below for a full list of supported attributes.Any content between the opening and closing <video> tags is fallback content.In the W3C's overview, released on May 23rd, new features are introduced for web application developers, and new elements are introduced based on research conducted on current web development practices. Given the nature of the web and mobile devices, extra attention was given to define conformance criteria for user agents, with the goal of improving interoperability.

If you are already familiar with HTML, you will be ready to jump into HTML 5 without much of a learning curve. In the W3C's document, each of the HTML 5 elements are discussed, including the often discussed <video> element, which we will discuss here.The HTML 5 specification is from being an official specification. In fact, according to developer Ian Hickson, who is actively working on the spec, says it won't be ready until 2022. That said, the W3C has just released an overview of the vocabulary and associated APIs for HTML and XHTML, and we'll bring you the details of the <video> element in this article for web developers.This tutorial will deal with playing video on web pages using standard HTML. Tutorial will cover different kinds of method for displaying video on page. This tutorial will give you a basic understanding of the video tag and also show various examples of different integrations with other HTML5 features.

One of the most researched topic in HTML5 features is the video tag. Video tag is much more than simply an option to flash in the media. Compared to other ubiquitous HTML tags video tags recently joined the league but its capabilities and support across browsers have increased at an amazing speed.

Let us see how developers add videos: video files, including YouTube videos, are embedded into an HTML document using the tag. The src attribute defines what video file to embed into the page. The <embed> tag does not require a closing tagListed example will describe a simple example of embedding a video on page. For this we have taken a particular height and width to show the video. attribute control adds video controls, like play, pause, and volume adjusting seek bar.Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. This content is displayed only by browsers that don't support the <video> tag.HTML tags can contain one or more attributes. Attributes are added to a tag to provide the browser with more information about how the tag should appear or behave. Attributes consist of a name and a value separated by an equals (=) sign, with the value surrounded by double quotes. Here's an example, style="color:black;".There are 3 kinds of attributes that you can add to your HTML tags: Element-specific, global, and event handler content attributes.The <video> tag was introduced in HTML 5 (officially referred to as HTML5 - without the space). HTML5 video is now widely implemented in the major browsers and it has support from major websites such as YouTube.Here In This Html Tutorial We Will Show The Functionality Related To Video Tag.In HTML5, there are 3 supported video formats: MP4, WebM, and Ogg.The Tag Is Shown As, <video> Tag.HTML 5 supports <video> tag also. The HTML video tag is used for streaming video files such as a movie clip, song clip on the web page.When writing in HTML, the <video> tag is an inline element used to embed video content into a web page. It is useful when you want to add any video, such as a music video or news report, to your web pages. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.When utilizing the <video> tag, you need to ensure that your sound file is in the proper format. There are three accepted formats which include MP4, Ogg, and WebM.

Here Is An Example Related To <video> Tag.

Step 1 :


<!DOCTYPE html>
<html>
<body>

<video width="320" height="240" autoplay>
  <source src="video.mp4" type="video/mp4">
  <source src="video.ogg" type="video/ogg">

</video>

</body>
</html>

Output :




How To Use Paragraph Tag In Html

Here in this HTML Tutorial We Will Try To Show Paragraph Tag.HTML paragraph tags are used to define the HTML paragraph element. Theparagraph element begins with the HTML <p> tag and ends with the HTML </p>tag. The HTML paragraph element should not contain tables and other block elements.HTML paragraph tags are used to define the HTML paragraph element. The paragraph element begins with the HTML <p> tag and ends with the HTML </p> tag. The HTML paragraph element should not contain tables and other block elements.The HTML paragraph element can only contain inline elements which are listed at the HTML Inline Elements page.The HTML <p> element represents a paragraph of text. Paragraphs are usually represented in visual media as blocks of text that are separated from adjacent blocks by vertical blank space and/or first-line indentation. Paragraphs are block-level elements.The HTML <p> tag defines a paragraph of text.HTML tags can contain one or more attributes. Attributes are added to a tag to provide the browser with more information about how the tag should appear or behave. Attributes consist of a name and a value separated by an equals (=) sign, with the value surrounded by double quotes. Here's an example, style="color:black;".There are 3 kinds of attributes that you can add to your HTML tags: Element-specific, global, and event handler content attributes.This HTML tutorial explains how to use the HTML element called the <p> tag with syntax and examples.The HTML <p> tag defines a paragraph in the HTML document. This tag is also commonly referred to as the <p> element.The paragraph tags are used to define a block of text as a paragraph. This HTML element is one of the basic HTML tags you should learn to use properly.When a block of text is surrounded by the paragraph tags, the browser automatically adds white space before and after the paragraph.The <p> element is used to identify blocks of paragraph text. The closing <p> tag is optional and is implied by the opening tag of the next HTML element encountered in an HTML document after an opening <p> tag.When writing in HTML, the <p> tag is a blockelement used to designate a paragraph. It is useful because Internet browsers add a bit of marginbefore after each element. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.

Step 1 :

<!DOCTYPE html>
<html>
<body>

<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>

</body>
</html>

Output :

       

How To Use Hyperlink Tag In Html

Here In This Html Tutorial We Will Like To Show How to Use A Tag In Web Page Using Html Code.The <a> tag defines a hyperlink, which is used to link from one page to another. The most important attribute of the <a> element is the href attribute, which indicates the link's destination. By default, links will appear as follows in all browsers: An unvisited link is underlined and blue.A webpage can contain various links that take you directly to other pages and even specific parts of a given page. These links are known as hyperlinks.

Hyperlinks allow visitors to navigate between Web sites by clicking on words, phrases, and images. Thus you can create hyperlinks using text or images available on a webpage.A link is specified using HTML tag <a>. This tag is called anchor tag and anything between the opening <a> tag and the closing </a> tag becomes part of the link and a user can click that part to reach to the linked document. Following is the simple syntax to use <a> tag.The <link> element is used to define a relationship between an HTML document and an external resource. This element is most commonly used to define the relationship between a document and one or more external CSS stylesheets.When most people talk about links on the web, they mean anchor links — a link within the content of a page, which is anchored to a piece of text, or an image. But you can also define a link from one document to another, using the <link> tag. This allows you to import the contents of a script or resource, such as a stylesheet, into your HTML document. You can then control the appearance or behavior of all pages by altering the content in your linked resource page.Here In This Example We Will Show The Basic Application Related To Hyperlink Tag.The anchor element is used to create hyperlinks between a source anchor and a destination anchor. The source is the text, image, or button that links to another resource and the destination is the resource that the source anchor links to.

Hyperlinks are one of the fundamental technologies that make the web the information superhighway, and understanding how to use anchor elements is one of the first things you need to master when learning HTML.While the examples above will produce anchor elements they aren’t of much use since we haven’t included any additional instructions. Right now these anchor elements link to nothing. To link a source anchor to a destination anchor, we need to apply some additional attributes to the anchor element.In this short tutorial we’ll cover the attributes you can use to add a destination anchor to your hyperlinks, tell the browser what to do with the link, and add semantic meaning to anchor elements for browsers and web crawlers to use.The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.

Here Is An  Example

Step 1:

<!DOCTYPE html>
<html>
<body>

<p><a href="https://htmltutorial01.blogspot.com">Visit our HTML tutorial</a></p>

</body>
</html>

Output :


How To Use Table Tag In Html

Here In This Html Tutorial We Will Try To Show How To Use Table Tag In Web Page.Tables consist of the <table> element as well as other table-related elements. These other elements are nested inside the <table> tags to determine how the table is constructed.The HTML <table> tag is used for defining a table in an HTML document. The <table> tag contains other tags that define the structure of the table.An HTML table is defined with the <table> tag.The <table> tag is written as <table></table> with the various table elements nested between the start and end tags.Each <tr> element represents a row in the table. A row can have one or more <td> or <th> elements, which determine the columns in the table. Specifically, <td> represents table data and <th> represents a table header.The HTML <table> tag is used for defining a table. The table tag contains other tags that define the structure of the table.The HTML table model allows authors to arrange data -- text, preformatted text, images, links, forms, form fields, other tables, etc. -- into rows and columns of cells.Each table may have an associated caption (see the CAPTION element) that provides a short description of the table's purpose. A longer description may also be provided (via the summary attribute) for the benefit of people using speech or Braille-based user agents.

Table rows may be grouped into a head, foot, and body sections, (via the THEAD, TFOOT and TBODY elements, respectively). Row groups convey additional structural information and may be rendered by user agents in ways that emphasize this structure. User agents may exploit the head/body/foot division to support scrolling of body sections independently of the head and foot sections. When long tables are printed, the head and foot information may be repeated on each page that contains table data.Authors may also group columns to provide additional structural information that may be exploited by user agents. Furthermore, authors may declare column properties at the start of a table definition (via the COLGROUP and COL elements) in a way that enables user agents to render the table incrementally rather than having to wait for all the table data to arrive before rendering.Table cells may either contain "header" information (see the TH element) or "data" (see the TD element). Cells may span multiple rows and columns. The HTML 4 table model allows authors to label each cell so that non-visual user agents may more easily communicate heading information about the cell to the user. Not only do these mechanisms greatly assist users with visual disabilities, they make it possible for multi-modal wireless browsers with limited display capabilities (e.g., Web-enabled pagers and phones) to handle tables.Tables should not be used purely as a means to layout document content as this may present problems when rendering to non-visual media. Additionally, when used with graphics, these tables may force users to scroll horizontally to view a table designed on a system with a larger display. To minimize these problems, authors should use style sheets to control layout rather than tables.Each table row is defined with the <tr> tag. A table header is defined with the <th> tag. By default, table headings are bold and centered. A table data/cell is defined with the <td> tag.

Step 1:

<!DOCTYPE html>
<html>
<head>
<title>Table Design</title>
</head>
<table cellspacing="1" cellpadding="4" border="1" bordercolor="red">
<tr>
<th rowspan=2>Sr.No.
<th rowspan=2>Student Name
<th colspan=4>subject Name
</tr>
<tr>
<th>Hindi</td>
<th>English</td>
<th>Math</td>
<th>science</td>
</tr>
<tr>
<td>1</td>
<td>viraj</td>
<td>45</td><td>55</td><td>85</td><td>35</td>
</tr>
<tr>
<td>2</td>
<td>anil</td>
<td>25</td><td>65</td><td>45</td><td>95</td>
</tr>
</body>
</html>


Output :



Wednesday, January 10, 2018

How To Create Pagination In Html

Here In This Html Tutorial We Will  Create Pagination Using Html/Css/Javascript Code.Paging helps present data in a clean and elegant way and it can also improve the page load time. It helps by dividing extensive data into separate pages so that it can easily fit in the UI. In this post, we’ll learn how to add pagination to your HTML table element with the help of jQuery.The following CSS classes are used to style page numbers. The focus CSS class will style the page number on focus. The pageNumber class will style the position of the page numbers.To implement this function, you’ll need to get the count of total records and then divide the total count value with the per page records to get the total number of pages. Finally, add the page numbers to a div and attach a click event to the page numbers to display the next set of records.Most paginated listings on the web are managed either with server side logic, javascript, or a combination of both. With the first option, the user’s browser wait on network traffic back to the server and back down again. Even if the data is as succinct as possible, a bad connection or crowded wi-fi can make your site look slow. An example of this sort of method can be seen on google search results. Each page requires a new querystring and page load. With the second option, the html for each page can be loaded into the dom on the first page load and then a script will manage displaying each separate page or section of data as the user interacts with the page’s navigation. The downside of this approach is that if script is disabled, as is so often the case on computers with high security settings, the only ways to recover are to display either a single page at a time using server side logic, or to display the entire listing without pagination at all, which can make for an enormously long page. The last option uses a combination of both, and can result in a smoother user experience, but also then suffers from the drawbacks of both. This last option can be seen in effect by scrolling to the bottom of a facebook page; the first “page” of content is loaded up first, and only by scrolling down is additional content then called down from the server and added to the page via javascript.Now that we’ve got them separated into page containers there’s one thing that’s important to make note of. You may have noticed that page1 is actually listed last. It’s also important to note that the order of all pages that aren’t the first page isn’t relevant to this process, only that the page you want displayed by default, or first, is the last child of the .pages container. This is so that we can take advantage of a special kind of css selector in order to get around css’s inability to select nodes up the dom. If you intend to use my advanced method below however, it is necessary to display the pages in order with the only exception still being that the first page be listed last.jQuery pagination. All we know, that when we facing with necessarity to display large amount of data – we starting thinking about adding pagination. So we split all our content to several pages. And in this case – each page contain some part of our information. As usual this is server-side pagination, where we extracting necessary amount data from database for each page. But commonly, in case of small (or middle) data sets – we don`t need such pagination. And we can just use user-side pagination using javascript to manage with our pages. Today I will show you how to create such pagination.Here In This Blog We Will  Create Pagination Using Html/Css/Javascript Code.


Here Is An Example Related To Topic Bellow....................

Step 1 :

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
  <h2>Pagination</h2>
  <p>The .pagination class provides pagination links:</p>                  
  <ul class="pagination">
    <li><a href="#">1</a></li>
    <li><a href="#">2</a></li>
    <li><a href="#">3</a></li>
    <li><a href="#">4</a></li>
    <li><a href="#">5</a></li>
  </ul>
</div>

</body>

</html>

Output :


How To Create the Animation Using Html

Here In This Html Tutorial We Will Create the Animation Using Html/Css/Javascript Code.

HTML stands for Hyper Text Markup Language. It is the standard markup language used for creating web pages and web applications. It forms a triology of  technologies for the World Wide Web with Cascading Style Sheets (CSS) and JavaScriptHTML elements are the building blocks of HTML pages. HTML elements are represented by using tags, written using angle brackets. For e.g. <html> </html>, <head></head> and so on. These tags are used to interpret the content of the page.

Here In This Blog We Will Create the Animation Using Html/Css/Javascript Code.

Here Is An Example Related To Topic Bellow....................

So Let Begin With Our Coding............

Step 1 :

<!DOCTYPE html>
<html>
<style>
#container {
  width: 400px;
  height: 400px;
  position: relative;
  background: yellow;
}
#animate {
  width: 50px;
  height: 50px;
  position: absolute;
  background-color: red;
}
</style>
<body>

<p>
<button onclick="myMove()">Click Me</button>
</p> 

<div id ="container">
<div id ="animate"></div>
</div>

<script>
function myMove() {
  var elem = document.getElementById("animate");   
  var pos = 0;
  var id = setInterval(frame, 5);
  function frame() {
    if (pos == 350) {
      clearInterval(id);
    } else {
      pos++; 
      elem.style.top = pos + 'px'; 
      elem.style.left = pos + 'px'; 
    }
  }
}
</script>

</body>

</html>

Output :


How To Create Basic Website In Html

Hello Friends My Name Is Viraj,Today I Will Create Basic Website On Your Web Page.

HTML stands for Hyper Text Markup Language. It is the standard markup language used for creating web pages and web applications. It forms a triology of  technologies for the World Wide Web with Cascading Style Sheets (CSS) and JavaScriptHTML elements are the building blocks of HTML pages. HTML elements are represented by using tags, written using angle brackets. For e.g. <html> </html>, <head></head> and so on. These tags are used to interpret the content of the page.

Here In This Html Tutorial We Will Create Basic Website In Html/CssCode.

Here In This Blog We Will Create Basic Website In Html/Css Code.

Here Is An Example Related To Topic Bellow....................

Step 1 :

<!Doctype html>
<html>
<head>
<title>My Website</title>
<style>
body
{
background-color:#CD5C5C;
}
#sh1
{
     width: 1350px;
    height: 250px;
    animation-name: example;
    animation-duration: 4s; 
    animation-name: example;
    animation-duration: 4s;
animation-iteration-count:infinite;
}
@keyframes example {
    10%   {background-image:url("a1.gif");background-size:cover;}
    50%  {background-image:url("a2.jpg");background-size:cover;}
    100%  {background-image:url("a3.png");background-size:cover;}

button
{
 color:#FF6347;
 background-color:lightblue;
 border-radius:12px;
 padding:14px 40px;
}
</style>
</head>
<body>
<div id="sh1">
</div>
<br>
<center>
<button>Home</button>
<button>Login</button>
<button>Course Material</button>
<button>About Us</button>
<button>Feedback</button>
</center>
<div>
<form>
<p>Login</p>
<b>Username:</b><input type="text" name="Name" placeholder:"Enter Name"><br>
<b>Password:</b><input type="password" name="Name1"><br>
Remember Me:<input type="checkbox" name="Name2">
</div>
<div>

</div>
</body>

</html

Output :



How To Create Image Gallery In Html

Hello Friend My Name Is Viraj,Today I Will Create Image Gallery And Display On A Webpage.The emergence of CSS3 technology has enabled web d...