7 Code / Pre

Oh no! I wrote something incorrectly. I’d better delete it, using the <del> tag. I could alternately strike something out using the <strike> tag, or strike something out using the <s> tag. So many choices, which I emphasize using the <em> tag. Just to clarify, this is some inserted text, that I’ll highlight using the <ins> tag.

Need to display completely unformatted text, such as a large block of code? Use the <pre> tag, which lets you display:

#container {
   float: left;
   margin: 0 -240px 0 0;
   width: 100%;
}

Want to quote the WordPress tagline Code is Poetry? Use the <q> tag to add quotes around it. This is strong text (otherwise known as bold), using the <strong> tag.

License

Icon for the Creative Commons Attribution 4.0 International License

Integration Tests Copyright © by is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book