menu

HTML Entities

Some characters are reserved in HTML. If you use those reserved character or sign in your HTML text, the browser might mix them with tags name.

Many mathematical, technical, and currency symbols, are not present on a normal keyboard. To add such symbols to an HTML page, you can use the HTML entities.

Entity names or entity numbers can be used to display reserved HTML characters and symbols .

Syntex of entity name: &entity_name;

Syntex of entity number: &#entity_number;

Note: Entity names are case sensitive.

Example:

HTML5: Semantic Tags

Semantic tags means the tag name which derives a meaning.

A semantic tag clearly describes its meaning to both the browser and the developer.

Semantic tags are block level elements. They stretches up to the 100% width of the browser.

In HTML4 we have seen <div> and <span> tags, which are non-semantic elements. They don't tell anything about its content.

But, In HTML5 we have semantic tags like <header>, <nav>,<main>, <article>, <aside>, <footer> etc.

<header>: The <header> tag can be use to create a container which contains main heading, logo,icon and introductory content of your web page.

<nav>: The <nav> tag can be use to create container for navigation links and menus.

<main>: The <main> tag is used to create a main container for other tags.

<article>: The <article> can be use to create container for main content of your web page.

<aside>: The <aside> tag can be use to create container which contains the information related to your web page or some advertisement etc.

<footer>: The <footer> tag can be use to create a container which contains authorship information, trade mark, copyright information etc.

img not found