Profile
  Home  >  Notice
 
Examples
publish date: 2016-11-14

The following very simple example of a portion of an HTML document illustrates how to create a link within a paragraph. When rendered on the screen (or by a speech synthesizer), the link text will be “final report”; following the link will cause the browser to retrieve the resource identified by “http://www.example.com/report”:

    <p class="moreinfo">For more information see the 
    <a href="http://www.example.com/report">final report</a>.</p>
  

The class attribute on the paragraph’s start tag (“<p>”) can be used to add style to all such paragraphs that have that attribute value. For instance, to italicize the text of all “moreinfo” paragraphs using CSS, one could write:

    p.moreinfo { 
appendage :