Difference between revisions of "Template:Code/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Matt Fitzpatrick
(span test)
imported>Matt Fitzpatrick
(id test)
Line 5: Line 5:
 
<small>[[Template:Code]]</small>
 
<small>[[Template:Code]]</small>
  
{{code|lang=html|style=font-size:120%;|
+
{{code|lang=html|id=html-summary|style=font-size:120%;|
 
<html> <head> <title>...</title> </head> <body>...</body> </html>
 
<html> <head> <title>...</title> </head> <body>...</body> </html>
 
}}
 
}}
Line 16: Line 16:
 
<small>[[Template:Code/sandbox]]</small>
 
<small>[[Template:Code/sandbox]]</small>
  
{{code/sandbox|lang=html|style=font-size:120%;|
+
{{code/sandbox|lang=html|id=html-summary|style=font-size:120%;|
 
<html> <head> <title>...</title> </head> <body>...</body> </html>
 
<html> <head> <title>...</title> </head> <body>...</body> </html>
 
}}
 
}}

Revision as of 00:32, 7 April 2016

Live version

Template:Code

<html> <head> <title>...</title> </head> <body>...</body> </html>

Most HTML elements are enclosed between a start tag and an end tag, such as <p>...</p>. Some are not, such as <br>.

Sandbox version

Template:Code/sandbox

<html> <head> <title>...</title> </head> <body>...</body> </html>

Most HTML elements are enclosed between a start tag and an end tag, such as <p>...</p>. Some are not, such as <br>.

Testing sandbox version

Fontsize in FF:

Plain
  • Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
{{code}}
  • Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<code>...</code>
  • Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
syntaxhighlight
  • Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
source
  • Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
font-family:monospace; only
  • Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.