2014-01-24, 08:52 PM
(This post was last modified: 2014-01-24, 09:00 PM by SunDi3yansyah.)
Before you understand first what is HTML5 and other functions can be understood in Semantics - Dive Into HTML5
http://diveintohtml5.info/semantics.html http://diveinto.html5doctor.com/
I will explain in part
HTML5 was written with this type of document such as
While HTML 4
We can see a way to open our website by pressing CTRL + U
For its part the HTML tags that are usually like this
HTML5
HTML4
read more here http://diveintohtml5.info/semantics.html http://diveinto.html5doctor.com/
Points of Tutorial
Open ./inc/functions.php
Find
Replace
Then
Find
Replace
For
Open
ACP > Templates & Style > Templates > Templates (using) > Ungrouped Templates > htmldoctype
Replace
It can use or not is all up to you, This is the element type javascript
replace all
be
change
be
if you are going to make a pretty write javascript like this
please if there is an error please to be justified
sorry if my english is not good
http://diveintohtml5.info/semantics.html http://diveinto.html5doctor.com/
I will explain in part
HTML5 was written with this type of document such as
<!DOCTYPE html>
While HTML 4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
We can see a way to open our website by pressing CTRL + U
view-source:http://community.mybb.com/
http://community.mybb.com/ you can replace with your MyBBFor its part the HTML tags that are usually like this
HTML5
<html lang="en" xml:lang="en">
HTML4
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
read more here http://diveintohtml5.info/semantics.html http://diveinto.html5doctor.com/
Points of Tutorial
Open ./inc/functions.php
Find
$contents = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n".$contents;
Replace
$contents = "<!DOCTYPE html>\n".$contents;
Then
Find
$contents = str_replace("<html", "<html xmlns=\"http://www.w3.org/1999/xhtml\"", $contents);
Replace
$contents = str_replace("<html", "<html", $contents);
For
xmlns="http://www.w3.org/1999/xhtml"
it is not necessary in HTML5Open
ACP > Templates & Style > Templates > Templates (using) > Ungrouped Templates > htmldoctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Replace
<!DOCTYPE html>
It can use or not is all up to you, This is the element type javascript
replace all
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/name_javascript.js"></script>
be
<script src="{$mybb->settings['bburl']}/jscripts/name_javascript.js"></script>
change
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
be
<meta charset="{$charset}">
if you are going to make a pretty write javascript like this
<script> ... </script>
if you are going to make a pretty write CSS like this<style> ... </style>
please if there is an error please to be justified
sorry if my english is not good