/    Sign up×
Community /Pin to ProfileBookmark

Making design more user friendly

The books from which I learned HTML and JavaScript are nearly 20 years old. In this page data entered in the textarea is processed by functions under the 2nd and 3rd buttons, two sets of radio buttons, and popups for more info. Is there anything I can do to improve its appearance or function? TIA

[code]<!DOCTYPE html>
<!–HTML5 doctype–>
<html lang=”en”>
<head>

</script><STYLE type=”text/css”>
input { text-align:right; }
</STYLE>

</head>
<body onload=”doClear(0)” bgcolor=”#b0ffff”>
<h1>Title</h1>
<form name=”tournform”>
<table width=”1000″>
<tr>
<td><input type=”radio” name=”rr2″>Default <input type=”radio” name=”rr2″>Create test data.
<input type=”radio” name=”rr2″> &nbsp; &nbsp; &nbsp; Num Places:
<INPUT name=”numpl” type=”text” value=”2″ size=”1″> &nbsp; &nbsp; &nbsp; Show <INPUT name=”ballots” type=”checkbox”></td>
<td>Round up <INPUT name=”roundup” type=”checkbox”></td>
<td>Automatic: <INPUT name=”doauto” type=”checkbox”></td>
<td><input type=”button” value=”Click to start” onClick=”calculate()”></td>
<td><input type=”button” value=”||: part 1″ onClick=”doTally()”></td>
<td><input type=”button” value=”part2 :||” onClick=”delOne(-1)”></td>
<td><input type=”button” value=”Reset” onClick=”doClear(0)”></td>
</tr>
<tr>
<td colspan=”7″ width=”1000″>
<textarea name=”outputField” rows=”35″ cols=”145″></textarea></td></tr>
<tr><td>More info ) <a href=”http://demo”>demo.org</a></td>
<td colspan=”5″></td></tr>
<tr><td><input type=”radio” name=”select1″ onclick=”doClear(0)”>Default</td></tr>
<tr><td><input type=”radio” name=”select1″ onclick=”doSel()”>Option1</td><td><a href=”http://www.demo” target=”new”>Link for 1</a></td>
<td colspan=”4″><INPUT name=”prompt” type=”text” size=”28″>
<input type=”button” value=”How to use/help” onClick=”Instructions()”></td></tr>
<tr><td><input type=”radio” name=”select1″ onclick=”doSel()”>Option2</td><td><a href=”https://www.youtube.com/watch?v=something” target=”new”>Link for 2</a></td>
<td><input type=”button” value=”Explain something” onClick=”showExhaust()”></td></tr>
<tr><td><input type=”radio” name=”select1″ onclick=”doSel(0)”>Top Two Fail
<input type=”radio” name=”select1″ onclick=”doSel()”>Custom</td>
<td></td><td><a href=”demo.htm”>Back to Orig form</a></td><tr>
</table>
</form>
</body>
</html>[/code]

to post a comment

8 Comments(s)

Copy linkTweet thisAlerts:
@VITSUSAMay 22.2018 — Multiple options are available to improve appearance, but before answering may I know, which platform you are using for website creation?
Copy linkTweet thisAlerts:
@wbportauthorMay 22.2018 — I don't have a system that creates or maintains a template (I had FrontPage on a previous computer) and just use NotePad++ to edit a page or start a test in a browser. I'm not sure what you are asking. Am starting to learn about CSS, but am a long way from calling myself proficient in it.
Copy linkTweet thisAlerts:
@SempervivumMay 22.2018 — 20 years is a long time. Table layout is not state of the art now. Make yourself familiar with flex layout instead:

https://css-tricks.com/snippets/css/a-guide-to-flexbox/

Although your form doesn't benefit that much from flex layout than other patterns I've converted it:
&lt;!DOCTYPE html&gt;
&lt;!--HTML5 doctype--&gt;
&lt;html lang="en"&gt;

&lt;head&gt;
&lt;title&gt;Form&lt;/title&gt;
&lt;style type="text/css"&gt;
input {
text-align: right;
}
#top-line {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.5em;
}
.cbottom {
display: flex;
}
.bottom-col1 {
flex: 0 0 15em;
}
.bottom-col2 {
flex: 0 0 8em;
margin-left: auto;
}
.bottom-col3 {
flex: 0 0 15em;
}
.bottom-col4 {
flex: 0 0 8em;
}
&lt;/style&gt;

&lt;/head&gt;

&lt;body onload="doClear(0)" bgcolor="#b0ffff"&gt;
&lt;h1&gt;Title&lt;/h1&gt;
&lt;form name="tournform"&gt;
&lt;div id="top-line"&gt;
&lt;input type="radio" name="rr2"&gt;Default
&lt;input type="radio" name="rr2"&gt;Create test data.
&lt;input type="radio" name="rr2"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Num Places:
&lt;input name="numpl" type="text" value="2" size="1"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Show
&lt;input name="ballots" type="checkbox"&gt;Round up
&lt;input name="roundup" type="checkbox"&gt; Automatic:
&lt;input name="doauto" type="checkbox"&gt;
&lt;input type="button" value="Click to start" onClick="calculate()"&gt;
&lt;input type="button" value="||: part 1" onClick="doTally()"&gt;
&lt;input type="button" value="part2 :||" onClick="delOne(-1)"&gt;
&lt;input type="button" value="Reset" onClick="doClear(0)"&gt;
&lt;/div&gt;
&lt;textarea name="outputField" rows="35" cols="145"&gt;&lt;/textarea&gt;
&lt;div id="bottom1"&gt;More info )
&lt;a href="http://demo"&gt;demo.org&lt;/a&gt;
&lt;/div&gt;
&lt;div id="bottom2"&gt;
&lt;input type="radio" name="select1" onclick="doClear(0)"&gt;Default
&lt;/div&gt;
&lt;div id="bottom3" class="cbottom"&gt;
&lt;label class="bottom-col1"&gt;
&lt;input type="radio" name="select1" onclick="doSel()"&gt;Option1&lt;/label&gt;
&lt;a class="bottom-col2" href="http://www.demo" target="new"&gt;Link for 1&lt;/a&gt;
&lt;label class="bottom-col3"&gt;
&lt;input name="prompt" type="text" size="28"&gt;
&lt;/label&gt;
&lt;label class="bottom-col4"&gt;
&lt;input type="button" value="How to use/help" onClick="Instructions()"&gt;
&lt;/label&gt;
&lt;/div&gt;
&lt;div id="bottom4" class="cbottom"&gt;
&lt;label class="bottom-col1"&gt;
&lt;input type="radio" name="select1" onclick="doSel()"&gt;Option2
&lt;/label&gt;
&lt;span class="bottom-col2"&gt;
&lt;a href="https://www.youtube.com/watch?v=something" target="new"&gt;Link for 2&lt;/a&gt;
&lt;/span&gt;
&lt;label class="bottom-col3"&gt;
&lt;input type="button" value="How to use/help" onClick="showExhaust()"&gt;
&lt;/label&gt;
&lt;div class="bottom-col4"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="bottom5" class="cbottom"&gt;
&lt;span class="bottom-col1"&gt;
&lt;input type="radio" name="select1" onclick="doSel(0)"&gt;Top Two Fail
&lt;input type="radio" name="select1" onclick="doSel()"&gt;Custom
&lt;/span&gt;
&lt;div class="bottom-col2"&gt;&lt;/div&gt;
&lt;a class="bottom-col3" href="demo.htm"&gt;Back to Orig form&lt;/a&gt;
&lt;div class="bottom-col4"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;

&lt;/html&gt;
Copy linkTweet thisAlerts:
@wbportauthorMay 22.2018 — Thanks for looking at it, I'll definitely be studying your example and flexbox link.
Copy linkTweet thisAlerts:
@NogDogMay 22.2018 — Another option is CSS Grid:

* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout

*
https://www.youtube.com/watch?v=7kVeCqQCxlk&t=6s

A bit of googling should give you plenty of people arguing for which is better. ?
Copy linkTweet thisAlerts:
@SempervivumMay 23.2018 — What about browser support?

https://caniuse.com/#feat=css-grid

Insufficient support by IE is the reason why till now I shied at learning it.
Copy linkTweet thisAlerts:
@NogDogMay 23.2018 — @Sempervivum#1592257

There are definitely issues/arguments. One could also argue why anyone would be using IE these days...but that's a separate issue. ? (They should at least be moving to Edge, since it has better support for both flex and grid [see https://caniuse.com/#search=flex].)

Semantic mark-up can at least help ensure it degrades to something usable, and the more we use grid and/or flex, maybe the more they're motivated to get with the times? (shrug)
Copy linkTweet thisAlerts:
@wbportauthorMay 23.2018 — Once again, thanks for converting the table to a style sheet. I transcribed your suggestions into the real page and was surprised to find my JavaScript worked without having to change anything.

That was a real aid in helping me to understand style sheets.

The link to the page is https://www.wjporter.com/misc/irvtest1.htm "Back to One Winner" has been converted to CSS as well and both acknowlege Sempervivum near the top of the body.
×

Success!

Help @wbport spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...