दोस्तों इस chapter में हम HTML text के बारे में जानेंगे तो चलिए शुरू करते है, HTML में text का उपयोग किसी भी paragraph के साइज को बढ़ाने या घटाने के लिए लिया जाता है और text का यूज़ कर के हम paragraph में कलर को भी डिफाइन कर सकते है।
दोस्तों जैसा की आप जानते है HTML में कुछ tags का उपयोग सिर्फ और सिर्फ text formatting करने के लिए किया जाता है. आप इन tags का उपयोग करके किसी भी web page पर text की position और presentation पर नियंत्रण कर सकते है. उदाहरण के लिए किसी भी text को underline या बोल्ड कर देना।
HTML Text आमतौर पर cascading style sheets का use करके formatted हो जाता है. CSS, HTML के साथ काम करता है ताकि आप शैली को बदल सकें या अपने web pages को देख सकें उदाहरण के लिए देखें।
<!DOCTYPE html> <html> <body> <p><b>This is my paragraph</b></p> <p><i>This paragraph italic</i></p> <p><strong>This paragraph is strong.</strong></p> <p>This paragraph <sub>subscripted</sub> text.</p> <p>This is paragraph <em>subscripted</em> text.</p> <p>This <small>paragraph</small> Formatting</p> <h2>This <mark>paragraph</mark> Formatting</h2> </body> </html>
This is my paragraph
This paragraph italic
This paragraph is strong.
This paragraph subscripted text.
This is paragraph subscripted text.
This paragraph Formatting