sridaran Posted April 5, 2013 Share Posted April 5, 2013 Can anyone tell me how to display html code, css code, javascript code in a webpage. I used <pre> and <code>tags but the html code is not proper and some codes are missing in javascript. Link to comment Share on other sites More sharing options...
Ingolme Posted April 5, 2013 Share Posted April 5, 2013 To display HTML, change all < to <, change all > to >.Javascript code should display just fine without any alterations, and the same with CSS. Any < or > symbols are best converted to < and > respectively. Example:Use the <style> tag to add CSS to your website Link to comment Share on other sites More sharing options...
ankit bhalodiya Posted April 8, 2013 Share Posted April 8, 2013 you shoulde try to <p> teg in your page Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now