How set the ID of an Elment....?

Hi there,

The challenge text should explain exactly what you need to do. Give it another look.

2 Likes

how fast method that could…?

I’m very sorry, but I don’t know what you mean. Please consider using Google Translate to get your message across.

@Chaerunhardiansyah

Insert an ID in the opening tag of the element you want to select.
id="myid"

<h1 id="myid">My Heading<\h1>

Then use # and the id name you inserted as the selector in your CSS file.

color: blue;
}```

I hope that helps.
1 Like

i’am so sorry if my wrong…

thanks brother was very helpful…

without style or use style…?

Do you mean style tag? You can but a better option is to place the CSS in a separate file.

You have to insert a link tag in the html file that points to the CSS file.

<link rel="stylesheet" type="text/css" href="cssfilename.css">

The href attribute will work with the file name alone only if the html and CSS files are in the same folder. Otherwise you have to specify a path.

Let me know if that answers your question.