HTML Attributes

HTML Attributes - Hallo friend rattan chair, In the article you read this time with the title HTML Attributes, we have prepared well for this article you read and download the information therein. hopefully fill posts Article <html>, Article attributes, Article html, Article html attributes, Article html basics, Article HTML5, Article web, Article web design, we write this you can understand. Well, happy reading.

Title : HTML Attributes
link : HTML Attributes

Also Read


HTML Attributes


HTML Syntax showing element, attribute and value
A HTML attribute can be part of a HTML element and is always followed by a value
HTML Attributes are effectively additional information for the html elements. Every attribute will also define a value to go with it. You will often use attributes in tags such as the body tag while you will rarely/never use attributes in, for example, a <br /> tag since a line break normally is a line break without any parameters to adjust.

Just as there are many different elements, so there are many different attributes. Some attributes are tailor made for one particular element while others can be used for many different elements. It also works the other way as some elements can only contain one kind of attribute while others can contain many. It may sound a bit confusing but once you get acquainted with the different attributes it is actually very logical and you will soon see how easy they are to use and how many possibilities they provide. See the example below.




The html code above will create text aligned to the right in the browser like this...

Text text text text text text.


Attributes are always written within a start tag and are followed by an equals sign and the attribute value is written between inverted commas. Tables, for example, can be made more interesting using attributes (don't worry about the table code as we will come to that soon).

For now lets focus on two attributes commonly used with tables are border and cellpadding, see the example below.



This html code will create a table in the browser like this...

Cell 1 Cell 2
Cell 3 Cell 4

Tip: Don't forget to always close the inverted commas after an attribute.

Throughout the next lessons we will learn numerous more elements and attributes but if you cant wait just click here for a full list of all HTML elements and their associated attributes.

Next Up

Learn how to create lists using HTML.




Thus articles HTML Attributes

that is all articles HTML Attributes This time, hopefully can provide benefits to all of you. Okay, see you in another article posting.

You now read the article HTML Attributes with the link address https://rattanchair2017.blogspot.com/2016/03/html-attributes.html

0 Response to "HTML Attributes"

Posting Komentar