How to Wrap text in Html
HTML 5 > Structuring Web Documents > Presentational Elements
306
Answer:
If we want to wrap the text in Html, then we have to follow the steps which are given below. Using these steps, any user can easily wrap any text, which is to be shown on the web page.
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 wrap the text.
Wrap the text Hello User Your are at atnyla. If we want to wrap the text in Html, then we have to follow the steps which are given on this page.
Step 2: Now, we have to use word-wrap property. So, we have to place the cursor between the head tag just after the title tag. And, then we have to define a class and <div> tag sector in the <style> tag as shown in the following block.
Wrap the text
Step 3: Now, we have to define that class before the text, which we want to wrap.
Any text which we want to wrap
Step 4: And, at last, we have to save the file and run the file in the browser.
Wrap the text Hello UserYour are at atnyla. If we want to wrap the text in Html then we have to follow the steps which are given in this page.
Your are at atnyla. If we want to wrap the text in Html then we have to follow the steps which are given in this page.
Preview
If you will run above code, you will get below output.
This Particular section is dedicated to Question & Answer only. If you want learn more about HTML 5. Then you can visit below links to get more depth on this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.