Copying Code from Inspect Element in Google Chrome

mars picture mars · Sep 25, 2012 · Viewed 138.2k times · Source

I'm currently developing a website in HTML and I want to copy some of the code from other websites. However when I go into the inspect element feature and try to copy just part of the code it ends up copying the whole script. Is there any way I can get just part of the code from inspect element without having to copy the whole thing and cut out the bits that I don't want in dreamweaver?

Answer

User picture User · Sep 25, 2012

Right click on the particular element (e.g. div, table, td) and select the copy as html.