Cyberattacks are still successful. Breaches continue to occur. And each time we ask the same questions: Why and how did this happen?
Which IT certifications will do your career the most good now and in the future? Check out 15 that are flying under the radar or emerging as valuable
1. HTML document definition
All webpages are defined with a HTML document. The first step defines this document.
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Video | Image | Content</title>
<link rel=”stylesheet” type=”text/css” href=”styles.css” />
<!– STEP 2 HERE –>
2. Foreground Content
For SEO purposes , the main page content is placed first within the page body. The text and image content for the page are defined as any other. The ‘main’ tag is used to contain the content so that CSS can easily control how the content is positioned in relation to the background video.
<p>Welcome to Quantum Designers, we are a Web Design, Development and Hosting provider</p>
<p align=”center”><img src=”image.jpg” /></p>
3. Background video
The page background is made from a video element that is set to automatically play in a repeating loop without sound. This is set through the use of the ‘autoplay’, ‘mute’ and ‘loop’ attributes of the video container. The browser will choose to play the first video source listed that it supports.
<video autoplay muted loop>
<source src=”http://www.quantumdesigners.com/sample-videos/video.mov” type=”video/mov” />
<source src=”http://www.quantumdesigners.com/sample-videos/video.mp4″ type=”video/mp4″ />
<source src=”http://www.quantumdesigners.com/sample-videos/video.ogg” type=”video/ogg” />
<source src=”http://www.quantumdesigners.com/sample-videos/video.3gp” type=”video/3gp” />
4. Document and body style
Create a new file called styles.css for the presentation rules. This step sets the HTML document container and the content body to cover the full visible area of the browser window, along with setting the default colours and font. A transparent background is needed for step 5.
font-family: Helvetica, sans-serif;
5. Video positioning and size
The video should always display under the page content. This is achieved via fixed positioning with a z-index of -1 to place the video under the document body. The video covers the full document window using ‘transform’,’width’ and ‘height’ to size the video from the centre of the page window.
transform: translateX(-50%) translateY(-50%);
6. Content container
The content container is displayed in a way that avoids the video making its content unreadable. A semi-transparent background color is applied to the ‘main’ container. This container is also set to cover the full height of the window and to centrally position itself using ‘auto’ calculated horizontal margins.
margin: 0 auto 0 auto;
A maximum border radius is applied to cut out rounded edges from the image.