MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

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

Internal style sheet output: blue heading and two red paragraphs

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

Inline style output: green first paragraph, plain second paragraph and large blue heading

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

ID selector output: blue heading and large blue second paragraph, first paragraph unstyled

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

WordPress Typography Patterns: Styled Lists, Notice Boxes, and Code Blocks with Reusable CSS

This guide modernizes a legacy WordPress typography post into practical, reusable patterns for custom list markers, callout boxes, and code styling. It focuses on maintainable CSS and editor-friendly markup you can reuse across posts and documentation pages.

Read More

What to choose: front-end or backend development?

Regarding web development, two main areas play a crucial role in creating a functional and visually appealing website: frontend and backend development. Frontend development focuses on the…

Read More

Building the Virtual Classroom: An Introduction to HTML5 Layouts for Online School Portals

To build a virtual classroom, you need to grasp HTML5 layouts. Use semantic elements like <header>, <nav>, <section>, and <footer> for better accessibility and SEO. Make certain…

Read More

What is Apache Cordova and use cases of Apache Cordova?

What is Apache Cordova? Apache Cordova, formerly known as PhoneGap, is an open-source mobile development framework that allows developers to build mobile applications using web technologies such…

Read More

How to Implement Accessibility in Web Development: Practical Steps and Tools

Making your website accessible to everyone, including people with disabilities, is crucial. Accessibility in web development means ensuring that colors, text, and navigation support all users. Web…

Read More

How to become a Full stack Web developer & App developer?

Platform Dev Tools Web Server Framework Concept Programming & Scripting Languages Becoming a full-stack web developer and app developer requires a comprehensive understanding of both front-end and…

Read More