+ 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.
18 Answers
+ 8
HTML:
+ Replace the '<'s by the html entities '<' ( 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<<</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;
}
+ 1
I just opened my code and then clicked the share option and selected messages... then from messages I copied it.😄
0
how you created the link of this code?
0
closing tag of head written twice
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
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.
- 1
now suppose its a site how will u upload it ?
- 1
I did not understand... mean what are you talking about? "Link" or "code"
- 1
link
- 1
no i m telling if i ve made a site using coding then how will i publish it
- 1
are you on mobile or computer?
- 1
mobile
- 1
what is webhost?
- 1
ty
- 1
what is CDN
- 1
I dont know... sorry... Google it
- 1
ok thank you for sparing your time