Monica Mona has Published 107 Answers

What is horizontal rule in HTML Page?

Monica Mona

Monica Mona

Updated on 22-Dec-2021 09:06:49

The <hr> tag represents a horizontal rule in HTML. It separates content in an HTML page. Just keep in mind the <hr> tag do not have end tag. It is added to the <body> … <body> tag in an HTML page.ExampleYou can try to run the following code to add ... Read More

How to draw a rectangle in HTML5 SVG?

Monica Mona

Monica Mona

Updated on 16-Dec-2021 09:25:41

SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer. Most of the web browsers can display SVG just like they can display PNG, GIF, and JPG.To draw a rectangle in HTML ... Read More

How to set all the outline properties in one declaration with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 13:23:32

To set outline properties, use the outline property. It allows you to set the color, style, and offset of the outline.ExampleYou can try to run the following code to set all the outline properties in one declaration with JavaScript −Live Demo<!DOCTYPE html> <html>    <head>       <style>   ... Read More

How to set an image as the list-item marker with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 13:21:08

To set an image as the marker in list-item, use the listStyleImage property in JavaScript.ExampleYou can try to run the following code to set an image as the list-item marker with JavaScript −Live Demo<!DOCTYPE html> <html>    <body>       <ol id="myID">          <li>One</li>     ... Read More

How to set the horizontal alignment of an element with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 12:34:52

To align the element horizontally, use the cssFloat property.ExampleYou can try to run the following code to set the horizontal alignment of an element with JavaScript −Live Demo<!DOCTYPE html> <html>    <body>       <img id="myID" src="https://www.tutorialspoint.com/videotutorials/images/tutor_connect_home.jpg" width="300" height="300">       <p>This is Demo Text. This is Demo ... Read More

How to set the width of the rule between columns with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 12:18:22

Use the columnRuleWidth property to set the width between columns. You can try to run the following code to set the width of the rule between columns with JavaScript −ExampleLive Demo<!DOCTYPE html> <html>    <head>       <style>          #myID {           ... Read More

Set whether or not an element should be visible while not facing the screen with JavaScript?

Monica Mona

Monica Mona

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

Use the JavaScript backfaceVisibility property to set whether or not an element should be visible while not facing the screen.ExampleYou can try to run the following code to learn how to implement a backfaceVisibility property in JavaScript −Live Demo<!DOCTYPE html> <html>    <head>       <style>       ... Read More

How to set all the border top properties in one declaration with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 11:38:38

To set all the border top properties in a single declaration, use the borderTop property. With this property, you can set the border-top-width, border-top-style, and border-top-color property.ExampleYou can try to run the following code to learn how to work with border-top properties in JavaScript −Live Demo<!DOCTYPE html> <html>    <head> ... Read More

Set whether the table border should be collapsed into a single border or not with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 10:59:59

To set whether a table border is to be collapsed, use the borderCollapse property and set it to collapse. You can try to run the following code to set the table border to collapse −ExampleLive Demo<!DOCTYPE html> <html>    <body>       <table id="newTable" border="2">          <tr> ... Read More

How to style background image to no repeat with JavaScript DOM?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 10:00:09

To style the background image to no repeat with JavaScript, use the backgroundRepeat property. It allows you to set whether the background image repeats or not on a page.ExampleYou can try to run the following code to learn how to style background image to no repeat with JavaScript −Live Demo<!DOCTYPE ... Read More

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