Stories
Slash Boxes
Comments

Dev.SN ♥ developers

posted by martyb on Monday February 18 2019, @02:00PM   Printer-friendly
from the Is-this-thing-on? dept.

This is the line from the submit comment page:

<b|i|p|br|a|ol|ul|li|dl|dt|dd|em|strong|tt|blockquote|div|ecode|quote|sup|sub|abbr|sarc|sarcasm|user|spoiler|del|strike>

Comment with examples of each of these tags in use.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 1) by martyb on Monday February 18 2019, @02:17PM

    by martyb (76) on Monday February 18 2019, @02:17PM (#31547) Journal

    The bold and italic tags are used to make text appear in different typefaces.

    Here is an example of what happens when you use them alone and when they are nested:

    <p>This text is <b>bold</b>.</p>
    <p>This is in <i>italics</i>.</p>
    <p>This has <b>bold text containing <i>italic</i> text</b>.</p>
    <p>This has <i>italic text containing <b>bold</b> text</i>.</p>

    would be rendered as:

    This text is bold.

    This is in italics.

    This has bold text containing italic text.

    This has italic text containing bold text.