|
HTML Home
Create a Website HTML TutorialHTML Tutorial HomeAbout HTML Getting Started HTML Elements HTML Formatting HTML Attributes HTML Colors HTML Links HTML Images HTML Meta Tags HTML Comments HTML Forms HTML Tables HTML Image Maps HTML Frames HTML Entities HTML Layouts HTML Styles HTML Scripts HTML Website Templates Website Hosting Summary HTML Code GeneratorsHTML Code GeneratorHTML Table Generator Marquee Generator Music Code Generator HTML Text Generator Text Box Generator Free HTML CodesHTML Background CodeHTML Comment Box Codes HTML Scroll Box Codes HTML Font Codes HTML Picture Codes HTML Marquee Code HTML Music Codes HTML Templates More Codes... HTML ReferenceHTML ExamplesComplete HTML Tag List Complete HTML 5 Tag List HTML Special Characters Hex Color Codes HTML Help FREE Hosting!With every domain name you register with ZappyHost, you get FREE hosting.$1.99 Domain NamesWith every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99. |
HTML BordersThe best way to create HTML borders is to actually use CSS (Cascading Style Sheets). Using CSS, you can create a border around any HTML element. There are a range of CSS properties that you can use to define borders but the shorthand border property is the most concise way. Below are some examples of what you can do with HTML, borders, and CSS. Solid BorderThis code results in:
HTML borders are best created with CSS.
Dotted BorderThis code results in:
HTML border code - or should that read CSS border code?
Dashed BorderThis code results in:
HTML border code - or should that read CSS border code?
Outset BorderThis code results in:
HTML border code - or should that read CSS border code?
Inset BorderThis code results in:
HTML border code - or should that read CSS border code?
Grooved BorderThis code results in:
HTML border code - or should that read CSS border code?
Double BorderThis code results in:
HTML border code - or should that read CSS border code?
Ridged BorderThis code results in:
HTML border code - or should that read CSS border code?
Mixed BorderYou can combine different border types and styles for each side of the HTML element. This code results in:
Create borders for any HTML element.
Inline, Embedded, or External?All of the above examples use "inline" styles to create the borders. You can also use "embedded" style sheets or "external" style sheets. In fact, embedded style sheets are more powerful than inline styles. And external style sheets are more powerful than embedded style sheets. Use embedded style sheets if you need to apply the same border to multiple objects on the same page. Use external style sheets if you need to apply the same border to multiple objects on multiple pages (or across your whole site). To learn more, see Inline Style Sheets, Embedded Style Sheets, and External Style Sheets. For more info, check out the various border properties on the CSS Properties list. Enjoy this website?
Oh, and thank you for supporting Quackit! |
Need Content for your Website?Get unique, quality digital content for your website. You can even earn money by reselling it!Includes:
|