Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Thursday, March 3, 2011

How will you insert an Video Clip into HTML?

This tag allows you to insert a video clip into your web page. The starting tag is <EMBED SRC="URL" WIDTH="XX" HEIGHT="XX" AUTOSTART="VALUE"> and the closing tag is </EMBED>. Nothing goes between the two tags.

URL is replaced with the internet address of the video file. The two XX's are replaced with the desired width and height of the movie and controls. VALUE is replaced with either

TRUE - Movie automatically starts
FALSE - Movie starts when play button is pushed

index.html - Notepad
....<BODY>

<EMBED SRC="video.avi" WIDTH="125" HEIGHT="150" AUTOSTART="FALSE">

</EMBED>

</BODY>....

How do I let people download a file from my page?

just use the same as links for example you want to download some .extention files you can use like this
<a href="path/filename.extention">download neme</a>

How do I create a link that opens a new window?

The target attribute specifies where to open the linked document.
The example below will open the linked document in a new browser window:

<a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a>

How can i display html tags in web pages

We can’t display html tags as it is to get displayed in the browser. Say for example you want to give html code to your visitor to place a link in their web site, pointing to your site. To display html tags in html format we have to use different ways. Browser will not display any thing within less than and greater than symbols. Browser will not display < character as it is. To display symbol < we have to write < , same way to display greater than character > we have to use >

<a href="http://www.w3schools.com/">Visit W3Schools</a>

you can use insted of < & (ampersand) lt (less then); and for > &(ampersand)gt(greater then);

How do I create a link?

A hyperlink (or link) is a word, group of words, or image that you can click on to jump to a new document or a new section within the current document.
When you move the cursor over a link in a Web page, the arrow will turn into a little hand.
Links are specified in HTML using the <a> tag.
The <a> tag can be used in two ways:
1. To create a link to another document, by using the href attribute
2. To create a bookmark inside a document, by using the name attribute

<a href="http://www.w3schools.com/">Visit W3Schools</a>

What is DOM?

Definition:
DOM (Document Object Model): An application programming interface (API) for HTML and XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated. In the DOM specification, the term "document" is used in the broad sense - increasingly, XML is being used as a way of representing many different kinds of information that may be stored in diverse systems, and much of this would traditionally be seen as data rather than as documents. Nevertheless, XML presents this data as documents, and the DOM may be used to manage this data.

(or)

Short for Document Object Model, the specification for how objects in a Web page (text, images, headers, links, etc.) are represented. The DOM defines what attributes are associated with each object, and how the objects and attributes can be manipulated. Dynamic HTML (DHTML) relies on the DOM to dynamically change the appearance of Web pages after they have been downloaded to a user's browser.
Unfortunately, the two leading browsers -- Netscape Navigator and Microsoft Internet Explorer -- use different DOMs. This is one reason why their respective implementations of DHTML are so different. Both companies have submitted their DOMs to the World Wide Web Consortium (W3C) for standardization, which now has the daunting task of specifying a standard DOM without alienating either of the browser giants. The W3C's DOM specification will support both HTML and XML.


(or)

The Document Object Model (DOM) is a cross-platform and language-independent convention for representing and interacting with objects in HTML, XHTMLand XML documents. Aspects of the DOM (such as its "Elements") may be addressed and manipulated within the syntax of the programming language in use. The public interface of a DOM is specified in its application programming interface (API).

what exactly is HTML?

HTML is short for:
Hyper Text Markup Language.
In a nutshell: HTML is a written language used to mark-up a page. Think of marking-up like placing markers on a field. These markers give instruction to people who understand what the markers mean. In the case of web design, replace ‘makers’ with tags, a web page for a field and people with web browsers – like Internet Explorer or Firefox. To summarize:
markers = html tags/text
field = web page
people who read markers = web browsers

What is an attribute?

• HTML elements can have attributes
• Attributes provide additional information about an element
• Attributes are always specified in the start tag
• Attributes come in name/value pairs like: name="value"

Attribute Example
HTML links are defined with the anchor tag. The link address is specified in the href attribute:
This is a link