Computer Science, asked by nik58, 1 year ago

how to html code works

Answers

Answered by goutam3
0
As I said before, everything you do in a web page is using tags. The basic format of a tag is this:

<TAG> (something) </TAG>

For example, say I want to get a header, like the one above. Well, the code for that header is:

<H1>Tags: What are they? How do they work?</H1>

Notice that the tag begins with: <H1> and ends with: </H1>. This is an important aspect of tags. Almost all begin AND end. There are always exceptions, but let's assume for now that we have to end each one. It'll make life easier later on.

Every web page begins and ends with some very important tags. They are:
<HTML> -> tells your web browser that a page with HTML is coming up. The opening tag is always placed at the beginning of your document, and the closing tag is placed at the very end.
<HEAD> -> includes the title of your web page, any search terms, and other stuff we won't get into here. The opening is placed right after the initial HTML tag, and the closing is right away after any HEAD items.
<BODY> -> begins right after the HEAD tag, and ends just before the ending HTML tag.
So, with these few things in mind, here's what a page with just "blank page" as some text in it would look like:

<HTML>
<HEAD>

<HEAD>
<BODY>

blank page

</BODY>
</HTML>


Without getting into too much detail, here's a quick table of some of the most commonly used HTML tags:

<HTML> Used to begin any HTML document.
<HEAD> Inserted just after the HTML tag. Includes title and other page information.
<TITLE> Included in the HEAD part of the document. The text you put here is what shows up on the top of the browser.
<BODY> Starts after the HEAD tag and ends just before the last HTML tag.
<TABLE> I use this tag a LOT. We'll talk more about it later. In particular, this tag has lots of options like WIDTH, HEIGHT, BGCOLOR, and more.
<FONT> With this tag, you can specify a font style, (Times New Roman, for example) size, or even color.
<U> This tag is for the font - underline. (duh.)
<BR> This is sort of like a "return." It means to go to the next line without any spaces. This is one of the exceptions - you don't need to end this tag.
<P> This tag is used to signify the start of a paragraph
Answered by lucky091
0
HTML stands for Hypertext Markup Language.
It is used to describe the visual appearance of a document to be displayed by a internet browser.HTML documents consists of a document tags which act directly describes the visual appearance of a web page or to provide a directive command such as inserting imagery or a link to another web page within a document.HTML documents are saved in text format and are designed to be viewed or edited on any operating system that is able to connect to the Internet. 





Similar questions