Swarali Sree has Published 100 Answers

How to use quotation marks in HTML?

Swarali Sree

Swarali Sree

Updated on 29-Dec-2021 06:47:20

The <q> tag is used to add short quotation marks in HTML. Just keep in mind if the quotation goes for multiple lines, use <blockquote> tag. Browsers usually insert quotation marks around the q element.You can also use the cite attribute to indicate the source of the quotation in URL ... Read More

How to use Emphasized formatting in HTML?

Swarali Sree

Swarali Sree

Updated on 22-Dec-2021 12:53:09

To use emphasized formatting in HTML, the <em>…</em> a tag is used. It defines the emphasized text and adds semantic importance. Just keep in mind; it is a phrase tag, which renders as emphasized text.You can try to run the following code to use the emphasized formatting in HTML using ... Read More

How to make page links in HTML Page?

Swarali Sree

Swarali Sree

Updated on 22-Dec-2021 06:46:02

With HTML, easily add page links to an HTML page. Link contact us, about, home or any other external website page using the page links, which gets added inside an HTML document. To make page links in an HTML page, use the <a> and </a> tags, which are the tags ... Read More

How to draw a quadratic curve on HTML5 Canvas?

Swarali Sree

Swarali Sree

Updated on 16-Dec-2021 09:59:35

The HTML5 <canvas> tag is used to draw graphics, animations, etc. using scripting. It is a new tag introduced in HTML5. The canvas element has a DOM method called getContext, which obtains rendering context and its drawing functions. This function takes one parameter, the type of context 2d.To draw a ... Read More

Should I use <img>, <object>, or <embed> for SVG files?

Swarali Sree

Swarali Sree

Updated on 26-Jun-2020 06:36:09

To add SVG files, you can use <img> <object>, or <embed> element in HTML. Choose any one of them according to your requirement. Here’s how you can add SVG, <img> elementUse the <img> tag for images without interaction.The disadvantage is you cannot manipulate images with JavaScript.<img src = "new.svg" alt ... Read More

How to use .svg files in a webpage?

Swarali Sree

Swarali Sree

Updated on 26-Jun-2020 06:33:18

The svg files are Scalable Vector Graphics. You can add it to a web page using the <img>, <iframe>, <object> or <embed> tag.The .svg file is to be referenced in the src attribute of the <img> tag. Let’s see how to add it using the <img> tag.You can try to ... Read More

How to set the width of the outline around an element with JavaScript?

Swarali Sree

Swarali Sree

Updated on 23-Jun-2020 13:36:14

To set the outline width, use the outlineWidth property. You can try to run the following code to set the width of the outline around an element with JavaScript −ExampleLive Demo<!DOCTYPE html> <html>    <head>       <style>          #box {           ... Read More

How to set the margins of an element with JavaScript?

Swarali Sree

Swarali Sree

Updated on 23-Jun-2020 13:19:12

Use the margin property in JavaScript, to set the margins. You can try to run the following code to set the margins of an element with JavaScript −ExampleLive Demo<!DOCTYPE html> <html>    <body>       <button type="button" onclick="display()">Set all four margins</button>       <p id="myID">This is demo text.</p> ... Read More

How to set the font to be displayed in small capital letters with JavaScript?

Swarali Sree

Swarali Sree

Updated on 23-Jun-2020 12:56:31

To set the font in small capital letters, use the fontVariant property.ExampleYou can try to run the following code to set the font to be displayed in small capital letters with JavaScript −Live Demo<!DOCTYPE html> <html>    <body>       <h1>Heading 1</h1>       <p id="myID">       ... Read More

How to set the left margin of an element with JavaScript?

Swarali Sree

Swarali Sree

Updated on 23-Jun-2020 12:15:16

Use the marginLeft property in JavaScript, to set the left margin. You can try to run the following code to set the left margin of an element with JavaScript −ExampleLive Demo<!DOCTYPE html> <html>    <body>       <button type="button" onclick="display()">Add left margin</button>       <p id="myID">This is demo ... Read More

1 2 3 4 5 6 7 ... 10 Next
Advertisements