eef freef Posted March 15, 2020 Share Posted March 15, 2020 I'm kinda new to this, I've messed around with inspect element at school, but I'm trying to center an image in the body of my thing. I've tried class="center" and other things but none have worked. I looked at something saying to use CSS, but I'm confused on how to use it. Link to comment Share on other sites More sharing options...
Ingolme Posted March 17, 2020 Share Posted March 17, 2020 You should read carefully through the CSS tutorial: https://www.w3schools.com/css/default.asp If you don't understand CSS you basically can't build a proper website. Link to comment Share on other sites More sharing options...
Makwana Prahlad Posted March 18, 2020 Share Posted March 18, 2020 Hello, @eef freef Please try this code,To Centering image using HTML: <!DOCTYPE html> <html> <body> <center> <img src="smiley.gif" alt="Smiley face" width="42" height="42"> </center> </body> </html> I hope above code will be useful for you. Thank you. Link to comment Share on other sites More sharing options...
Ingolme Posted March 18, 2020 Share Posted March 18, 2020 The <center> tag is obsolete and not permitted in HTML 5. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now