Header Ads Widget

Responsive Advertisement

Ticker

6/recent/ticker-posts

HTML Attributes

HTML Attributes
 All HTML elements can have attributes  
 Attributes provide additional information about elements  
 Attributes are always specified in the start tag  
 Attributes usually come in name/value pairs like: name="value"  
Our most popular attributes include:👇
 <img src=""> — Learn how to pick the image to display.  
 <img alt=""> — This sets the name of the image for those who can’t see the image for one reason or another.  
 <a target=""> – Links don’t have to fill the current page. There are other, often better, options.  
 <a href=""> — The basic link attribute sets where it will transport the user to.  
 <body background-*=""> — Learn to set a webpage’s background color, image, or more.  
 <table bordercolor=""> — Find out how to set the border color of your tables.  
 
 
 href Attribute  
 The <a> tag defines a hyperlink. The href attribute specifies the URL of the page the link goes to:  
 Example  
 <a href="https://knpoints.blogspot.com/">knpoints</a>   
 The src Attribute  
 The <img> tag is used to embed an image in an HTML page. The src attribute specifies the path to the image to be displayed:  
 Example  
 <img src="img.jpg">   
 Attribute      Options                           Function  
 align          right, left, center                Horizontally aligns tags  
 valign         top, middle, bottom                Vertically aligns tags within an HTML element.  
 bgcolor        numeric, hexidecimal, RGB values   Places a background color behind an element  
 background     URL                                Places a background image behind an element  
 id             User Defined                       Names an element for use with Cascading Style Sheets.  
 class          User Defined                       Classifies an element for use with Cascading Style Sheets.  
 width          Numeric Value                      Specifies the width of tables, images, or table cells.  
 height         Numeric Value                      Specifies the height of tables, images, or table cells.  
 title          User Defined                       "Pop-up" title of the elements.  









Post a Comment

0 Comments