You might want to turn it into a span for any number of reasons.
eg if you want one word in a sentence to be another color / style eg. I wear a red hat
<Typography component="div" >
Contact Details :
<Typography component="div" display="inline" variant="body2" color="black"> elroinoronha2@gmail.com </Typography> </Typography>
(copy it to a code editor for the code to make sense)
is a good solution since it defeats the "h1 cannot be a child of h1" DOM error + let us use the sx prop.
We would not be able to use sx prop to style the inline part if we would use the native <span>
component
ie. <Typography > yo mama <span> so fat </span> </Typography>
You would have to use inline style styling instead.