HTML atributlari qisqacha

2025 Yan 30, 04:59 • ozodbek Mirzaaknarov (@ozod_dev)

<!DOCTYPE html>

<html>

<body>


<h1>About W3Schools</h1>


<p title=Description of W3Schools>

You cannot omit quotes around an attribute value 

if the value contains spaces.

</p>


<p><b>

If you move the mouse over the paragraph above,

your browser will only display the first word from the title.

</b></p>

<h2>The href Attribute</h2>


<p>HTML links are defined with the a tag. The link address is specified in the href attribute:</p>


<a href="https://www.w3schools.com">Visit W3Schools</a>

<h2>The src Attribute</h2>

<p>HTML images are defined with the img tag, and the filename of the image source is specified in the src attribute:</p>


<img src="img_girl.jpg" width="300" height="400">

<h2>The style Attribute</h2>

<p>The style attribute is used to add styles to an element, such as color:</p>


<p style="color:red;">This is a red paragraph.</p>



</body>

</html>



96 marta ko'rildi




ozodbek Mirzaaknarov - uzbekdevs photo

ozodbek Mirzaaknarov

@ozod_dev

Telegram Post

@uzbekdevs
“uzbekdevs.uz” saytida eʼlon qilingan materiallardan nusxa koʻchirish, tarqatish va boshqa shakllarda foydalanish faqat manba ko'rsatilishi orqali amalga oshirilishi mumkin.
© UzbekDevs