Skip to main content

ATTRIBUTES

ATTRIBUTES TELLS US MORE ABOUT ELEMENTS

Attributes provide additional information about the contents of an element. They appear on the opening tag of the element and are made up of two parts: a name and a value, separated by an equals sign.

HTML5 allows you to use uppercase attribute names and omit the quote marks, but this is not recommended.


Attribute example 1

More about Attributes 

  1. The attribute name indicates what kind of extra information you are supplying about the element's content. It should be written in lowercase.
  2. The value is the information or setting for the attribute. It should be placed in double-quotes. Different attributes can have different values.
  3. 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.


  1. The majority of attributes can only be used on certain elements, although a few attributes (such as lang ) can appear on any element.
  2. Most attribute values are either pre-defined or follow a stipulated format. We will look at the permitted values as we introduce each new attribute.
  3. The value of the lang attribute is an abbreviated way of specifying which language is used inside the element that all browsers understand.



For more blogs related to technology you can visit Relatetechno.codes

Comments

Popular posts from this blog

Summary of Text

We are understanding about text. In text we have learnt about how to use headings , paragraphs, How to BOLD , Italic, How to Superscript and subscript and how to creat Line breaks. In sementic  Markups we study strong and emphasis, quotation,abbreviation&Acronyms , Citation and definations , Author's Address and change in content. Here i attached a page . The Code The HTML Page Thank you for coming Here . For practing this you can choose Wikipedia pages.

LINKS

 Links links are very useful for us. they allows us to move one page to another page. it will make a better experience for user. <a> Links are created with <a> tag element . Users can click Anything between the opening and closing</a> tag. We can specify which page we want to link with href attribution. Linking to Other Website <a href="https://www.wikipedia.org">Wikipedia Home</a> Linking page on  same website <a href="index.html">Home</a> Email Link <a href="mailto:sagar@sagarved.com">Email To Sagar</a> Opening Links in a New Window Target  <a href="google.com" target="_blank">Google Home</a> Linking To a Specific Part in a Same Page To achieve this we  use I'd'. For referencing  A id element we use # and followed by link . <a href="#contact">Contact</a> Linking to a Specific part on Another Page If we want to link a specific part then we r...

UNDERSTANDING STRUCTURE

We come across all kinds of documents every day of our lives. Newspapers, insurance forms, shop catalogs... the list goes on. Many web pages act like electronic versions of these documents. For example, newspapers show the same stories in print, as they do on websites; you can apply for insurance over the web; and stores have online catalogs and e-commerce facilities. In all kinds of documents, the structure is very important in helping readers to understand the messages you are trying to convey and to navigate around the document. So, in order to learn how to write web pages, it is very important to understand how to structure documents.  How HTML describes the structure of a web page Learn how tags or elements are added to your document Write your first web page For more blogs related to technology you can visit Relatetechno.codes