Website Design: The HTML and XHTML Tutorials

Website Design: The HTML and XHTML Tutorials
This article will introduce you to some of the most widely used HTML and XHTML wizards. 01. Make things neat If you intend to write your own code, make everything neat and standard. Using the inline tab to classify the command line level makes it easier to organize the lines of code. Regardless of what people are saying, it's not necessary to discard blank spaces as this only minimizes the load time of your site. Also note that sometimes blank spaces need to be cleaned up if they render your site incorrectly displayed on some browsers. In many cases, these are the spaces around the graphic images that stand side by side 02. Use DOCTYPE What is a doctype? And why does it always appear in capital letters? We have not yet found the answer to the second question. The simplest one is, the DOCTYPE notifies a Web browser of the text format it is displaying. Be careful with this because many web browsers are presenting the same page differently depending on the doctype. Removing the doctype will most likely cause the browser to be "embarrassing", and then post a message saying that your command line has a problem even if you have tried to write the command properly and correctly. See more at http://www.alistapart.com/stories/doctype. 03. Do not do "leaking" content In addition to the DOCTYPE bug, there is another possibility that the content of your Web page will display incorrectly as you expect. Anything placed after the HTML closing tag will still be displayed but you will not be able to control its position and this will also create an error text. Similarly, content displayed on the body content must be placed in the correct body tag, not accidentally mistakenly putting it between other level tags, such as tags. head tag 04. Limit the mark "exclude" The term "exclude" here is only HTML tags marked by the W3 organization may not be used with future browsers, so there is no guarantee that these tags will work well with other browsers. For example, avoid writing BODY tags and FONT tags with their properties. Most of the formatting in the webpage can be made more efficiently through CSS. 05. Understand the XHTML rules HTML has a pretty loose syntax at some point, for example, you may not care about paragraph tagging. But that is not allowed in XHTML: all tags must be closed and attributes must be enclosed in quotes (""). Furthermore, all tags and attributes must be in lowercase. Although this can be considered rigid, it is itself an advantage of XHTML: norms and principles. 06. Avoid using frames Frames seem attractive when designing complex but complex issues that arise when they are used more and more clearly. Web pages can not be bookmarked without losing a few frames. Search engines often place low-priority frames in the results page. The advice we give is simple: do not use them. Of course, in some cases, the use of frames may be necessary, but we do not really appreciate this ... 07. Do not embed audio files You can use the bgsound tag to embed a sound clip into an (X) HTML file. Once both the site and audio file have been downloaded, the audio file will run exactly as you requested in the loop property. However, limit the use of this tag for the following reasons: First, most people use small bandwidth MIDI files to embed and the sound is bad; Secondly, there is no way for the user to turn off the monster sound (unless they mute the speaker system); And third, there are other ways you can use to attach audio files, such as QuickTime and Flash. 08. Tips on marking logic HTML is a markup language, not a presentation language. Therefore, always use the tags carefully to make the page structure logical, even if the page content is not worth mentioning.

The main heading

Body copy ... Body copy ...
  • A list item
  • Another list item
In the example above, the head of the page is shown in the h1 tag and the secondary item is placed in the h2 tag. Sections placed in paragraph tags and list items are placed in corresponding tags. Although this may seem obvious, many people use style instead of tags and tags instead of the list because they want the content page to look better. Such visual elements should be defined in CSS rather than HTML. 09. Stay away from center card Yes, that's right: one of the most common tags in the HTML language is the tag you really should not use. Instead, use the Cascading Style Sheet to put the content you want right in the middle of your page - and you can even use table cells.