Showing your HTML Codes
This is most important to those writing tutorials! We can show HTML codes on our pages by the following ways:
- With the use of textareas:
<form><textarea rows="3" cols="10" style="background-color:white; border-style:solid"> put your html codes here! </textarea></form>The above code will look like this:
Don't worry, it will scroll when you put a longer html code. Now, this is used when you have a lot of codes you want your visitor to see. You can change the rows, cols, background and border attributes to your liking!
- With the use of < and > :
These codes will appear on your page as follows: for < it will appear as < and for > it will appear as >.
You can use these on shorter codes like <body bgcolor=#ffffff> which will appear as <body bgcolor=#ffffff>
Labels: basic, html, showing html codes, tutorial
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home