Are you wanting to add some text to a webpage, with a border around it?
Hmmm, there's probably two main ways to do it (try copying and pasting these into your HTML file or petpage or webpage in general).
1. The table way:
Code:
<table border="1">
<tr>
<td>Text goes here!</td>
</tr>
</table>
This'll give the text a slightly ugerly border by putting it inside a table. People tend to use tables to add background images and things too. You could also add some CSS to make the border prettier.
2. The CSS way:
Code:
<div style="border: 1px solid blue">Text goes here!</div>
In this case, the text is put in a "div" element, which basically just defines an area of a webpage.
This method is kinda difficult if you don't know much CSS, but it gives you the most flexibility! Basically, you can change the border properties to various things. The first part (property) after
border: is the width (eg. "1px", "5px", "thick"), the second is the style ("solid", "dashed") and the third is the colour ("blue", "red", "#ff0000").
This page explains it a bit too.
Edit: Yeah, the w3schools site is really good! It's perhaps not the
friendlist looking site, but it's very thorough.
This page, for example, explains almost all there is about borders. If you click on one of the examples, it shows the HTML and CSS in action
(eg.
this one is pretty cool)