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

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

#1


#2

Hi there,

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


#3

how fast method that could…?


#4

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


#5

@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.

#6

i’am so sorry if my wrong…


#7

thanks brother was very helpful…


#8

without style or use style…?


#9

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.