|
|
|
Create Free Websites Create Your Own |
HTML Code TutorialThe Paragraph TagThe paragraph tag Setting Paragraph AttributesAttributes for paragraphs can be set using embedded, linked or inline style sheets. p { font-family: Arial , sans-serif;font-size : 10pt; font-weight : normal;text-align :left; text-indent : 1em}
This style sheet would set our paragraph text to 10 point Arial, set alignment of text to the left and indent the paragraph 1 em. You can also set the color of text, weight of text, style of text, line spacing, width and add left, right, top and bottom padding. Using Inline Style SheetsThe appearance of text within a paragraph can be changed using inline style sheets. The The span tag This code would produce the results shown here, when using the span tag to change the weight of text to bold. <p>This code would produce <span STYLE="font-weight : bold">the results shown here</span>, when using the span tag to change the weight of text to bold.</p>
It could also be used to change the color of the text. <p>It could also be used to change the <span STYLE="color :#FF0000;background-color :#FFFFFF">color</span> of the text.</p>
Other inline tags that can be used to change text within a paragraph are:
You can Test Code in this HTML editor. |
Contents Table of ContentsIntroduction Page Structure Basic HTML PageDoctype The Body Tag The Header Tag The Division Tag Horizontal Rule Anchor Tag Anchor Tag - Intradocument Anchor Tag - Image Using Borders The ID Attribute Meta Tags Text Controls Style SheetsWorking With Fonts The Paragraph Tag Paragraphs-Images Using Lists The Pre Tag Line Break Tag Tables Basics of TablesColspan Forms Form BasicsCheck Boxes Text Boxes Selection Boxes Frames Basic FramesTarget and Scrolling Search Engines Miscellaneous Buttons with CSSUsing Color Color Chart Using Images Using Templates Uploading HTML pages. HTML-CSS Quizzes |
|
Copyright © 2009 - Net Success 2000 Plus Inc - Somerset KY 42502 |