Adding Videos to a Web Page
Placing videos into our web pages is not as complicated as it might seem:

  • Videos can make our pages more interesting and engaging.
  • Most video-hosting services, such as YouTube, will provide us with HTML code ready to copy and paste into our web page.
  • Video-embedding code provided to us might not be XHTML valid, requiring us to make some small changes before the page will pass validation.

video-noteYouTube Video
To place a YouTube video into a web page, we first go to the page for the video itself:
video-sharevideo-embedvideo-embed-codeHere we’ve pasted the YouTube code directly between two header elements on our page:embed-video