Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
Like
Bookmark
Share
Add to Playlist
Report
Style Tag | Inline Styling | External Stylesheets
Web Artificer
Follow
7/31/2024
Style Tag | Inline Styling | External Stylesheets
#StyleTag #InlineStyling #ExternalStylesheets #CSS #WebDesign #FrontEndDeveloper #Coding #WebDevelopment #DesignTrends #CSS3 #HTML #CodingTips #ResponsiveDesign #DigitalMarketing #UI #UX #CodeNinja #WebDev #DevLife #CodeSnippet
Category
📚
Learning
Transcript
Display full video transcript
00:00
So today we will cover three main things in our topic.
00:06
We have seen the maximum HTML.
00:11
So now we will see how we can use styling in our document.
00:17
And what are the main styling components that we use to style our elements and text.
00:25
Then we can also style the body.
00:29
CSS is actually used for styling and HTML is used for documentation.
00:37
So we will use inline styling.
00:41
First of all, we will see what inline styling is.
00:45
Let's look at the paragraph.
00:47
Now we want to know where is the text.
01:00
We have a simple text.
01:04
How can we change it?
01:08
First of all, we call it inline styling.
01:12
Which is a strong method.
01:15
Because if there is any over styling, this method will bypass it and implement it.
01:23
But this is also assumed to be a bad practice.
01:28
Because your code will be visible on the other side.
01:32
So we will use style tag for this.
01:37
In style tag, if we want to change the color of the text, then only the color property will be used.
01:45
And we can give any text.
01:47
For example, red.
01:49
Let's go and refresh.
01:52
So we will see that our text is red.
01:55
Now we want to change its background color.
02:06
So this is our background color.
02:18
But it doesn't look good on it.
02:20
So we will divide it.
02:23
And let it be a tail color.
02:28
So we can also change the height and width.
02:33
We have 100% of height.
02:39
Let's make it 10 pixels.
03:02
10 pixels is too small.
03:04
Let's make it 50 pixels.
03:07
Okay.
03:08
Now as you can see that we can change the styling in it.
03:13
Similarly, we can take a style tag separately.
03:22
It will come on the body.
03:24
And all our stylings, we will take them all at once.
03:30
Color will come.
03:39
Let's take this tag.
03:49
First of all, it will be selected.
03:51
And its properties in it.
03:55
We will tell it what we want to change.
04:01
We will hold the selector first.
04:05
And then we will give its properties in it.
04:08
Give it a color.
04:11
White.
04:13
And background color.
04:16
Let's give it a blue tail first.
04:19
Let's see.
04:22
Let's see.
04:23
So you see that this method will also work for us.
04:27
But suppose you have multiple pretexts.
04:43
You have multiple pretexts.
04:46
There will be only one styling implemented on all of them, which you do not want.
04:50
You want different on it.
04:52
You want different on it.
04:53
You want different on it.
04:55
So for that, we use classes or IDs.
05:00
We will choose the class.
05:05
P180.
05:07
And we will also choose this.
05:12
Class P2.
05:17
You can keep any name.
05:19
But it should be meaningful.
05:22
So that even if you know that when you are using it, you have to change it later.
05:28
Why did you keep this name?
05:31
But the name should not be repeated.
05:33
Otherwise, you will have the same problem.
05:37
But instead of this P, we are choosing the class name.
05:45
If we do P1, then to use the class, we use the dot.
05:50
With the dot, P1 will be the class name.
05:54
So as we will see, this is our first class.
05:58
Your styling has been implemented on it.
06:00
And the rest have not been implemented on anyone.
06:04
Now to implement on others, we dot P2.
06:09
And with that, we want to use our other styling.
06:15
Let's make the color green.
06:19
And let's make the background yellow.
06:22
So in this way, you can also do styling for other attributes.
06:36
And if you want, this is our basic styling.
06:48
Now we will see how to use the style sheet.
06:54
How can we use the style sheet in our document.
07:01
Like all these methods are coming in one document.
07:07
And the documentation is also coming.
07:11
So it is becoming confusing.
07:13
It is neither visible nor we can easily manage it.
07:19
To make it easy for us, we choose a different style sheet.
07:24
First of all, we link it with our document.
07:32
This is our style sheet.
07:36
We have linked it.
07:40
With the document file.
07:42
Now we can put anything in it.
07:44
For example, we want to style dot P1.
07:48
Let's put it in the background.
07:57
And let's give it a color.
07:59
Yellow.
08:03
So as we will see, now we have the style sheet implemented.
08:08
And in web development, 99% of people use external style sheets.
08:16
It is also preferable.
08:18
It is also easily manageable.
08:20
And we can easily tackle changes from here.
08:25
So in this way, we can do the rest of our style sheets through it.
08:31
So in the next lectures, we will see how to style.
08:40
We will see through external style sheets.
08:44
HTML is almost covered.
08:48
Apart from this, we will see the small tags in the middle.
08:54
We will see it in the future.
08:57
We will cover things further.
09:01
Thank you for your attention.
09:03
Goodbye.
Recommended
8:03
|
Up next
How to Display Output Using Javascript | Javascript Output Methods
Web Artificer
9/12/2024
18:55
CSS Media Queries in One Video | Responsiveness in CSS
Web Artificer
8/20/2024
22:10
CSS Grid Layout In One Video
Web Artificer
8/20/2024
2:35
Transitions in CSS in Urdu/Hindi
Web Artificer
8/13/2024
9:08
Hover effect dropdown Menu using CSS in Urdu/Hindi
Web Artificer
8/9/2024
4:01
CSS Tutorials: CSS Background | Background Image | background Color
Web Artificer
8/5/2024
6:07
CSS Tutorials: Button in CSS | Button Styling
Web Artificer
8/5/2024
6:17
CSS Tutorials: CSS Shadow | Text Shadow | Box Shadow
Web Artificer
8/5/2024
3:40
CSS Tutorials: Links Styling | Styling Links in CSS
Web Artificer
8/5/2024
15:12
What are Positions in CSS | Positions in CSS
Web Artificer
8/2/2024
10:06
What are Pseudo Elements in CSS | How to use Pseudo Elements in Css
Web Artificer
8/2/2024
8:27
Display properties in css
Web Artificer
8/2/2024
4:57
What are Pseudo classes | How to use Pseudo classes?
Web Artificer
8/1/2024
18:17
How to use Fonts | Height | Width for Responsive design?
Web Artificer
8/1/2024
11:08
What is Padding | Margin | Borders in CSS?
Web Artificer
8/1/2024
3:49
What are Sematic tags in HTML and how to use them?
Web Artificer
7/31/2024
7:21
How to use Marquee and IFrame tags in Html
Web Artificer
7/31/2024
15:24
Html Main Tags | Select tag | Text Formatting
Web Artificer
7/31/2024
0:15
Make landing pages with single click
Web Artificer
7/30/2024
0:11
Loaders library for developers
Web Artificer
7/30/2024
0:10
Expandable Cards with Flexbox shorts
Web Artificer
7/30/2024
0:04
Animated Moving Cards shorts
Web Artificer
7/30/2024
0:12
Every starter developer thought
Web Artificer
7/30/2024
0:07
Flippable Login /Signup form
Web Artificer
7/30/2024
0:07
Animated Product card shorts
Web Artificer
7/30/2024