0

Please understand me these attributes? Why do use them

<title>My Blog</title> <link href="https://fonts.googleapis.com/css?family=Handlee" rel="stylesheet"> </head> <body> <!-- header start --> <div id="header" class="section"> <img alt="" class="img-circle" src="https://code.sololearn.com/Icons/Avatars/0.jpg"> Why we used link instead of a? And what "rel" do? "Id"? And the img-circle class

26th Sep 2019, 1:15 AM
Anès Bouguesmia
Anès Bouguesmia - avatar
2 odpowiedzi
+ 2
Linke because it's the stylesheet wich is declared in the rel section. And the stylesheet contains the information to show the picture the way it is ment by the webdesigner.
26th Sep 2019, 2:17 AM
Lexfuturorum
Lexfuturorum - avatar
+ 1
ID - this is the identifier of this particular tag <div>, its unique name, whose name can then be accessed in CSS in this way: #header { }. on one page should not is the two ID with the same name. this will be considered a mistake. but at the same time this tag <div> is attached to two classes: "section" and "img-circle". In CSS they are accessed through a dot: .section{ } .img-circle { }. classes are used to combine the same properties of several elements
26th Sep 2019, 9:18 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar