How to move a Text in Html

If we want to move a text in Html, we have to follow the steps which are given below. Using these steps, we can easily move the text.

Step 1: Firstly, we have to type the Html code in any text editor or open the existing Html file in the text editor in which we want to move the text.

Step 2: Now, we have to place the cursor before that text which we want to move. And, then we have to define the tag, which is used for moving the text on the web page. So, type the open tag before the text we want to move and close the tag just after that text.

Step 3: By default, the text moves from right to left direction on the web page. If we want to specify the direction, then we have to specify the direction attribute in the tag.

Step 4: If we want to move the text alternatively left to right then right to left, then we have to specify the behavior attribute in the tag.

Step 5: If we want to specify the background of that text which is moving on the web page. Then, we have to use the background property in the style attribute as shown in the following block:

Step 6: If we want to specify the border then we have to use the border property in the style attribute.

Step 7: And, at last, we have to save the Html file and then run the file in the browser.

Test it Now

The output of above Html code is shown in the following screenshot:

How to move a Text in Html




Contact US

Email:[email protected]

How to move a Text in Html
10/30