\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{Yur375} \pdfinfo{ /Title (html.pdf) /Creator (Cheatography) /Author (Yur375) /Subject (HTML Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{00A388} \definecolor{LightBackground}{HTML}{EFF9F7} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{HTML Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Yur375} via \textcolor{DarkBackground}{\uline{cheatography.com/69556/cs/17748/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}Yur375 \\ \uline{cheatography.com/yur375} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 3rd November, 2018.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Basic}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{HTML {\bf{Document}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}!DOCTYPE html\textgreater{}\{\{nl\}\}\textless{}html lang="en-US"\textgreater{}\{\{nl\}\}~~\textless{}body\textgreater{}\{\{nl\}\}~~\textless{}/body\textgreater{}\{\{nl\}\}\textless{}/html\textgreater{}`} \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Headings}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}h1\textgreater{}This is heading 1\textless{}/h1\textgreater{}`\{\{nl\}\}Headers: h1-h6} \tn % Row Count 7 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Paragraph}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}p\textgreater{}This is a paragraph.\textless{}/p\textgreater{}`} \tn % Row Count 9 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Horizontal Line (thematic change)}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}hr\textgreater{}`} \tn % Row Count 11 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Button}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}button\textgreater{}Click me\textless{}/button\textgreater{}`} \tn % Row Count 13 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Line Break}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}br\textgreater{}`} \tn % Row Count 15 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Preformatted text}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}pre\textgreater{}Preformatted text\textless{}/pre\textgreater{}`} \tn % Row Count 17 (+ 2) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Short Quotation}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}q\textgreater{}Short Quote\textless{}/q\textgreater{}`} \tn % Row Count 19 (+ 2) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Quotation}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}blockquote cite="URL"\textgreater{}\{\{nl\}\}~~Text of quote\{\{nl\}\}\textless{}/blockquote\textgreater{}`} \tn % Row Count 22 (+ 3) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Abbreviation/acronym}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}abbr title="World Health Organization"\textgreater{}WHO\textless{}/abbr\textgreater{}`} \tn % Row Count 25 (+ 3) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Contact Information}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}address\textgreater{}contact information\textless{}/address\textgreater{}`} \tn % Row Count 27 (+ 2) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Work Title}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}cite\textgreater{}The Scream\textless{}/cite\textgreater{}`} \tn % Row Count 29 (+ 2) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Bi-Directional Override}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}bdo dir="rtl"\textgreater{}This text will be written from right to left\textless{}/bdo\textgreater{}`} \tn % Row Count 32 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Basic (cont)}} \tn % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Comment}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}!-{}- This is a comment -{}-\textgreater{}`} \tn % Row Count 2 (+ 2) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\emph{*}}*} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}``} \tn % Row Count 4 (+ 2) % Row 15 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{*}}*} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}``} \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.14471 cm} x{3.83229 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Attributes}} \tn % Row 0 \SetRowColor{LightBackground} Class & `class="class-name"` \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ID & `id="id of element"` \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Tooltip & `title="I'm a tooltip"` \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Styles}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Inline Styles}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}tagname style="property:value;"\textgreater{}`} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Internal CSS}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}style\textgreater{}\{\{nl\}\}~~selector \{property:value;\}\{\{nl\}\}\textless{}/style\textgreater{}`} \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{External CSS}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}link rel="stylesheet" href="file.css"\textgreater{}`} \tn % Row Count 7 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Links}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Link}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}a href="url"\textgreater{}Link\textless{}/a\textgreater{}`} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Target Attribute}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\_blank - new window/tab\{\{nl\}\} \_self - same tab (default)\{\{nl\}\} \_parent - parent frame\{\{nl\}\} \_top - full body of the window\{\{nl\}\} framename - named frame\{\{nl\}\}`} \tn % Row Count 7 (+ 5) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Image as Link}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}a href="url"\textgreater{}\textless{}img src="img.gif"\textgreater{}\textless{}/a\textgreater{}`} \tn % Row Count 9 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Link Title}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`title="Go to W3Schools HTML section"`} \tn % Row Count 11 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Bookmark Link}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}a href="\#C4"\textgreater{}Jump to Chapter 4\textless{}/a\textgreater{}\{\{nl\}\}\textless{}h2 id="C4"\textgreater{}Chapter 4\textless{}/h2\textgreater{}`} \tn % Row Count 14 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Image}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Image}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}img src="logo.jpg" alt="Logo" width="104" height="142"\textgreater{}`} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Image Map}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}img src="workplace.jpg" alt="Workplace" usemap="\#workmap"\textgreater{}\{\{nl\}\} \{\{nl\}\} \textless{}map name="workmap"\textgreater{}\{\{nl\}\} ~~\textless{}area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm"\textgreater{}\{\{nl\}\} ~~\textless{}area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm"\textgreater{}\{\{nl\}\} ~~\textless{}area shape="circle" coords="337,300,44" alt="Coffee" href="coffee.htm"\textgreater{}\{\{nl\}\} \textless{}/map\textgreater{}`} \tn % Row Count 13 (+ 10) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{\textless{}picture\textgreater{} Element}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}picture\textgreater{}\{\{nl\}\} ~~\textless{}source media="(min-width: 650px)" \seqsplit{srcset="img\_pink\_flowers}.jpg"\textgreater{}\{\{nl\}\} ~~\textless{}source media="(min-width: 465px)" \seqsplit{srcset="img\_white\_flower}.jpg"\textgreater{}\{\{nl\}\} ~~\textless{}img \seqsplit{src="img\_orange\_flowers}.jpg" alt="Flowers" style="width:auto;"\textgreater{}\{\{nl\}\} \textless{}/picture\textgreater{}`\{\{nl\}\}The browser will use the first \textless{}source\textgreater{} element with matching attribute values, and ignore any following \textless{}source\textgreater{} elements.} \tn % Row Count 23 (+ 10) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.4931 cm} x{3.4839 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Text Formatting}} \tn % Row 0 \SetRowColor{LightBackground} `\textless{}b\textgreater{}` & bold text \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} `\textless{}em\textgreater{}` & emphasized text \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} `\textless{}i\textgreater{}` & italic text \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} `\textless{}small\textgreater{}` & smaller text \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} `\textless{}strong\textgreater{}` & important text \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} `\textless{}sub\textgreater{}` & subscripted text \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} `\textless{}sup\textgreater{}` & superscripted text \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} `\textless{}ins\textgreater{}` & inserted text \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} `\textless{}del\textgreater{}` & deleted text \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} `\textless{}mark\textgreater{}` & marked/highlighted text \tn % Row Count 10 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Tables}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Table}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}table\textgreater{}\{\{nl\}\}~~ \textless{}tr\textgreater{}\{\{nl\}\}~~~~ \textless{}th\textgreater{}Table Heading Cell\textless{}/th\textgreater{}\{\{nl\}\}~~~~ \textless{}th\textgreater{}Table Heading Cell\textless{}/th\textgreater{} \{\{nl\}\}~~ \textless{}/tr\textgreater{}\{\{nl\}\}~~ \textless{}tr\textgreater{}\{\{nl\}\}~~~~ \textless{}td\textgreater{}Table Cell\textless{}/td\textgreater{}\{\{nl\}\}~~~~ \textless{}td\textgreater{}Table Cell\textless{}/td\textgreater{}\{\{nl\}\}~~ \textless{}/tr\textgreater{}\{\{nl\}\} \textless{}/table\textgreater{}`} \tn % Row Count 9 (+ 9) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Cells that Span Many Columns}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}td {\bf{colspan="2"}}\textgreater{}Two columns cell\textless{}/td\textgreater{}`} \tn % Row Count 11 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Cells that Span Many Rows}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}td {\bf{rowspan="2"}}\textgreater{}Two rows cell\textless{}/td\textgreater{}`} \tn % Row Count 13 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Table Caption}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}caption\textgreater{}Table Header\textless{}/caption\textgreater{}` - must be first element of `\textless{}table\textgreater{}` tag} \tn % Row Count 16 (+ 3) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Grouping elements}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}colgroup\textgreater{}` - Specifies a group of one or more columns in a table for formatting\{\{nl\}\} `\textless{}thead\textgreater{}` - header content in a table\{\{nl\}\} `\textless{}tbody\textgreater{}` - Groups the body content in a table\{\{nl\}\} `\textless{}tfoot\textgreater{}` - Groups the footer content in a table`} \tn % Row Count 22 (+ 6) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Lists}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Unordered/Bulled}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}ul\textgreater{}\{\{nl\}\}~~\textless{}li\textgreater{}Coffee\textless{}/li\textgreater{}\{\{nl\}\}~~\textless{}li\textgreater{}Tea\textless{}/li\textgreater{}\{\{nl\}\}~~\textless{}li\textgreater{}Milk\textless{}/li\textgreater{}\{\{nl\}\}\textless{}/ul\textgreater{}`} \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Ordered}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}ol\textgreater{}\{\{nl\}\}~~\textless{}li\textgreater{}Coffee\textless{}/li\textgreater{}\{\{nl\}\}~~\textless{}li\textgreater{}Tea\textless{}/li\textgreater{}\{\{nl\}\}~~\textless{}li\textgreater{}Milk\textless{}/li\textgreater{}\{\{nl\}\}\textless{}/ol\textgreater{}`\{\{nl\}\}Attributes:\{\{nl\}\}`type="1"` - numbers (default)\{\{nl\}\} `type="A"` - uppercase letters\{\{nl\}\} `type="a"` - lowercase letters\{\{nl\}\} `type="I"` - uppercase roman numbers\{\{nl\}\} `type="i"` - lowercase roman numbers\{\{nl\}\}Start number: `start="begin\_number"`} \tn % Row Count 13 (+ 9) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Description List}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\textless{}dl\textgreater{}\{\{nl\}\}~~\textless{}dt\textgreater{}Coffee\textless{}/dt\textgreater{}\{\{nl\}\}~~\textless{}dd\textgreater{}- black hot drink\textless{}/dd\textgreater{}\{\{nl\}\}~~\textless{}dt\textgreater{}Milk\textless{}/dt\textgreater{}\{\{nl\}\}~~\textless{}dd\textgreater{}- white cold drink\textless{}/dd\textgreater{}\{\{nl\}\}\textless{}/dl\textgreater{}`} \tn % Row Count 18 (+ 5) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Nested List}}} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\textless{}ul\textgreater{}/\textless{}ol\textgreater{} inside \textless{}li\textgreater{}} \tn % Row Count 20 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}