The html is based on this page Tim Berners Lee - BBC but I have shrunk it a little to be more practical for the forum.
Here is the html:
<!DOCTYPE html>
<html lang="en-GB">
<head profile="http://dublincore.org/documents/dcq-html/">
<title>
BBC - History - Tim Berners Lee
</title>
<meta content="Discover facts about Tim Berners Lee the 20th century inventor of the World Wide Web." name="description">
<meta content="history, internet, technology, world wide web, tim berners-lee, computer, scientist, cern" name="keywords">
<link href="http://purl.org/dc/terms/" rel="schema.dcterms">
<meta content="2006-09-05" name="dcterms.created">
<meta content="2011-07-05" name="dcterms.modified">
<link href="http://purl.org/dc/terms/" rel="schema.dcterms">
<link href="http://www.bbc.co.uk/a-z/" rel="index" title="A to Z">
<link href="http://www.bbc.co.uk/terms/" rel="copyright" title="Terms of Use">
<link href="http://www.bbc.co.uk/favicon.ico" rel="icon" type="image/x-icon">
<meta content="width = 974" name="viewport">
<link href="/staticarchive/c808749ad4d537416e40591def8e05c130d72722.css" rel="stylesheet" type="text/css">
<script src="http://node1.bbcimg.co.uk/glow/gloader.0.1.6.js" type="text/javascript"></script>
<script src="/staticarchive/21f604032d29edfa0a166f89bd41c95004718ed2.js" type="text/javascript"></script>
</head>
<body class="blue biography">
<div>
<div id="prg-masthead">
<p>
<a href="/history/" title="Go to the History homepage">History</a>
</p>
<div id="blq-local-nav">
<ul>
<li>
<a href="/history/ancient/" title="Go to the Ancient History section">Ancient History</a>
</li>
<li>
<a href="/history/british/" title="Go to the British History section">British History</a>
</li>
<li>
<a href="/history/worldwars/" title="Go to the World Wars section">World Wars</a>
</li>
<li class="stick">
<a href="/history/historic_figures/" title="Go to the Historic Figures section">Historic Figures</a>
</li>
<li>
<a href="/history/familyhistory/" title="Go to the Family History section">Family History</a>
</li>
<li>
<a href="/history/handsonhistory" title="Go to the Hands On History section">Hands on History</a>
</li>
<li>
<a href="/history/forkids" title="Go to the History for Kids section">History for Kids</a>
</li>
<li class="last">
<a href="/history/on_this_day/" title="Go to the On This Day section">On This Day</a>
</li>
</ul>
</div>
</div>
<div class="prg-wrapper" id="prg-wrapper-shell">
<div id="blq-content">
<div id="prg-wrapper-featured">
<!-- START MAIN CONTENT AREA -->
<div class="a_z_container">
<h1>
Tim Berners Lee (1955 - )
</h1>
<div class="a_z_content">
<p>
<span class="image_with_caption float_right" style="width:136px;"><img alt="Tim Berners Lee" height="185" src="/staticarchive/dbdaa3676c2f185821f774d3cf1ca4ea7e55bffb.jpg" width="136"> <span class="caption" style="width:126px;">Tim Berners Lee, at the Rayburn building on Capitol Hill in Washington, DC, 13 June 2001. <a href="/history/about/copyright.shtml">©</a></span></span> <em>Berners Lee is a British computer scientist who invented the World Wide Web.</em>
</p>
<p>
Timothy John Berners Lee was born on 8 June 1955 and grew up in London. He studied physics at Oxford University and became a software engineer.
</p>
<p>
In 1980, while working at CERN, the European Particle Physics Laboratory in Geneva, he first described the concept of a global system, based on the concept of 'hypertext', that would allow researchers anywhere to share information. He also built a prototype called 'Enquire'.
</p>
<p>
In 1984, Berners Lee's returned to CERN, which was also home to a major European Internet node. In 1989, Berners Lee published a paper called 'Information Management: A Proposal' in which he married up hypertext with the Internet, to create a system for sharing and distributing information not just within a company, but globally. He named it the World Wide Web.
</p>
<p>
He also created the first web browser and editor. The world's first website, http://info.cern.ch, was launched on 6 August 1991. It explained the World Wide Web concept and gave users an introduction to getting started with their own websites.
</p>
<p>
In 1994, Berners Lee founded the World Wide Web Consortium at the Laboratory of Computer Science (LCS) at the Massachusetts Institute of Technology in Boston. He has served as director of the consortium since then. He also works as a senior research scientist at LCS which has now become the Computer Science and Artificial Intelligence Laboratory.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
I have changed my syntax slightly. It is different so initially you need to spend a minute looking at how it works, but I think it is nice and simple after getting used to it. For very indented documents I think it is easier to trace what block you are working on than with tab indentations.
b()
b() represents block level element, if it has a string argument then that means the element is the child of the last element with that tag name. It can also contain a second argument, a number, which means it is a child of the nâth last element with that tag name. If it is empty then it is a sibling of the last element. To easily see what element it is a child of, just scan upwards over the tag names (b()->tagNameâŠ) to find the first or nâth that you come across. The first b() is root.
i()
i() is for inline elements. after a block level element, you can call i() to add inline elements to that block. The first i() under a block element is root. itext() is a special inline element, because it is considered not as an element but just a block of text/string, it canât have any children. Some inline elements can have children such as span. You can branch inline elements in the same way as block elements, and if you want to add an inline element to the root level you simply use i(ârootâ)->yourInlineElement⊠.
Here is my syntax representing this html:
<?php
b()->html(['lang'=>'en-GB']);
b('html')->head(['profile'=>'http://dublincore.org/documents/dcq-html/']);
b('head')->title('BBC - History - Tim Berners Lee');
b()->meta(['content'=>'Discover facts about Tim Berners Lee the 20th century inventor of the World Wide Web.','name'=>'description']);
b()->meta(['content'=>'history, internet, technology, world wide web, tim berners-lee, computer, scientist, cern'],'name'=>'keywords');
b()->link(['href'=>'http://purl.org/dc/terms/','rel'=>'schema.dcterms']);
b()->meta(['content'=>'2006-09-05','name'=>'dcterms.created']);
b()->meta(['content'=>'2011-07-05','name'=>'dcterms.modified']);
b()->link(['href'=>'http://purl.org/dc/terms/','rel'=>'schema.dcterms']);
b()->link(['href'=>'http://www.bbc.co.uk/a-z/','rel'=>'index','title'=>'A to Z']);
b()->link(['href'=>'http://www.bbc.co.uk/terms/','rel'=>'copyright','title'=>'Terms of Use']);
b()->link(['href'=>'http://www.bbc.co.uk/favicon.ico','rel'=>'icon','type'=>'image/x-icon']);
b()->meta(['content'=>'width = 974','name'=>'viewport']);
b()->link(['href'=>'/staticarchive/c808749ad4d537416e40591def8e05c130d72722.css','rel'=>'stylesheet','type'=>'text/css']);
b()->script(['src'=>'http://node1.bbcimg.co.uk/glow/gloader.0.1.6.js','type'=>'text/javascript']);
b()->script(['src'=>'/staticarchive/21f604032d29edfa0a166f89bd41c95004718ed2.js','type'=>'text/javascript']);
b('html')->body(['class'=>'blue biography']);
b('body')->div();
b('div')->div(['class'=>'blue biography']);
b('div')->p();
b('p')->a('History', ['href'=>'/history/','title'=>'Go to the History homepage']);
b('div')->div(['id'=>'blq-local-nav']);
b('div')->ul();
b('ul')->li();
b('li')->a('Ancient History',['href'=>'/history/ancient/', 'title'=>'Go to the Ancient History section']);
b('ul')->li();
b('li')->a('British History', ['href'=>'/history/british/', 'title'=>'Go to the British History section']);
b('ul')->li();
b('li')->a('World Wars', ['href'=>'/history/worldwars/', 'title'=>'Go to the World Wars section']);
b('ul')->li(['class'=>'stick']);
b('li')->a('Historic Figures', ['href'=>'/history/historic_figures/', 'title'=>'Go to the Historic Figures section']);
b('ul')->li();
b('li')->a('Family History', ['href'=>'/history/familyhistory/', 'title'=>'Go to the Family History section']);
b('ul')->li();
b('li')->a('Hands on History', ['href'=>'/history/handsonhistory', 'title'=>'Go to the Hands On History section']);
b('ul')->li();
b('li')->a('History for Kids', ['ref'=>'/history/forkids', 'title'=>'Go to the History for Kids section']);
b('ul')->li(['class'=>'last']);
b('li')->a('On This Day', ['href'=>'/history/on_this_day/', 'title'=>'Go to the On This Day section']);
b('body')->div(['class'=>'prg-wrapper', 'id'=>'prg-wrapper-shell']);
b('div')->div(['id'=>'blq-content']);
b('div')->div(['id'=>'prg-wrapper-featured']);
b('div')->div(['class'=>'a_z_container']);
b('div')->h1('Tim Berners Lee (1955 - )');
b()->div(['class'=>'a_z_content']);
b('div')->p();
i()->span(['class'=>'image_with_caption float_right', 'style'=>'width:136px;']);
i('span')->img(['alt'=>'Tim Berners Lee', 'height'=>'185', 'src'=>'/staticarchive/dbdaa3676c2f185821f774d3cf1ca4ea7e55bffb.jpg' 'width'=>'136']);
i()->span('Tim Berners Lee, at the Rayburn building on Capitol Hill in Washington, DC, 13 June 2001.', ['class'=>'caption', 'style'=>'width:126px;']);
i('span')->a('©',['href'=>'/history/about/copyright.shtml']);
i('root')->em('Berners Lee is a British computer scientist who invented the World Wide Web.');
b()->p('Timothy John Berners Lee was born on 8 June 1955 and grew up in London. He studied physics at Oxford University and became a software engineer.');
b()->p('In 1980, while working at CERN, the European Particle Physics Laboratory in Geneva, he first described the concept of a global system, based on the concept of \'hypertext\', that would allow researchers anywhere to share information. He also built a prototype called \'Enquire\'.');
b()->p('In 1984, Berners Lee\'s returned to CERN, which was also home to a major European Internet node. In 1989, Berners Lee published a paper called \'Information Management: A Proposal\' in which he married up hypertext with the Internet, to create a system for sharing and distributing information not just within a company, but globally. He named it the World Wide Web.');
b()->p('He also created the first web browser and editor. The world\'s first website, http://info.cern.ch, was launched on 6 August 1991. It explained the World Wide Web concept and gave users an introduction to getting started with their own websites.');
b()->p('In 1994, Berners Lee founded the World Wide Web Consortium at the Laboratory of Computer Science (LCS) at the Massachusetts Institute of Technology in Boston. He has served as director of the consortium since then. He also works as a senior research scientist at LCS which has now become the Computer Science and Artificial Intelligence Laboratory.');
?>
Here is @megazoidâs syntax representing the html:
<?php
$t->html(['lang'=>'en-GB'], [
$t->head([
['profile'=>'http://dublincore.org/documents/dcq-html/'],
$t->title('BBC - History - Tim Berners Lee'),
$t->meta(['content'=>'Discover facts about Tim Berners Lee the 20th century inventor of the World Wide Web.','name'=>'description']),
$t->meta(['content'=>'history, internet, technology, world wide web, tim berners-lee, computer, scientist, cern'],'name'=>'keywords'),
$t->link(['href'=>'http://purl.org/dc/terms/','rel'=>'schema.dcterms']),
$t->meta(['content'=>'2006-09-05','name'=>'dcterms.created']),
$t->meta(['content'=>'2011-07-05','name'=>'dcterms.modified']),
$t->link(['href'=>'http://purl.org/dc/terms/','rel'=>'schema.dcterms']),
$t->link(['href'=>'http://www.bbc.co.uk/a-z/','rel'=>'index','title'=>'A to Z']),
$t->link(['href'=>'http://www.bbc.co.uk/terms/','rel'=>'copyright','title'=>'Terms of Use']),
$t->link(['href'=>'http://www.bbc.co.uk/favicon.ico','rel'=>'icon','type'=>'image/x-icon']),
$t->meta(['content'=>'width = 974','name'=>'viewport']),
$t->link(['href'=>'/staticarchive/c808749ad4d537416e40591def8e05c130d72722.css','rel'=>'stylesheet','type'=>'text/css']),
$t->script(['src'=>'http://node1.bbcimg.co.uk/glow/gloader.0.1.6.js','type'=>'text/javascript']),
$t->script(['src'=>'/staticarchive/21f604032d29edfa0a166f89bd41c95004718ed2.js','type'=>'text/javascript'])
]),
$t->body(['class'=>'blue biography'],
[$t->div([
$t->div([
['class'=>'blue biography'],
$t->p(
$t->a('History', ['href'=>'/history/','title'=>'Go to the History homepage'])
),
$t->div([
['id'=>'blq-local-nav'],
$t->ul([
$t->li(
$t->a([
'Ancient History',
['href'=>'/history/ancient/', 'title'=>'Go to the Ancient History section']
])
),
$t->li(
$t->a([
'British History',
['href'=>'/history/british/', 'title'=>'Go to the British History section']
])
),
$t->li();
$t->a([
'World Wars',
['href'=>'/history/worldwars/', 'title'=>'Go to the World Wars section']
])
),
$t->li([
['class'=>'stick'],
$t->a([
'Historic Figures',
['href'=>'/history/historic_figures/', 'title'=>'Go to the Historic Figures section']
])
]),
$t->li(
$t->a([
'Family History',
['href'=>'/history/familyhistory/', 'title'=>'Go to the Family History section']
])
),
$t->li(
$t->a([
'Hands on History',
['href'=>'/history/handsonhistory', 'title'=>'Go to the Hands On History section']
])
),
$t->li(
$t->a([
'History for Kids',
['ref'=>'/history/forkids', 'title'=>'Go to the History for Kids section']
])
),
$t->li([
['class'=>'last'],
$t->a([
'On This Day',
['href'=>'/history/on_this_day/', 'title'=>'Go to the On This Day section']
])
])
])
])
])
],
[$t->div([
'class'=>'prg-wrapper', 'id'=>'prg-wrapper-shell']
$t->div([
['id'=>'blq-content'],
$t->div([
['id'=>'prg-wrapper-featured'],
$t->div([
['class'=>'a_z_container'],
$t->h1('Tim Berners Lee (1955 - )'),
$t->div([
['class'=>'a_z_content'],
$t->p([
$t->span([
['class'=>'image_with_caption float_right', 'style'=>'width:136px;'],
$t->img(['alt'=>'Tim Berners Lee', 'height'=>'185', 'src'=>'/staticarchive/dbdaa3676c2f185821f774d3cf1ca4ea7e55bffb.jpg' 'width'=>'136']),
$t->span([
'Tim Berners Lee, at the Rayburn building on Capitol Hill in Washington, DC, 13 June 2001.',
['class'=>'caption', 'style'=>'width:126px;'],
$t->a([
'©',
['href'=>'/history/about/copyright.shtml']
])
])
]),
$t->em('Berners Lee is a British computer scientist who invented the World Wide Web.')
]),
$t->p('Timothy John Berners Lee was born on 8 June 1955 and grew up in London. He studied physics at Oxford University and became a software engineer.'),
$t->p('In 1980, while working at CERN, the European Particle Physics Laboratory in Geneva, he first described the concept of a global system, based on the concept of \'hypertext\', that would allow researchers anywhere to share information. He also built a prototype called \'Enquire\'.'),
$t->p('In 1984, Berners Lee\'s returned to CERN, which was also home to a major European Internet node. In 1989, Berners Lee published a paper called \'Information Management: A Proposal\' in which he married up hypertext with the Internet, to create a system for sharing and distributing information not just within a company, but globally. He named it the World Wide Web.'),
$t->p('He also created the first web browser and editor. The world\'s first website, http://info.cern.ch, was launched on 6 August 1991. It explained the World Wide Web concept and gave users an introduction to getting started with their own websites.'),
$t->p('In 1994, Berners Lee founded the World Wide Web Consortium at the Laboratory of Computer Science (LCS) at the Massachusetts Institute of Technology in Boston. He has served as director of the consortium since then. He also works as a senior research scientist at LCS which has now become the Computer Science and Artificial Intelligence Laboratory.')
])
])
])
])
])
])
]);
?>