tags:

views:

32

answers:

1

I want to display meta tags in newline means when i open a site and seeing the viewsource of the site the all meta tags is displayed in oneline.

i want to display each and every meta tag in one newline.

for ex: required output:

<meta name="description" content="vvvv sdhgf dbngfsdj">
<meta name="keywords" content="dgd, sfdg, sdjgj">

but displayed output like this:

<meta name="description" content="vvvv sdhgf dbngfsdj"><meta name="keywords" content="dgd, sfdg, sdjgj">
A: 

The newlines (or lack thereof) in a webpage's source code come directly from the web server; you cannot modify them.

It would be possible to write a browser extension to insert newlines when you click View Source, butI don't think there are any existing extensions that do that.

However, you can use Firebug to view an HTML page's DOM tree; it will do what you're looking for. (In the HTML tab)

SLaks