HTML is use for creating a website, before start learning with HTML, let us understand what a website is:
A website is a way to deliver information to the users which are connected with it. The content of a website is stored in a place called web server, indicating a single domain. Generally, a domain name is known as URL (Universal Resource Locator) or (Uniform Resource Locator) of that web server. User sends a request to the server via web protocol HTTP/HTTPS, then, the web server respond to the user's request. This response is a file or a page known as web page, this type of web page is created by using markup language like HTML, which holds the information in the form of text, images, animation, links, audio, video etc.
So one line definition of a website is:
"A website is a collection of web pages which delivers information to the user, from the web server over the network".
Generally, websites is divided into two categories, i.e. Static and Dynamic.
|S.No||Static websites||Dynamic websites|
|Static websites contain a fixed number of pages.||Dynamic websites can create web page dynamically.|
|Theme and content of a web page is fixed.||Theme and content of a web page may change on run time.|
|Static websites load quickly on client's browser because it has some markup code.||Dynamic websites take some time to load on client's browser because it processes the request on server.|
|Static sites never use database connectivity.||Dynamic sites can deal with database and generate the contents dynamic using database queries.|
|Static website directly run on browser and does not need other server application language. Static website are created using HTML and CSS.||Dynamic website run the application on server and the output will display on client's browser in the form of HTML. Dynamic website are created using PHP, Asp.NET, JSP, Python etc.|
|Static websites are easy to develop, and a bit of experienced people can develop it.||Dynamic websites are not easy to develop, it required qualified developers to create, manage, test and maintain security of application and database.|
|In static website if we want to change the page content then we have to make changes many times on many pages.||Dynamic websites provide the facility to change the page content using a server application. And need to change on only once.|