2. What is SVG?
2
In HTML 5 , SVG is used for the 2-D vector and raster graphics. SVG images were defined in XML
text files . SVG is used to make vector diagrams like:
● Pie Charts
● 2-Dimensional graphs ...
<svg width=“100” height=“100”>
<circle cx=“50” cy=“50” r=“40” stroke=“yellow” stroke-width=“4” fill=“red” />
</svg>
3. What are the entities in HTML?
The HTML character entities are used as a replacement for reserved characters in
HTML. You can also replace characters that are not present on your keyboard by
entities. These characters are replaced because some characters are reserved in
HTML.
Result Description Entity Name Entity Number
3
< less than < <
> greater than > >
& ampersand & &
4. Name the supported file formats for audio tag ?
This tag defines the sound, such as music or other audio streams.
There are 3 supported file formats :
✔ MP3
✔ WAV
✔ OGG
4
<audio controls>
<source src=“Master_Tutorials.mp3”
type=“audio/mpeg”>
Learn from Masters
</audio>
5. what is the use of a datalist tag?
Datalist tag provides an autocomplete feature on the form element. It facilitates
users to choose the predefined options for the users to select data.
Users will see a drop-down list of predefined options as they input data.
<label>
Enter your favorite color
<input type="text" id="favcolor" list="colors">
<datalist id="CktPlayers">
<option value="Sachin Tendulkar">
<option value="Jacques Kallis">
<option value="Ricky Ponting">
</datalist>
</label> 5
6. What is the use of figcaption tag in HTML5?
6
The <figcaption> element is used to caption the image. It is an optional tag and can appear before or
after the content within the <figure> tag. It is used with <figure> element and it can be placed as the first
or last child of the element.
<figure>
<img src="htmlpages/images/tajmahal.jpg" alt="Taj Mahal"/>
<figcaption>Fig.1.1 - A front view of the great Taj Mahal in Agra.</figcaption>
</figure>