10.What is attribute minimization? Give an example.
Attribute minimization is the practice of writing only the attribute's name without
specifying a value. this sets the attribute to its default value and is forbidden
in XHTML documents.
Here is an example:
<input type="checkbox" name="checkbox" id="checkbox" value="True" checked />
Here is the corrected version:
<input type="checkbox" name="checkbox" id="checkbox" value="True" checked="checked" />
11.Describe the meaning of the following lines. This might take some Internet Searching.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" >
-The first line is an XML declaration. This declaration is required when the character
character encoding is other than the default UTF-8 or UTF-16 and no encoding was
determined by a higher-level protocol.
-The next line (2 lines in this formatting) is a DOCTYPE declaration which must reference
one of the three DTDs (Document Type Definition) using the respective Formal Public
Identifier which is Transitional in this case.
-The last line is the rot element of the document and must ontain an xmlns delcaration
for the XHTML namespace which is defined to be [www.w3.org