HTML Tags and Attributes with examples - Code Phactory

 

HTML Tags and Attributes - Code Phactory
HTML Tags and Attributes with examples 

HTML Tags


HTML tags that tells to browser how will display content on web browser and an HTML tag is defined as the set of character which constitute command on web browser. Before rendering web content browser reads from top to bottom and left to right then it stirs forward. HTML tag composed on less than sign, character, and greater than sign we also say them left and right "angle bracket".


Let's look at Tags

<p> ---> p stands for paragraph and character  between the brackets indicate tag's purpose.

<h1> ---> h1 stands for heading which call big heading of HTML



HTML Attributes 


HTML attributes are commonly used in HTML tags which provide details to tag and provide additional information about the contents of an element that what actually we want to do in. HTML attribute are made up of: attribute name and attribute value. And after writing HTML name we have to put equal to sign and also put commas between attribute value. 


Let's look at Attributes

<p lang="en-us"> ---> where lang is attribute name and en-us is attribute value when both accomplish to utilize in attribute. Here an attribute called lang is 
used to indicate the language 
used in this element. The value 
of this attribute on this page 
specifies it is in US English.


<a href="google.com"> ---> Here href used to indicate the link in this element. The value of this attribute specific we want to go at google.




More know about HTML







Post a Comment

2 Comments