129k views
1 vote
What are the tag attributes? give example

1 Answer

2 votes

Tag attributes change the style or function of a tag.

One example is the style attribute. It allows you to change things such as the color, size, and font of a text.

A paragraph without any attributes would look like this:

<p>

Your text here...

</p>

A paragraph with attributes might look like this:

<p>

Your text here...

</p>

User Rod Burns
by
8.4k points

No related questions found