How to align text in css
- how to move text left in html
- how to move text left to right in html
- how to move text box to left in html
- how to move text to top left in html
Align text left, center right same line html!
How to move a text in HTML ?
Moving text in HTML refers to changing its position within the document’s layout structure.
Align text left, center right same line html without css
Syntax
<marquee> Contents... </marquee>Steps
- Open an HTML file in a text editor to begin.
- Now place the <marquee> tags before and after the text to enable text movement.
- Optionally, use the direction attribute within <marquee> to set the text’s movement direction.
- If desired, use the behavior attribute to alternate the text’s movement direction.
- At last, customize the appearance by adding style attributes like ‘background’, ‘border’, etc, within the <marquee> tag.
Example 1: In this example, we will see the use of a <marquee> tag.
Output:
HTML-1
Example 2: In this example, we creates a scrolling text effect using the <marquee> tag, displaying “Geeksforgeeks” in green color and large font size.
Output:
HTML-2
- how to move text box left side in html
- how to make text go left in html