Learning web development: Marking guides and questions

Android 8.1
Settings / Accessibility / TalkBack

// Good for older phones

Newer than Android 8.1
Settings / General (tab) / Accessibility / Vision / TalkBack

Updated — thanks!

// Not what I would call an improvement

No, certainly not :wink:

To turn TalkBack off…

Navigate to Accessibility > TalkBack .

Ah yes, I’ve updated this too now, thanks again!

Hi Chris, what is the best way to get help for your Learning web Development pages? im really stuck at the Conditional 1,2, 3 … Tests and Need help to Forward. i cannot find any Solutions for them on your Websites. Before It was really helpful to have a solution buttons underneath the explanations. Thx for info and help. Regards

I’ve left those off this time, as many people were cheating without trying the exercise properly :wink:

Best way is to ask me, on here. I replied to your previous post. What are you stuck on now?

1 Like

Hi Chris. I opened a new tag for an assesment in the Conditionals 2 test. I saw that you allready found it and answered. Can you see my Code (Codepen) ? It must be a different solution. It`s all About scores and Responses in this test …

Hi Chris,

need your help…

How could I replace the last comma in the string below to " and "?
“Bob Smith is 32 years old. He likes music, reading, singing, dancing.”

what I have is:
var newstr = str.replace(str[str.lastIndexOf(",")], " and ");
but result changes the first comma to " and "… I am stuck at this step… Look forward to your help…

Thanks,
Livia

@lsyh1210 I’d probably handle this in the loop, rather than trying to do it afterwards (which would require a regular expression; doable, but a bit fiddly). If you do something like (in pseudocode)

if (this is the last item in the array) {
  string += ' and ' + names[i] + '.'
} else {
  string += names[i] + ', '
}

You can get the last item in an array with array[array.length - 1]

This is my code from the exercise “Marking up a letter”

<meta charset="UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta name="author" content="Miss Eileen Dover">

<meta name="description" content="Esta pagina es un ejemplo del ejercicio tomado de la MDN(Mozilla Developer Network).">

<title>Carta</title>

<link rel="stylesheet" href="css/estilos.css">
<div class="container">

    <address class="sender-column">

        <strong>Eleanor Gaye</strong> <br>

        Awesome Science faculty <br>

        University of Awesome <br>

        Bobtown, CA 99999, <br>

        USA <br>

        <strong>Tel: </strong>123-456-7890 <br>

        <strong>Email: </strong>no_reply@example.com <br>  

    </address>



    <p class="sender-column"><time datetime="2016-01-20">20 January 2016</time></p>



    <address>

        <strong>Miss Eileen Dover</strong><br>

        4321 Cliff Top Edge <br>

        Dover, CT9 XXX <br>

        UK <br>

    </address>

    

    <h1>Re: Eileen Dover university application</h1>



    <p>Dear Eileen,</p>



    <p>

        Thank you for your recent application to join us at the University of Awesome's science faculty to study as part of your <abbr title="philosophie doctor">PhD</abbr> next year. I will answer your questions one by one, in the following sections.

    </p>



    <h2>Starting dates</h2>



    <p>We are happy to accommodate you starting your study with us at any time, however it would suit us better if you could start at the beginning of a semester; the start dates for each one are as follows:</p>



    <ul>

        <li>First semester: <time datetime="2016-11-9">9 September 2016</time></li>

        <li>Second semester: <time datetime="2017-01-15">15 January 2017</time></li>

        <li>Third semester: <time datetime="2017-05-2">2 May 2017</time></li>

    </ul>

    

    <p>Please let me know if this is ok, and if so which start date you would prefer.</p>



    <p>You can find more information about <a href="http://example.com." title="example">important university dates</a> on our website.</p>

    

    <h2>Subjects of study</h2>



    <p>

        At the Awesome Science Faculty, we have a pretty open-minded research facility — as long as the subjects fall somewhere in the realm of science and technology. You seem like an intelligent, dedicated researcher, and just the kind of person we'd like to have on our team. Saying that, of the ideas you submitted we were most intrigued by are as follows, in order of priority:

    </p>



    <ol>

        <li>Turning H<sub>2</sub>O into wine, and the health benefits of Resveratrol (C<sub>14</sub>H<sub>12</sub>O<sub>3</sub>.)</li>

        <li>Measuring the effect on performance of funk bassplayers at temperatures exceeding 30°C (86°F), when the audience size exponentially increases (effect of 3 x 10<sup>3</sup> &gt; 3 x 10<sup>4</sup>.)</li>

        <li><abbr title="Hypertext Markup Lenguage">HTML</abbr> and <abbr title="Cascading Style Sheet">CSS</abbr> constructs for representing musical scores.</li>

    </ol>



    <p>So please can you provide more information on each of these subjects, including how long you'd expect the research to take, required staff and other resources, and anything else you think we'd need to know? Thanks.</p>



    <h2>Exotic dance moves</h2>



    <p>Yes, you are right! As part of my post-doctorate work, I <em>did</em> study exotic tribal dances. To answer your question, my favourite dances are as follows, with definitions:</p>



    <dl>



        <dt>Polynesian chicken dance</dt>

        <dd>A little known but <em>very</em> influential dance dating back as far as 300<abbr title="Before Christ">BC</abbr>, a whole village would dance around in a circle like chickens, to encourage their livestock to be <q>fruitful</q>.</dd>



        <dt>Icelandic brownian shuffle</dt>

        <dd>Before the Icelanders developed fire as a means of getting warm, they used to practice this dance, which involved huddling close together in a circle on the floor, and shuffling their bodies around in imperceptibly tiny, very rapid movements. One of my fellow students used to say that he thought this dance inspired modern styles such as Twerking.</dd>



        <dt>Arctic robot dance</dt>

        <dd>An interesting example of historic misinformation, English explorers in the 1960s believed to have discovered a new dance style characterized by <q>robotic</q>, stilted movements, being practiced by inhabitants of Northern Alaska and Canada. Later on however it was discovered that they were just moving like this because they were really cold.</dd>



    </dl>

    

    <p>For more of my research, see my <a href="http://example.com." title="example">exotic dance research page.</a></p>



    <p>Yours sincerely,</p>

    <br>

    <br>

    <br>

    <p>Dr Eleanor Gaye</p>

    <p>University of Awesome motto: <q>Be awesome to each other.</q> -- <em>The memoirs of Bill S Preston, Esq</em></p>

</div>

hello everyone!
Please check my work on Github planets-datal, thank you!

Hello @sjmcsy

you doing great well done just a notice about the colgroup

check this one

in future when you want assest it better to create your own post with link to the code and the task/topic page

so go to https://discourse.mozilla.org/c/mdn/236

and click on the + sign on the top right side of the screen

hope that help and have a nice day :slight_smile:

1 Like

Thank you, I’ll give it a try.

1 Like

you welcome :slight_smile:

Hi @11146 and welcome to the community :wave:

It would be better if you could post your code on an online code editor like CodePen.

From what I see in your screenshot there are two things that can be done:

  • Use Flexbox for the nav with a suitable justify-content property.
  • Use Grid with two 1fr columns for the photos.

I hope that helps.

Have a nice weekend,
Michael