Lesson 5: HTML5 Modified and Removed elements

html5-tutorial

This tutorial will be beneficial for you, if you had a basic experience with HTML4, and if you don’t know about HTML4 you can skip it and move on to the next tutorial.

HTML5 Modified and Removed elements is an important lesson you must focus on, where you can learn about the difference between earlier version of HTML and HTML5.

Following tutorial will discuss all modified and removed elements in HTML5 as compare with the old version HTML4 of the mark up language.

HTML5 Beginners

HTML5 Beginners

Modified

  • <a>

In HTML5 the <a> tag (anchor tag), which represents a hyperlink allows multiple elements to be wrapped in a single <a> tag. Also you can use TARGET attribute to open the link on new page. You can also link image by using this <a> tag.

<a href=”html5beginners.com“>

<h1>Html5 Tutorial</h1>

<p>Welcome to HTML5 Modified and Removed elements </p>

</a>

  • <b>

In HTMl5 the <b> tag is used to markup text as bold without conveying any extra importance, <b> tag is basically meant for specifying bold text. Apart from that we can also use the CSS as ‘font-weight’ property to set text as bold text.

For example: key words in a text, product name, etc.

  • <hr>

In HTML5, the <hr> tag displays a horizontal rule, and defines a change in the content. Meant for declaring a paragraph-level thematic break in a web page. In previous versions of html it was used mainly for presentational purposes (Horizontal rule).

  • <i>

In HTML5 the <i> tag is now used for a span of text, usually an offset from the normal text, ex: technical terms, phrase, foreign words, etc. to style the text in italics you can also use CSS ‘font-style’ property.

NOTE: It is recommended wherever possible instead of using the i element to use for instance the em element for marking up stress emphasis, or the dfn element to mark up the defining instance of a term!

Removed Elements.

  • <frame>
  • <frameset>
  • <center>
  • <noframes>
  • <font>
  • <strike>
  • <dir>
  • <basefont>
  • <big>
  • <tt>
  • The <s> and <strike> elements were used to define strike through text. In HTML5 you should use <del> instead
  • <acronym> *
  • <applet> The <applet> was used to define an embedded applet. In HTML5 you should use of the <object> tag instead

You Might Also Like

One comment

  1. 1

Comments are closed.