What is HTML and CSS?

2

Click here to load reader

Transcript of What is HTML and CSS?

Page 1: What is HTML and CSS?

What is HTML and CSS?

A website generally comprises many components that contribute to its smooth

functionality & design. The foundation of a website relies on its HTML & CSS, which give

a wholesome look & feel to the website.

Let’s have a closer look at these two vital elements of a website:

What is HTML?

HTML basically stands for Hyper Text Markup Language. It is used to build web pages

and is responsible for everything that you read on a website. The HTML language is like

the building block of a webpage, and allows you to manage various elements including

text, images, videos, tables, lists, forms, and other information. The language is written in

tags, a type of open & close bracket structure. Tags basically help to create links,

manage text, and build the entire page layout.

For example, this link to our website is written in HTML.

For example <strong><a href="http://sitessimply.com/">this link to our website

</a></strong> is made of HTML code.

Page 2: What is HTML and CSS?

What is CSS?

CSS stands for Cascading Style Sheets and is generally used to manage your website’s

look & feel. CSS basically deal with the font size, color, type, images styling, page layout,

effects, and everything else that gives an awesome look to the website.

Suppose if HTML is a room, then CSS is the color of the walls, the size of the room, & the

ornamentation.

In this sentence written below, the bold part is made with CSS instead of HTML:

<span style="font-weight: bold;"> bold part</span> is made with CSS

You might be wondering about the difference here. Well! The difference lies in the “style”

in a tag. CSS is further classified into three types, internal, inline, and external CSS.

1. Internal: This type of CSS is defined in the <head> section of the “current”

webpage.

2. Inline: Defined within the HTML of a particular page element.

3. External: External CSs is defined on the external style sheet, which is linked to the

webpage.

Guidelines for using HTML & CSS

• You can use CSS in an HTML file, but HTML cannot be used in a style sheet.

• HTML always goes in the HTML file

• CSS can go into the HTML file or you can also create a separate CSS file.

Conclusion:

For a better website, HTML and CSS both plays a very important role. After putting HTML

structure in place, it is styled using CSS. If you are also looking for your website to be

designed looking HTML and CSS, then contact Sites Simply anytime.