Sir I have these codes

<html>
<head>
<title>My Company</title>

<style type="text/css">

#box1{
float:left;
width:250px;
height:150px;
border:1px solid red;
padding:5px;
background:url(b21.jpg);
background-repeat:no-repeat;
background-size:contain;
}
</style>
</head>

<body>
<div id="box1">
<div style=position:relative;padding:5px;width:150px;height:50px;margin-top:20px;background:orange;color:blue;border:1px solid blue;font-weight:bolder;text-decoration:underline;>How are you</div>
</div>
</body>
</html>

I want to ask why these properties are not work in my inline style

border:1px solid blue;font-weight:bolder;text-decoration:underline

You need to enclose your style values in quotes.

<div style="property:value;property:value">
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.