What is CSS and type with brief description

What is CSS and type with brief description

What is CSS and type with brief description.
We all are know about the HTML. Basically all the website are design using the HTML (that is called front-end web development). So When we are design a front-end that time we are use the HTML code. But the HTML is not only create the hole website front-end development with a good graphical design. To complete front-end development we are use the CSS(stands for Cascading Style Sheets).

So What is CSS and type with brief description

CSS stands for Cascading Style Sheets. The CSS can control HTML elements how they are displayed on web browser.
There are three way to write CSS for a website. Mean there are three types of CSS.

  • Inline styles
  • Embedded styles or Internal styles
  • External styles
  1. Inline styles: Inline styles are written directly in the tag and it only affect specific tag they are written the CSS. Syntax:style="" Example:
<a href="http://www.spectrumtech.in" style="color:red;text-decoration: underline;>Web Design</a>

Output: Web Design

Explain: Here the “style” tag content the CSS for the anchor tag. So when the browser display the link text then its display text color RED and the text underline.

2. Embedded styles or Internal styles: Embedded styles or Internal styles are written in the HTML HEAD section and this CSS affect the current HTML file where the CSS is present. Example:

<!DOCTYPE html>
<title>This is the title of the page.</title>

<style>.classname{color:red;}</style>    </head>
<p class="classname">This is a paragraph.</p>
      <a href="http://www.spectrumtech.in" class="classname">This is a link.</a>

Output: This is a paragraph This is a link.

3. External styles: External styles are written outside of the HTML file in a separate document and then attached to various web documents. Now in this time most website use the External styles. How to link the External styles:

<link href='url' rel='stylesheet' type='text/css' />
how to write External styles or Internal styles

So here we discuss about the how to write basic CSS for External styles or Internal styles.
Both are same process using the “class name” or the “id name” or “attributes name” or the “tags name”. for the class name we are use the “.”(dot) before the classname for denoted the class like .classname , for ID use “#” like #id , for attribute like [attribute^=”value”] and tag name just use the tag name.
For define class and use:

<a href="http://spectrumtech.in/" class="classname">This is a link</a> 
 For define ID and use:
 <a href="http://spectrumtech.in/" id="IDname">This is a link.</a>
 Using attribute ::<a href="http://spectrumtech.in/" target="_blank"  rel="noopener noreferrer">This is a link.</a>
 Example:a[target="_blank"] { color: black;}
 Using tag::<a href="http://spectrumtech.in/" >This is a link.</a>
 Example:a{ color: black;}

*Notes: Most professional web designers are use a External styles to govern a site’s layout and design. The disadvantage to external style sheets is that every page will use every style in the CSS sheet, So some of pages will load a much larger CSS page than that actually required. But Advantage : for a website have one CSS file and its load once for the all pages because the browser can cache the CSS file for first time and that case the CSS file can’t hit second time and the website load quickly.

I hope this article helped you to learn what is css and types?.

HTML for Absolute Beginners

HTML for Absolute Beginners

Hear we describe how to Learn HTML for the beginner in easy way for the beginner with example and Description about the HTML tags and the attributes with example.

What is HTML?

HTML (Hypertext Markup Language) is the language in which most websites are written. HTML is used to create pages and make the webpage visible.

The History of HTML

HTML was first created by Tim Berners-Lee, Robert Cailliau, and others starting in 1989

The current standard of HTML is dubbed HTML 5 and is specifically at version 5.2.

Hypertext means that the document contains text, links, pictures, and even sound and video.

A Markup Language is a way that computers speak to each other to control how text is processed and presented. To do this HTML uses two things: tags and attributes.


To write HTML programming language we are use “tags”, browser read the tags and understand how a webpage should look. The tags usually come in pairs: an opening tag defines the start of a Html code and an ending tag defines the end of Html code. There are many different kinds of tags present in html, and each one has use for a different purpose.

Now check Here is an example how to write HTML code.

<!DOCTYPE html>
<title>This is the title of the page.</title>
<body bgcolor="gray">
<p>This is a paragraph.</p>
<a href="http://spectrumtech.in">This is a link.</a>
<img src="image url" alt="describe the image use for">

Some of HTML tags:

Tag name Name Function Code Example
<!DOCTYPE> Doctype Defines the Document type <!DOCTYPE> html
<html> html Defines an HTML document <html>All code and all tags are under this tag</html>
<head> Head Contains any code that is not used to display elements on the webpage <head>here we write the title tag, favicon link, external CSS link, style tag, external JS link and more… </head>
<title> title Defines the title of the webpage <title>(shown on the tab in browser)</title>
<body> body Contains the visible elements of the webpage <body>Which are display on the website ll are written under this body tag</body>
<h1> to <h6> Headings Headings of various sizes there are six heading tag h1 to h6. h1 is the largest and h6 is the smallest
<p> Paragraph Defines a paragraph of text <p>content here</p>
<Anchor> Anchor Creates active links to other web pages <a href="www.spectrumtech.in">Learn HTML for the beginner in easy way</a>
<img> image Defines <img>Displays an image on the page</img>
<br> html Break line <br>break the line. if you use <br>“here use br tag” tag with in a line then it break the line after the br tag.
<center> html Moves content to the center of the box or page <center>display the text in center with in the area.</center>
<script> html Creates a script in the webpage <script>Here we write the script like JavaScript or Jquery</script>

What is HTML Attributes

Attributes provide additional information about HTML tag and complete the purpose for the HTML tags.

  • all HTML tag have attributes.
  • All attributes are start in the starting of html tag.
  • Attributes have the name and value pairs Example: src=”image path”. there the “src” is Attributes name the the “image path” is the Attributes value.
  • Attributes values are written with in the Single or Double Quotes