Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Attributes

0/1

HTML Paragraphs

0/1

HTML Formatting

0/1

HTML Comments

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML Symbols

0/1
Text lesson

The <object> Element

The <object> element is widely supported by browsers and is used to embed objects like Java applets, PDF readers, Flash players, or even HTML content within a webpage.

Example

<object width=”100%” height=”500px” data=”snippet.html”></object>

Or, if preferred, it can also be used for embedding images.

Example

<object data=”audi.jpeg”></object>

The <embed> Element

The <embed> element is supported by all major browsers and defines an embedded object within an HTML document. Although browsers have supported it for a long time, it was officially included in the HTML specification with HTML5.

Example

<embed src=”audi.jpeg”>
Note that the <embed> element does not require a closing tag and cannot contain alternative text.

The <embed> element can also be utilized to embed HTML content within HTML documents.

Example

<embed width=”100%” height=”500px” src=”snippet.html”>