HolliMills
6 years agoQrew Trainee
Debugging HTML Code on Code Pages
Hi,
I am trying to create an HTML page, and I want to be able center my text and image on the page. I am a beginner with HTML, and the code I found online isn't working for me. Here is entire code for my page, with the image and text I want centered highlighted. For the image, I used margins and padding to get it where I wanted it, but from what I understand that will look different on different screen sizes. Additionally, here is screenshot of what I am getting.
<!DOCTYPE HTML>
<html>
<img style="padding-bottom: 8px; padding-top: 200px; margin-left: 615px;" src="https://opcrh.quickbase.com/up/bpqr5rezh/g/rb/eh/va/PCandRH_color_horizontal%20TRANSPARENT%20BKGRND.png" width="500">
<head>
<title> <span style="text-align: center;">OPCRH Health Workforce Coalition Survey</span></title>
<body style="background-color: #bfd4c4;" >
<h1><span style="text-align: center;">Thank you for submitting your Health Workforce Coalition Survey</span></h1>
<p><span style="text-align: center;">Please contact Ashley Moretz if you have any questions at amoretz@utah.gov or 801-273-6605</span></p>
<br>
<h3><a href="https://ruralhealth.health.utah.gov/"><span style="text-align: center;">Click here to return to the Office of Primary Care and Rural Health Website.</span></a></h3>
</body>
</html>
I would appreciate any suggestions on this!
Thanks.
------------------------------
Holli Mills
------------------------------
I am trying to create an HTML page, and I want to be able center my text and image on the page. I am a beginner with HTML, and the code I found online isn't working for me. Here is entire code for my page, with the image and text I want centered highlighted. For the image, I used margins and padding to get it where I wanted it, but from what I understand that will look different on different screen sizes. Additionally, here is screenshot of what I am getting.
<!DOCTYPE HTML>
<html>
<img style="padding-bottom: 8px; padding-top: 200px; margin-left: 615px;" src="https://opcrh.quickbase.com/up/bpqr5rezh/g/rb/eh/va/PCandRH_color_horizontal%20TRANSPARENT%20BKGRND.png" width="500">
<head>
<title> <span style="text-align: center;">OPCRH Health Workforce Coalition Survey</span></title>
<body style="background-color: #bfd4c4;" >
<h1><span style="text-align: center;">Thank you for submitting your Health Workforce Coalition Survey</span></h1>
<p><span style="text-align: center;">Please contact Ashley Moretz if you have any questions at amoretz@utah.gov or 801-273-6605</span></p>
<br>
<h3><a href="https://ruralhealth.health.utah.gov/"><span style="text-align: center;">Click here to return to the Office of Primary Care and Rural Health Website.</span></a></h3>
</body>
</html>
I would appreciate any suggestions on this!
Thanks.
------------------------------
Holli Mills
------------------------------