+ 1

is this code fine???

I made an HTML page in which I just played with margins, padding, button, script, svg etc. please check the code. if there is any mistake. let me know. code link is in comments.

6th Mar 2017, 10:27 AM
MHM 13
MHM 13 - avatar
18 Answers
+ 8
HTML: + Replace the '<'s by the html entities '&lt;' ( Ligther Than )... even browers success to correct it, when parser found '<' character, it's expecting an html tag, but didn't find one ^^ <h2>>>Challenge&lt;&lt;</h2> + don't put '/' at end of tags: that's not valid syntax, even this is also generally good corrected by browsers... ( concern all html elements wich doesn't autorize childs content, as <img>, <hr> and others -- in your case concern <br> tags mainly ) CSS: #rectangleContainer { border-radius:px; /* missing value */ } #text{ border:2px bpack #884dff; /* unknown value 'bpack' */ border-radius:px; /* missing value */ } Some basic improvments: #rectangleContainer { /* instead 1000px fixed width, set it to viewport width */ width:100%; /* as your svg dimension is large, on small viewports ( like phones ) needed for not making growing document width larger than viewport, wich breaks layout and allow user to horizontal scroll */ max-width:100%; /* finally need hidding the svg outside container */ overflow:none; } .button { /* instead of top, bottom, left, right, use shorthand property padding-top:16px; padding-bottom:16px; padding-left:8px; padding-right:8px; */ padding:16px 8px; /* vertical (top+bottom), horizontal (left+right) */ /* also for margin, and use 'auto' value to center the element whatever width of viewport margin-left:90px; margin-top:10px; */ margin:10px auto 0; /* top, horizontal (auto=center), bottom */ /* needed to center with margin auto */ display:block; }
6th Mar 2017, 4:34 PM
visph
visph - avatar
+ 1
I just opened my code and then clicked the share option and selected messages... then from messages I copied it.😄
6th Mar 2017, 11:19 AM
MHM 13
MHM 13 - avatar
0
how you created the link of this code?
6th Mar 2017, 11:12 AM
Jitesh Gupta
0
closing tag of head written twice
6th Mar 2017, 11:13 AM
Jitesh Gupta
0
you first need a web host, which you need to buy, then you need to buy a domain e.g Google.com or yoursitename.com. then you will upload your HTML file on webhost
6th Mar 2017, 11:27 AM
MHM 13
MHM 13 - avatar
0
web host is place where all the websites are uploaded, after uploading the websites there, they are visible to whole world. please google rest.
6th Mar 2017, 11:40 AM
MHM 13
MHM 13 - avatar
- 1
now suppose its a site how will u upload it ?
6th Mar 2017, 11:21 AM
Jitesh Gupta
- 1
I did not understand... mean what are you talking about? "Link" or "code"
6th Mar 2017, 11:24 AM
MHM 13
MHM 13 - avatar
- 1
link
6th Mar 2017, 11:24 AM
Jitesh Gupta
- 1
no i m telling if i ve made a site using coding then how will i publish it
6th Mar 2017, 11:25 AM
Jitesh Gupta
- 1
are you on mobile or computer?
6th Mar 2017, 11:25 AM
MHM 13
MHM 13 - avatar
- 1
mobile
6th Mar 2017, 11:26 AM
Jitesh Gupta
- 1
what is webhost?
6th Mar 2017, 11:37 AM
Jitesh Gupta
- 1
ty
6th Mar 2017, 11:41 AM
Jitesh Gupta
- 1
what is CDN
6th Mar 2017, 11:41 AM
Jitesh Gupta
- 1
I dont know... sorry... Google it
6th Mar 2017, 11:43 AM
MHM 13
MHM 13 - avatar
- 1
ok thank you for sparing your time
6th Mar 2017, 11:44 AM
Jitesh Gupta