Copying HTML code in Google Chrome's inspect element
Do the following:
- Select the top most element, you want to copy. (To copy all, select
<html>
) - Right click.
- Select Edit as HTML
- New sub-window opens up with the HTML text.
- This is your chance. Press CTRL+A/CTRL+C and copy the entire text field to a different window.
it's the easiest way to do this.
- Select the
<html>
tag in Elements. - Do CTRL-C.
- Check if there is only lefting
<!DOCTYPE html>
before the<html>
.