1.

Demonstrate the use of Text Modifiers – strong and em Tags

Answer»

The Strong and em tags are new semantic inline elements  to specify the RELATIVE importance of their content. Search engines use <em> and <strong> to rank content.

<em> was EMPHASIS and is now for stress emphasis, such as something pronounce differently.  The “stress” being referred to is linguistic; if spoken it would be emphasized pronunciation on a word that can change the nuance of a sentence.

For example "Call a doctor now!" stresses doctor, perhaps in reply to someone asking "She looks thirsty, should I call a homoeopath?" In comparison, "Call a doctor now!"  changes the emphasis on doing so quickly.

<strong> was for stronger emphasis and is now for strong importance for its content. Strong INDICATE relative importance by  NESTING <strong> elements

Example 

<!DOCTYPE html> <html>     <head>           <META charset ="UTF-8">           <title>Text Modifiers</title>     </head>     <body>           The <strong>strong tag</strong> will render bold text.           <br>           The <em>em tag</em> will render italic text.     <body> </html>

Output



Discussion

No Comment Found