Top Ads

Html Use Attribute

LANG ATTRIBUTE

The language of the document can be declared in the <html> tag.
The language is declared with the lang attribute.
Declaring a language is important for accessibility applications (screen readers) and search engines

Code

<!DOCTYPE html>
<html lang="en-US">
<body>
...
...
...
</body>
</html>

Title Attribute

title attribute is added to the <p> element. The value of the title attribute will be displayed as a tooltip when you mouse over the paragraph

Code

<p title="I'm a tooltip">
This is a paragraph.
</p>


HREF ATTRIBUTE

HTML links are defined with the <a> tag. The link address is specified in the href attribute

Code

<a href="http://www.webtech100.blogspot.com">This is a link</a>

SIZE ATTRIBUTES

The filename of the source (src), and the size of the image (width and height) are all provided as attributes

Code

<img src="webtech100.jpg" width="500" height="230">

ALT ATTRIBUTE

The alt attribute specifies an alternative text to be used, when an image cannot be displayed

Code

<a href="http://www.webtech100.blogspot.com" alt="webtech100.blogspot.comwidth="500" height="230">

Related Posts:

  • Save and Open the HTML Page Save the file on your computer. Select File > Save as in the Notepad++ menu. Name the file "Simple.html" and  You can use… Read More
  • Html Tag Explained EXPLAINED TAG : The start tag is also called the opening tag, and the end tag the closing tag. The <!DOCTYPE html> decl… Read More
  • Write HTML Using Notepad or Notepad++ Follow the four steps below to create your first web page with Notepad or Notepad++. Step 1: Open Notepad or Notepad++ Open Notepad or No… Read More
  • WHAT IS HTML? HTML IS A MARKUP LANGUAGE FOR DESCRIBING WEB DOCUMENTS(WEBPAGES).    1. HTML STANDS FOR HYPER TEXT MA… Read More
  • HTML Versions & Structure Since the early days of the web, there have been many versions of HTML: HTML PAGE STRUCTURE Below is a visualization of an HTML page structure: … Read More