+ 2

Starting to learn some HTML....

Hello there! I am trying to learn many of the popular coding languages, both Web Design and App Design, so far I have been working on figuring out HTML. (then I will move on to C++ and Java) But I have a question, when using the <p> tag for code, do I need to keep making a new <p> every time I want to start a new paragraph? Here's my code notes I have been working with: -------------------------------------------------------------- <DOCTYPE html> <html> <body> <h1>Hello There!</h1> <h2>We are here to speaks about the glories of html!</h2> <h6>(and other random crap as I learn HTML)</h6> <p>So lets begin! uhh... um... my mind is drawing a blank. Hey don't look at me like that! Figuring out this stuff is hard! <a href="https://www.bungie.net/en/Forums/Topics"> So go look at this link:</a></p> <p>Also, I am a huge Bungie fanboy, so here is one of my favroite recent Destiny Emblems. (I am really just testing out the image tags...) <br> <center><img src="https://i.imgur.com/rOEIWbS.png" alt="Hunter Symbol" width="490" height="270"></center> <p>Hello? </p> <p>Ok. Still works. lol. what to try next? Oh yeah! Aligning stuff. How did you do that? Hmmm... </p> <p>Welp. I am stumped. Cannot figure out how to get the "Center" tag to work. Maybe Chrome doesn't support anymore? That is possible...</p> <p> NEVERMIND I GOT IT! HA HA! >:D </p> <center><img src="https://cdn.shopify.com/s/files/1/0417/0233/products/stand_together_emblem.png?v=1504575021" alt="Stand Together" width="490" hight="270"></center> </body> </html> -------------------------------------------------------------- Now you might notice I have a lot of <p> tags in there. Is this a good practice to get into? or is there something that I am missing? Thanks in advance! :) EDIT 1: I do remember hearing the <center> tag isn't used anymore with browsers, and that CSS like you said Schindlabua, will cover that... I did try using the <pre> tags, Fahem_ken, but I am doing most of my editing off of a notepad editor,

2nd Oct 2017, 6:29 PM
The Orwell
The Orwell - avatar
3 ответов
+ 6
Yeah that's perfect! Just a little aside: <center> is no longer HTML, browsers are just chugging it along so old websites don't break. As soon as you learn CSS, get rid of that :P
2nd Oct 2017, 6:19 PM
Schindlabua
Schindlabua - avatar
+ 4
If you want that your paragraph looks like how you wrote it then surround it between <pre> and </pre>
2nd Oct 2017, 6:22 PM
Fahem
Fahem - avatar
+ 1
Try making a code in the playground and posting that one here.
3rd Oct 2017, 7:01 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar