web-tech-unit1-part2
web-tech-unit1-part2
BSCDSC17
Output
Formatting Tags
Formatting tags are used to style and emphasize text.
Here are some common formatting tags:
Ordered List
• <ol>: Defines an ordered list.
• <li>: Defines a list item.
Lists in html
Definition List
• <dl>: Defines a definition list.
• <dt>: Defines a term.
• <dd>: Defines a description of
the term.
An unordered list is used to group a set of related items in no particular order. It is displayed with bullet points.
An ordered list is used to group a set of related items in a specific order. It is displayed with numbers or letters. A definition list is
Images
The <img> tag is used to embed images in an HTML page.
Attributes:
• src: Specifies the path to the image.
• alt: Provides alternative text for the image, which is displayed if the image cannot be
loaded.
• width: Sets the width of the image.
• height: Sets the height of the image.
output
Iframe
Attributes:
• src: Specifies the URL of the page to embed. •
width: Sets the width of the iframe. • height:
Sets the height of the iframe. • frameborder:
Specifies whether or not to display a border
around the iframe.
<h3>Iframe Example</h3>
<iframe src="l.html" width="600"
height="400" frameborder="0"></iframe>
Embedding Audio
To embed audio, use the <audio> tag:
Embedding Video
To embed video, use the <video> tag
Embedding Audio
The <audio> tag is used to embed sound content in documents. It supports various audio
formats like MP3, WAV, and OGG. Attributes:
• src: Specifies the path to the audio file.
• controls: Adds audio controls such as play, pause, and volume.
Embedding Video
The <video> tag is used to embed video content in documents. It supports various video formats
like MP4, WebM, and OGG.
Attributes:
• src: Specifies the path to the video file.
• controls: Adds video controls such as play, pause, and volume. • width: Sets the width of the
video player.
• height: Sets the height of the video player.