NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
Home / News / Webmaster / Tips and Tricks

Tips and Tricks


YouTube Videos Presentation Alternatives

Inclusion of YouTube Videos in HTML Pages

By Catalin Bocanu, Web News Editor

21st of May 2008, 17:25 GMT

Adjust text size:


YouTube Video Example
Enlarge picture
Video clips are maybe the most searched Internet resource because they contain information having a high degree
of accessibility as compared to classic static images or text. If you want to include and display video content in web pages, various alternatives are available.

There is the possibility to embed in HTML web pages your own video files or others having sharing rights over the Internet. Many of video sharing or social networking websites provide the code that must be included into web pages in order to automatically display a certain video file without the need to be on your web server.

In case of YouTube videos, the code provided for inclusion contains the embed directive, but this HTML tag will include a non standard object in document according to XHTML validation rules. The inclusion code provided for every YouTube video can be used in its actual form, but it will not be valid from the XHTML standards point of view.

The next YouTube video inclusion code example shows the correct (valid) XHTML variant:

CODE
data="http://www.youtube.com/v/identifier">



In the previous code example, the embed tag does not appear anymore. The text "identifier" must be replaced with a real YouTube video identifier (the combination formed by letters and numbers situated at the end of a link pointing to a certain video, like Iv7WYMtQWgg) or just simply change the entire link http://www.youtube.com/v/identifier with your own.

There are available many code generators which output valid XHTML code for embedding YouTube videos in web pages if you do not want to write the code manually. A valid YouTube video link must be provided and the resulted code can be directly copied and pasted into the desired document.

Generally, in order to have valid XHTML code, it is recommended to include multimedia files in your web pages by using the object tag without embed, as shown in this article.

TAGS:

YouTube | Valid XHTML Code | Video Content | Video Sharing | Social Networking


Rating:
Poor (1.5/5) 4 vote(s) so far    

Read by 775 user(s) | Add comment | Link to this article
Subscribe to news | Print article | Send to friend

© Copyright 2001-2008 Softpedia
Contact:

 

 

SEARCH THE NEWS ARCHIVE :




Today's News
| Yesterday's News | News Archive


MORE RELATED ARTICLES:


A Free Video Converter for Any OS

Get A YouTube-Like Website For Free

Get More Free Music Legally

Press Releases Tuning With Web 2.0 Style

Free Utilities from Windows Live

Windows Media Player in HTML

Get Over 4GB of Free Online Storage with Mozilla Firefox

Tips for Video Files Optimization

Do You Want a Free Dating Website?

Tips for Making Your Website Load Faster

User opinions:

No user comments yet.
Be the first to express your opinion using the form below!

Share your opinion:

Your Name:
Your Email Address:
(will not be used for commercial purposes)
Solve this to prove you're not a bot: =
Your review/opinion:

 






SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM