I need a little help. I try to do what I’m told but I can’t understand my mistake. Please help!!!
What is it you are told to do? What error message are you being given? Please help us out by posting a link to the exercise page that is giving you trouble. Thanks.
I had to type in my name, I did that but I don’t understand what is wrong
Did it look something like this?
Notice that there is no punctuation since HTML is raw text.
it looked more like:
That might be the problem. It does not come close to the simple instructions. Do you really want to learn, or just fool around?
This is a recognized top level heading element. The name,
h1 is in the specifications and takes on default styles and semantic meaning that is also recognized for its importance in a document by search engines and other user agents.
We can name HTML elements anything we choose, but if we do not give them any definition they are meaningless. HTML is not meaningless. In fact the primary role of markup language is lend meaning to the document, by way of structure and organization.
Now if the instruction is to type your name between the already provided H1 tags, then that is what you need to do to avoid any problems.
Leave the tags alone, and change only the inner text.
Thanks for clearing information, but I have another question. So whenever I use HTML I will always have to use h1, and nothing else.
Pour yourself into HTML, and don’t be in a hurry to jump to the bleeding edge. Rather, focus on the core elements and document structure, namely, outline. Study the rudiments and the W3C recommendations to understand why things are the way they are.
Use validator.w3.org religiously so you learn how to construct well formed documents. Miss out on this skill and you miss out on the big prize at the end… A valid, accessible and usable web interface. It all stems from the root document, the HTML.
Of the web page, or document, yes. Everything stems from the core document. That is what the DOM is constructed from.
We cannot present content with CSS, at least not in an explicit and deliberate way. The core document is how we lay in a foundation, along with explicit, imported and derived (meaning user influenced or provided) content. The HTML document is the interface through which we communicate, both to the user (as is normal in a static environment) and by the user through interaction and data inputs.
HTML is essentially the template into which we insert all our data points in a documented rendering for dissemination by our users. The skill needed to make this interface user friendly and device compatible is directly bound to HTML. Granted, there are a lot of moving parts in a production environment, but at the learning stage, the HTML is the only moving part. Dedicate yourself to it without style sheets or scripts until you are totally comfortable with it and can generate valid documents in your sleep.
and I realize that this may be a little off topic but how do people get this good at coding? How long does it really take?
CSS is sooo amazing it just boggles the mind. There is no end of possibilities, now or ten years in the past. I’d rather search for a way to do something with CSS than with script. The more ways we can present a fully functional web page without script the better. That goes a long way toward making a page universally usable.
CSS (Cascading Style Sheet) is a language, but it too is not a programming language; and, it is explicitly declarative.
One thing we eventually catch on to is the inherent gentleness with which HTML and CSS treat our errors. There is nothing you cannot type into an HTML page or a CSS style sheet that will break the browser. It may queer up the page, but that’s all. Since there is no program there is no compiler or execution context.
HTML we type in that makes no sense to the browser is ignored, and the same goes for CSS. There is no potential of infinite loops or locked pages. I highly recommend you explore raw HTML in its fullest before going into CSS. Learn all the default styles of a raw document. Explore all the HTML elements in the raw state. It will be well worth your while.
You keep on bringing it up, and I’ve heard other people say it, but I’m a bit confused on what you mean when HTML is a raw text, yet I don’t know what that really means.(sorry if it seems like a dumb question)
raw text is what we type into a text editor such as Notepad. Plain ASCII is raw text. HTML is a text based language, text essentially being whatever characters we type from the keyboard.
Open your text editor and type something. Save it. The Name field is probably waiting for you to type something in front of the already present,
.txt extension. That is a raw text media file format.
The HTML parsing engine in our browser is able to scan raw text for meaningful signals, such as carat wrapped terms, (
<element>) and separate them from the general text. Search engines do this in reverse. They strip the HTML and index only the text left over. The purpose of markup language is to be able to facilitate both renderings.
This all seems so broad!
It is broad. Far reaching, in fact. There is a totality about it.
tells the computer to expect raw text;
tells the computer to expect raw text, but to parse it for HTML characteristics, and if found, treat it as HTML.
Both files are raw text.