|
|
HTML Code TutorialTutor Ebook Download Using BordersBorders can add an attractive appearance to box type text displays like tables, divisions, paragraphs, lists and blockquotes. The basic properties are:
Border settings can be defined using inline, embedded or linked style sheets. Borders In ParagraphsThe rain in spain falls mainly on the plain. If it falls on the plain in spain, where does it fall in France? <p STYLE="border-style: dotted ;border-color :red;border-width :medium">The rain in spain falls mainly on the plain. If it falls on the plain in spain, where does it fall in France?</p>
In Lists
<ul type="disc" STYLE="border-style: dashed ;border-color : blue;border-width :thin; width : 100px">
In BlockquotesThe blockquote can be used to offset a block of text. By default it is indented on the left and right margins. The appearance can be improved adding the padding property to the style sheet. <blockquote STYLE="border-style: solid ;border-color : green;border-width :thick">The blockquote can be used to offset a block of text. By default it is indented on the left and right margins. The appearance can be improved adding the padding property to the style sheet.</blockquote>
Short Cuts and Selected SidesInline code for setting borders can be shortened by using the following code: This would serve to duplicate the action of the dessert example above. The properties are defined in the same order as above: style, color and width. NOTE: width can be defined in pixels as: 1px, 2px, etc. |
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 |
|
Suppose we only wanted to display borders on one or two sides of a block. The following code could be used: You can Test Code in : HTML editor Exercise |
|
|
HTML TOC |