Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

How to add html tags to page source dynamically. I can add html tags to a page, when i am viewing the page source of web page, added tags are not there in the page. I have to add tags to page source also.

Regards,
Bhaskar.
Posted
Comments
vbmike 20-May-14 14:42pm    
You can add tags a few different ways, PHP, javascript, jquery. Not sure why your tags would not show up if you added them? If you used dynamic addition it could be the function is not working? You would have to post some code you may have tried.
MTProgrammer 20-May-14 18:59pm    
Remember if you use JavaScript or Ajax for rendering sometimes the HTML is not there in View Source, so try to google View Generated Source and you'll find browser plug-in's that accomplish this and allow you to see all the rendered HTML for JavaScript/Ajax calls.

http://stackoverflow.com/questions/16177814/view-generated-source-in-ie-10

http://stackoverflow.com/questions/3314429/how-to-view-generated-html-code-in-firefox

And FireFox has an awesome Web Developer Toolbar plugin that has this capability, as well as other useful features.

FWIW!
Sunasara Imdadhusen 21-May-14 2:01am    
Can you please let me know why you want to add HTML tag in page source?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900