Playing with Some HTML Elements

A paragraph is a block element, containing paragraphs of content. It might span multiple lines, it might not.

Now for an example including an img element:

a Linux penguin
Tux, originally drawn as a raster image by Larry Ewing in 1996 (source: Wikipedia, https://en.wikipedia.org/wiki/Tux_(mascot))

Here are some examples of special characters:

Example using pre and code elements for content representing a fragment of C++ code:


        int count = 0;

        while (count < 10)
        {
            cout << "Look: " << count << endl;
	    count++;
        }
    

Consider: This is emphasized. As compared to: This is strongly emphasized.


Additional resources mentioned during class

A well-stated rationale for writing semantic HTML can be found in Section 3.2.1 of the HTML standard.

You can read more about block and inline elements at https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements and https://developer.mozilla.org/en-US/docs/Web/HTML/Inline_elements.