Html element with lang attribute

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

<!-- User Editable Region -->

<!DOCTYPE html>

<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Learn HTML Forms by Building a Registration Form - Step 2

Link to the challenge:

Hi there and welcome to our community!

Below the DOCTYPE , add an html element with a lang attribute set to en , so that you have a place to start putting some code.

You haven’t added an html element. You will need both an html opening tag and closing tag. Inside the opening tag you can put your attribute.

can you kindly send me an example

I can’t show you the solution, but most elements in HTML share the same syntax.

Here’s an example of a paragraph element with one attribute:

<p class="bold">This is a paragraph element with one attribute</p>

You can use the same syntax to create an html element with the attribute specified in the challenge description.

Create an opening html tag and a closing html tag. Whilst the p element above has text content, for now your html element will be empty (i.e. just a pair of tags). Then add a lang attribute with the value en, using the same syntax as the attribute above.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.