-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic08-iframe.html
More file actions
64 lines (56 loc) · 2.79 KB
/
basic08-iframe.html
File metadata and controls
64 lines (56 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>iframe element</title>
</head>
<body>
<div class="main-container">
<h2>Using iframe element</h2>
<p>iframe element is like a little window that has been cut into your page!!!
iframe can be used to place google map code, or a website, or can be used to place a youtube video code.
</p>
<!--
A <iframe> element embeds another web document (HTML page) within the current document:
It displays a web page within a web page
-->
<h2>Our Canadian Business College</h2>
<p>Below is our college website in this simple frame:</p>
<!--
like img element, iframe needs to have the src=""
Accessibility concerns
People navigating with assistive technology such as a screen reader
can use the title attribute on an <iframe> to label its content.
The title's value should concisely describe the embedded content:
W3C Validator: Error: Text not allowed in element iframe in this context.
Code Institute (LMS): this paragraph will appear if browser does not support iframes
<p>Sorry, Your browser does not support iframe element!</p>
W3C => Error: The frameborder attribute on the iframe element is obsolete. Use CSS instead.
-->
<iframe src="https://canadianbusinesscollege.com/" frameborder="1" width="800" height="400">
<!--
this p element will not be visible if the browser supports iframe,
It's only for some very old browsers that do not support iframe.
-->
<p>Sorry, Your browser does not support iframe element!</p>
</iframe>
<h2>Our Canadian Business College Video</h2>
<!--
The iframe code below were embedded from YouTube:
-->
<iframe width="700" height="450" src="https://www.youtube.com/embed/023DTcItxHw" frameborder="0"
allowfullscreen>
<p>Sorry, Your browser does not support iframe element!</p>
</iframe>
<h2>Our Canadian Business College Address/Map</h2>
<!--
The iframe code below were embedded from Google Map
-->
<iframe
src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d11543.738392930554!2d-79.387232!3d43.67033!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x16b9020e485f9f8f!2sCanadian%20Business%20College%2C%20Toronto%20Campus!5e0!3m2!1sen!2sca!4v1612202571617!5m2!1sen!2sca"
width="600" height="450" frameborder="0" allowfullscreen="" aria-hidden="false" tabindex="0">
</iframe>
</div>
</body>
</html>