Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

CSS Tutorial for beginners (Step by Step) with Examples(Part2).

What is Internal Style Sheet?

An internal style sheet is a set of style that is created as a part of an HTML document. An internal style sheet may be used if one single page has a unique style.
An internal Style sheet is created by using <style> element, which is added inside the <head> element of the HTML document. For Example :-

Output

To know more about Internal Style Sheet, watch the video – What is Internal Style Sheet?

What is Inline Style in CSS?

Inline style is used when we need a specific style for an individual element present in the Web Page. The style Attribute in a specific tag or element is used to create an inline style. The style attribute can contain any CSS property between double-quotes. For Example:-

For Paragraph :-

<p style=”color: red; font-size: 20px;”>I am First Paragraph</p>

<p>I am Second Paragraph</p>

For Heading :-

<h1 style=”color: blue; font-size: 23px;”>I am Heading</h1>

Output

To know more about Inline Style, watch the video – What is Inline Style in CSS?

How to use an ID Selector?

The ID Selector uses the id attribute of an HTML element to select a specific element. The id of an element should be unique within a page, so the id selector is used to select one unique element. To select an element with a specific id, write a hash(#) character, followed by the id of the element. For Example :-

Output

How/Where to use a Class Selector or Style Class?

Class selectors are used when we have to apply a style to either on same or across different tags without repeating the style rule in an HTML document. Using this method of creating styles, you can create style in the form of style classes in an external style sheet or as an internal style sheet. The class attribute is used to apply style class in the HTML tag.

Type of Style Class?

i. Universal style classes.
ii. Element Specific Style Classes.

Click Here for part 3 :- CSS Tutorial for beginners (Step by Step) with Examples(Part3).

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
With MotoShare.in, you can book a bike instantly, enjoy doorstep delivery, and ride without worries. Perfect for travelers, professionals, and adventure enthusiasts looking for a seamless mobility solution.

Related Posts

What is CSS and use cases of CSS?

What is CSS? CSS stands for Cascading Style Sheets. It is a style sheet language used to define the presentation and layout of HTML documents. CSS allows…

Read More

Top 21 Firefox Addon every software engineers must know

Mozilla Firefox is a very popular browser, especially among web designers and developers. These days, with such a crowded field, staying at the top of the browser…

Read More

Top 50 interview questions and answers for CSS

CSS stands for cascading styles sheets. In short, CSS may be a style language that creates an internet site look a lot of appealing than simply plain…

Read More

What is CSS and How does CSS works?

Introduction To CSS CSS (Cascading Style Sheets) is used to style and layout web pages – for example, to change the font, color, size, and spacing of…

Read More

How to add Media Query in your HTML Websites?

Media Query: A media query is a CSS technique introduced in CSS. A media query consists of the optional media type and zero or more expressions that…

Read More

CSS Tutorial for beginners (Step by Step) with Examples(Part3).

i. Universal Style Class It is a type of style class which is used by any element of the HTML document. Universal Style Class Starts with a…

Read More