HTML elements and attributes are the building blocks of a web page. Elements are a set of tags and attributes apply properties to tags.
You have already seen HTML elements in this tutorial. An element is created using an opening and closing HTML tag. An opening and closing tag with content inside is called an element.
<strong>This text will be bold.</strong>
HTML Attributes are used to give properties to HTML Tags. Attributes are placed inside of opening HTML Tags. Below is an example of an attribute.
<strong style="color:red">This text will be bold and red.</strong>
In the above example we've used the <strong> tag and gave it the style attribute. This attribute sets a CSS style to any content inside of the span tag.
This website and it's tutorials are only made possible with your support. Support money goes towards keeping our servers online.
Spread the word! Let people know about our tutorials by placing links on blogs, websites, forums and other places.
Copyright 2019 Step By Step HTML. All Rights reserved.