473,808 Members | 2,852 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I'm confused about how to set up doctype, content, and meta tag(s)

5 New Member
So how do I know how to set up content type, meta data tags and doctype? I'm confused as to when i use each. :P
Dec 11 '09 #1
2 1442
drhowarddrfine
7,435 Recognized Expert Expert
The doctype is used on the very first line of your page and is the first thing you enter.

Meta tags are optional except for the charset which must be between the head tags.

This page should help but be careful to follow the rules for "strict" doctypes only and I recommend not using XHTML.
Dec 11 '09 #2
braidol
5 New Member
hmmm...I already have looked at the W3C chart, but I'm just unsure about what to do when I make a page....like the pages has pics and text and some links (external and internal) and some javascript and css or something between the combos...how do I know what to label ?
Dec 14 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

18
6829
by: Raymond Alexander | last post by:
I produce a couple of simple web sites on Frontpage 2002 and when attempting to validate the pages via W3C.org I get the FATAL ERROR message because the pages don't have the proper DTD's. My pages are only prefaced by <html>. My index page is a frame page and the banner, content, and main pages are vanilla FrontPage 2002. Will someone kindly enlighten me as to the proper DTD's for the these pages? The sites I work with are...
5
3485
by: Wladimir Borsov | last post by:
Assume I declare at the top of a HTML page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> This refers to english HTML content/syntax. Later then I declare: <META NAME="keywords" CONTENT=".... ... .... "> Should the keywords also be in english? or is it possible to enter words from other language (and with other language specific chars like german umlaute, french accents, spanisch question marks,...)?
40
2405
by: Harlan Messinger | last post by:
Why would anyone ever have expected a content-type META tag to be effective at all? Is it because someone was misled by the happenstance the letters of the alphabet, the digits, and the characters {< > / ; , " ' =} happen to be at the same locations in several particular common encodings (US-ASCII, ISO-8859-1, etc.)? Even assuming that these characters are always in the same locations, before it can find my META tag in the first place,...
2
1971
by: Mary Ellen Curtin | last post by:
I was reading the New York Times http://www.nytimes.com and I took a peek at the code. It's got a DOCTYPE, rather to my surprise, but my gut reaction to the scanning the code is, "I pity whoever maintains this puppy." So for giggles I asked http://validator.w3.org
0
1094
by: msnews | last post by:
Here is what I want to do: User types in a value. The value is sent as part of the url to another page and that page opens in a new window on the users machine. I'm a comfortable with vbscript and vb.net, but I can't seem to figure out which control to use and when I can write the code in the VS IDE and when I have to do it in the actual html ( which causes me all sorts of issues) here is some of the code. Whenever I try to define the...
2
2285
by: Rob Meade | last post by:
Hi all, My apologies for this post being perhaps slightly off topic, at work I am only able to access MS newsgroups and I was under to find one perhaps more appropriate. My problem..... Visual Studio defaults to having this DOCTYPE at the top of my web forms.
2
1452
by: wavedancer | last post by:
I am confused about the syntax used in the style sheet that accompanies the website I've inherited and have been asked to tidy up. XHTML is new to me, and I've only used CSS for font and link styles in the past. The style sheet includes such things as div#header. Is this correct? I thought it should be either div header or #header. I can't find any reference to this online. Also, the html references two style sheets in addition to the...
23
1686
by: Jerry | last post by:
here's what I'm using for my PHP files: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 1) Is that standard, and the only way it should be?
1
1725
by: rfr | last post by:
Apparently the Transitional Doctype kills this script because the script does not make proper use of units like "px". It works well without a doctype statement. But once someone adds a transitional doctype, the js script no longer works. Can someone familiar with javascript bring it up-to-date so that it works with current doctypes and post it here for others to make use of? The whole HTML document including the js scrip follows (...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10628
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9195
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.