K Kiran kumar
K Kiran kumar

Reputation: 167

getting confused about .aspx and .html

i am new to asp.net and i have started learning asp.net and i am excited about it.

my questions are...

1.what is the main difference between .html and .aspx page?

2.i wanted to know is there any difficulty while it comes to apply styles and javascript code to aspx page . till now i have experienced in developing client side applications using html,css,javascript,jquery(static web pages no dynamic data will be loaded). this time i am going to do with .aspx is there any obstacles in making web site beautifully with asp.net ?

Upvotes: 3

Views: 15848

Answers (3)

Helio
Helio

Reputation: 193

HTML is a Markup language (it defines the page structure)

CSS stands for Cascading Styles Sheets they defines the style of the elements in the page

ASP is a server side programming language (that means that is elaborated by the web server)

Javascript is a clientside programming language (that means that is elaborated by the user's browser)

Basically this is how it works:

Web server process the asp data and then return to the user the HTML result, now the browser can elaborate the html (apply styles from the referred CSS stylesheet, execute Javascript etc.), there is no particular difficulty that other languages doesn't have.

If you want to Know more about Server side languages: https://en.wikipedia.org/wiki/Server-side_scripting

Upvotes: 1

YeisonPx
YeisonPx

Reputation: 57

There is no problem using Asp.net, you will have the same result because the browser will display the result with HTML and CSS. You can use JavaScript in the same way and you will no have problem in the result.

Asp.net give more advantages to add functionality to your projects.

So, do not be afraid to learn this language :)

Upvotes: -1

Tushar Gupta
Tushar Gupta

Reputation: 15923

HTML Page : A Web page with user interface and content static information that does not go through any server-side processing.

ASPX Page : A Web page with user interface and dynamic content information that is coming from server-side. This type of page will render the HTML content in the browser. ASPX page is dynamic and has server control support.


Is there any difficulty while it comes to apply styles and javascript code to aspx?

-- The CSS and JS are applied in the aspx pages in the same way as you do it for HTML. The only difference comes when you use Master Page. In that case, you just need to be sure about the id's of the elements as they are dynamically generated

Upvotes: 5

Related Questions