Formatting Tags in HTML|| HTML TUTORIAL|| Code With Neha

Опубликовано: 28 Февраль 2025
на канале: Code With Neha
352
19

In my previous video I have discussed about html heading tag you can check the video from the above I button
In today's video we will be discussing about b and strong elements in html
And the basic difference between them
HTML b and strong Elements
HTML Formatting is a process that allows us to format text to increase its visual appeal. Various HTML tags can change how text appears on a web page and make the text attractive. We can use HTML text formatting tags to bold, italicize, underlined text, and do more.

The HTML b element defines bold text, without any extra importance.

Example
bThis text is bold /b
The HTML strong element defines text with strong importance. The content inside is typically displayed in bold.

Example
strong This text is important! /strong

Let us apply it on the text editor

Starting with the basic html tags

Within body tag
Using our 1st formatting tag b tag
So

b This text is bold/b
And
strong This text is important! /strong
note that
b and strong both may achieve a similar visual outcome, but there's a crucial difference between them.

b tag is only used for styling purpose and doesn't convey any specific semantic meaning to the text it wraps.

Whereas strong tag tells web browsers and assistive technologies that the enclosed text should be treated as having strong importance or emphasis.

When you use the b or strong tags without providing custom styles, browsers will typically apply their default styles for bold text. But these default styles can be overridden by CSS styles defined within the webpage's stylesheet or inline styles applied directly to the elements.

So adding css style tag just above closing head tag
Within style tag
Strong with curly braces
Writing parameters as
font weight : normal;
color: red;

I will discussing rest of the formatting tag in the next video


that's all for today Hope you all will get some help from this video
If it's so then don't forget to subscribe my channel Code with Neha and press the Bell Icon for Regular Updates
See you in the next video till then Stay Safe Stay Happy

#htmlformatting
#htmlformattingtags
#formattingtagsinhtml
#coding
#formattingtagsinhtmlwithexample
#htmltags
#htmltutorial
#htmltutorialforbeginners
#htmlforbeginners
#htmlforbeginner
#htmlattributes
#htmlbasics
#htmlbasiccourseforbeginners
#htmlbasiccourse
#html
#html5
#htmlcss
#htmlcode
#htmlelements
#htmlfundamentals
#htmlfullcourse
#webdevelopment
#webdevelopmenttutorials