Log in

View Full Version : Difference between HTML and CSS



robertdown22
08-05-2012, 09:39 AM
HTML stands for hyper text mark up language. It is most standard or basic language to create web pages. It has very simple code structure which can be learnt within 1 or 2 day and is most basic language that can be learnt even by a layman. CSS stands for cascading style sheet, which can be applied to any XML Language. Its basic purpose is to make things easier especially formatting part. Also it provides better control over presentation than do presentation elements in HTML. CSS proffers innumerable vantages against HTML

1 In case of CSS styling the styling is limited to number of style sheets. Editing one style sheet is far better than editing 10,000 HTML files.
2 Economy in bandwidth is there as style sheet is cached after the very first plea and can be used for every page on the site i.e. it needs not to be downloaded again and again from web. CSS reduces bandwidth usage to upto 50percent also visitors can load the website faster.
3 When content and presentation aspect is separated then site owners can use the content for other purposes like RSS (Real Time Syndication) feed.
4 Now you don’t need special version on each page to get printed you can create a single style sheet that control every page on site that is to be printed.
5 You can apply different layout schemes to different media schemes.
6 Advanced and sophisticated design and layouts are available in CSS.

Although CSS is an independent language still it is applied with XTML and XML format. CSS mainly encompass within itself styles, fonts, colors, margins, lines, height, width, background images, advanced positions and multifarious things. HTML is basically used to add layout to websites but CSS perform this work in efficient and better way. Nonetheless, HTML can be viewed in certain browser only and CSS can be viewed in any browser. Moreover, CSS aids in maintaining your website in enhanced way. It was kind of revolution in the world of web design. CSS was mainly developed to simplify codes of bigger pages also it can be beneficial even for small pages but benefits become visibly quite clear in long pages. Also you can create numerous tags depending upon your requirement. HTML doesn’t fair well if you want styling for long pages. Furthermore, in case of HTML you need to involve multiple keywords in every section and this gets repeated multiple time and this makes pages unnecessarily quite long also if ever you are novice to this language and you commit mistakes the simple language will become all the more difficult and quite complex and you can’t trace back that faults and foibles.
In epilogue, CSS has become popularized due to its edge over HTML language. It makes web page creation quite an easy task to accomplish and lot more easier to troubleshoot. What’s more CSS can be used in HTML language, it is not exclusively meant for HTML but it can be used in other languages too like XML and XHML. Hence now the difference between HTML and CSS may be crystal clear.

sam051
08-06-2012, 01:55 AM
In simply HTML is a "Hyper Text Mark Up Language" which is the best programming language while CSS is "Cascading Style Sheet" which is use for graphics designing in static sites.

anusha
08-06-2012, 03:47 AM
HTML stands for Hypertext Markup Language..It was used to designed to display the data,
CSS stands for Cascading Style Sheets and the Styles define how to display HTML elements,Styles were added to HTML 4.0 to solve a problem.

thomaskent1991
08-07-2012, 02:49 PM
HTML is a hypertext markup language while CSS is a cascading style sheet. HTML is the language that we use to add content like paragraphs, tables, headers, level bars, photos, and lots more. CSS is that we use to stylize that content like give the breadth of a table, choose colors, backdrop hue, backdrop likeness, etc.

lennondevid
08-27-2012, 07:55 AM
HTML is used to make a web pages and while CSS is that you should use to stylise that content like give the width of a table, choose colors, background color, background image, etc.

maxjohn148
08-27-2012, 09:53 AM
HTML (Hyper Text Markup Language) is a language and used to make static websites and CSS (Cascading Style Sheet) is used for making some styles

ankita123
08-28-2012, 09:20 AM
both are depend upon self css basically use for style on page.

annahussy
08-29-2012, 12:44 AM
HTML is known as Hyper Text Markup Language that is the most popular language that use to saw a data of web page. Its very easy language to use and its use to create web pages and website.
CSS is known as Cascading Style Sheet that is a language which use to adding style in website.

ashokkumar
08-29-2012, 02:43 AM
HTML stands for Hyper Text Markup Language. It is basic used to design website.
Where CSS Stands for Cascading Style Sheet. It is basic used to make formating designed website graphic.

annahussy
08-30-2012, 03:47 AM
HTML stands for Hyper Text Markup Language. It is basic used to design website.
Where CSS Stands for Cascading Style Sheet. It is basic used to make formating designed website graphic.

Can you suggest me some best tutorials for learning about CSS. I have not enough knowledge about CSS so that i want to learn CSS and also want to use it to giving style in my website.

charlesth
08-31-2012, 10:46 AM
Hyper Text Markup Language (HTML) is a markup language used to create a web page structure and Cascading Style Sheet (CSS) is a style sheet used to change or give a unique look to your web page. HTML and CSS both are the fundamental language used while web designing, HTML is divided into three main parts like Internal, External and Inline while CSS is built-in a web page where using internal markup (<head>, <style> tag) or external markup (from ‘.css’ file). HTML is supported in structuring the contents and CSS is used to design the web page content to make it more eye-catching.

stevetamer
08-31-2012, 06:50 PM
In simply HTML is a "Hyper Text Mark Up Language" which is the best programming language while CSS is "Cascading Style Sheet" which is use for graphics designing in static sites.

words of wisdom, well said, Thread closed;)

samdorjey
09-01-2012, 03:37 AM
HTML is like the base language. CSS is like a support language that makes it easier to maintain a lot of web pages.HTML is responsible for creation and total output of a page. CSS does not creates anything. It decorates, aligns and positions elements in HTML.

jamsen
10-04-2012, 03:21 PM
Basically HTML is used to put everything in a webpage.
You define the image, you type the text, links, etc…

CSS is then linked to the HTML "to make it look pretty".
You have a lot more lay-out possibilities with CSS than if you’re only using HTML.

Sherin
02-07-2020, 12:25 AM
HTML

HTML stands for Hypertext Markup Language.
HTML describes the structure of Web pages using markup
HTML elements are represented by tags
HTML tags label pieces of content such as "heading", "paragraph", "table", and so on
Browsers do not display the HTML tags, but use them to render the content of the page

Example of html page

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>



CSS

CSS stands for Cascading Stylesheets.
It lets you make a website look nicer.
CSS describes how HTML elements are to be displayed on screen, paper, or in other media
CSS saves a lot of work.
It can control the layout of multiple web pages all at once
External stylesheets are stored in CSS files


Example of css

<!DOCTYPE html>

<html>

<head>

<style>

body {

background-color: lightblue;

}

h1 {

color: white;

text-align: center;

}

p {

font-family: verdana;

font-size: 20px;

}

</style>

</head>

<body>

<h1>My First CSS Example</h1>

<p>This is a paragraph.</p>

</body>

</html>

yuva12
02-10-2020, 04:13 AM
HTML, HyperText Markup Language, gives content structure and meaning by defining that content as, for example, headings, paragraphs, or images. CSS, or Cascading Style Sheets, is a presentation language created to style the appearance of content—using, for example, fonts or colors.