Quick question about Opening Tags in HTML


#1

Hello. I am on the HTML and CSS lessons right now and for the opening tag I see that there is the letter "p" inside. Can there be any letter inside as long as the opening and closing tag have the same one?

Ex

can I do and

If I cant, what is the significance of the P?

Thank you!!!


#2

Sorry I think there was an error when I posted for

"can I do and"

What I meant to say was can I put any string of letters like "RYT" inside the opening and closing in replacement of P? Thank you!


#3

Everything in HTML is plain text, which is why we don't write quotes around anything.

<p>Any text content goes between the tags.</p>

By 'anything' I mean everything that is between tags. We still need to quote attibute values.

<p class="sometext">The class attribute value is written in quotes</p>

#4

But what does the "p" mean?


#5

For some of the HTML and CSS exercises it asks you to put specific text inside the <p> or <h1> tags.


#6

p stands for paragraph.


#7

I'd go out on a limb to suggest that many first time HTML classes start with this on the board...

<p>Hello World</p>

That first lesson will center around this single construct, starting with an introduction to Standard General Markup Language and the longstanding convention that has applied since the first word processor came into being. It was that process, and the needs it had to fill, that of document creation that lead to the creation of markup.

Markup is the simple noun that identifies what our process embeds in the textual content of the document, which is unseen by the end user. Before there were word processors there were only typewriters and dot matrix printers. All type for the most part looked the same and recognized by the organization, ordering and grouping, and headings; mustn't forget headings.

The way a document reads will be cast into the organization and audience for which it is intended. An essay, screen play, poem, report, citation, and so forth will have its own conventional dictates of form and style. Word processors gave authors (and secretaries) the power to construct stunning documents. Markup was behind it.

In the early goings, that markup might have been manually inserted when preparing the document for publication. You see, once a word processor is brought into the picture, there is no longer any print to paper going on while we type. Everything is saved in memory and/or to disk before printing. The parsing engine of the word processor combined with the print drivers of the printer then render desktop published documents.

Even in those early days before most users of this site were even born, markup was the king of digital publishing. It also filled the need in data storage that made spreadsheets possible. XML is the language of data sheets. The ML stands for Markup Language.

It would not have come as any surprise that when the internet first came into being that the language to adapt to the World Wide Web would be HTML. It was not all that new as a markup language and it supported a concept that went back all the way to HyperCard, a system that, to me anyway introduced links.

And, it used a markup called HyperText. Today, that is the HT in HTML, and we have the linking system that was inherited from that early technology. It made creating and standardizing the WWW so much easier.

The more accurate history is out there if one cares to study up on it.

So here we are in our first HTML class and what have we put down on paper? Hopefully a lot if the professor is a good lecturer. Now go home, and mark up those notes.


#8

If you want to see what documents looked like before word processors, go to your city, college or university library and pull up fonds from before 1970. Study the make up of a good many. Fill your head with the way they are composed. Remember the structures and layout, and outline.

Outline is the key word, above. Documents always have an outline just as every great painting has preparatory sketches. We use markup to sketch this outline in our documents. Search engines use that outline to help with understanding and properly indexing our pages so they come up in search results.

Learn to create an outline of the webpage, first, then fill in the details when that outline makes perfect sense. That is the key to creating masterful web documents and the bottom line of web development. The end user is the one who will consume that product. Making them want more is the foundation of web marketing. That's what makes this whole thing work.


#9

Oh thank makes sense thank you!!


#10

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.