jeffharbert

HTML Textarea to Share Block of Code

Feb 10th, 2013
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.68 KB | None | 0 0
  1. This creates a textarea with a section of HTML code on your website. Clicking inside the block of code automatically highlights it so it can be copied. This is just an example. You'll want to edit the code appropriately.
  2.  
  3. <p><textarea rows="6" cols="80" onclick="this.select();" style="width: 600px;height: 120px;padding: 10px;"><a href="http://www.example.com/"><img src="http://www.example.com/images/image.jpg" alt="Image ALT Text goes here" title="Image title goes here" width="400" height="300" /></a></p>
  4. <p><small>Additional smaller text could go here <a href="http://www.example.com/">Link text goes here</a> from <a href="http://www.example.com/">Example.com</a>.</small></textarea></p>
Advertisement
Add Comment
Please, Sign In to add comment