Why would raw text need a structure?


#1

Question

Within the context of this exercise which defines HTML, why would raw text need a structure? Doesn’t it already have a grammatically defined structure?

Answer

While raw text might have a grammatically defined structure, this isn’t the type of structure we are referring to here. By carefully marking up the contents of a page, developers can create a hierarchy of information which serves several purposes:

  • it allows users scanning a site to quickly pick out the most important ideas.
  • it helps visually impaired users navigate the content of a page using special software.
  • it helps search engines pick out important keywords that might otherwise get lost in a sea of text.

FAQ: Learn HTML Elements - Intro to HTML - What is HTML?
#8

what does raw text mean ??


#9

This question is basically asking: why do I have to put in any code if I just want it to be what laymen would refer to as “regular” text (so, without anything fancy).

The answer is in two parts saying: 1) you need code for everything and 2) why exactly that is.

Hope that helps!


#10

Lets say that it already has a pre-defined structure. The pre-defined structure is basic and simple. To create something more complicated it is better to add codes to change the original structure of text than to use the original one.


#11

ya that is just confusing


#12

ikr its so confusing


#13

Raw text is the text that you are putting onto the page, which needs a structure because that tells it where to go - headings, indentations, subheadings, etc. are all built by the structure that you put the raw text into.


#14

What is confusing about it? Is it the idea of raw text vs structures or the idea of raw texts at all? Think about it this way, when you read a newspaper is all the text the same size or in the same place? No. The “raw text” or writing is formatted with structures like headings and bylines that are of different sizes and in different places on the page. Just like with a newspaper, text on a website needs to be formatted so that it is readable and makes sense.


#15

ok now it makes sense thank you


#16

Thank you for your help :wink:


#19

The reason this seem confusing to some, is mostly because of the “word processor” expectation.
Meaning, if you been using any Office Suite, like MS Office, Libre Office, then you accustome to just typing content on the page and formatting things, then it look nice. Very easy and convenient.

But here’s the thing many don’t know, even word processors like MS Word have hidden/invisible characters on the page.It’s simply disable by default.
We as humans can see something is bold, a paragraph, etc, but the computer don’t.

It only know and do what we tell it do.
Tags allow the browser engine to recognize what you feeding it, so it knows then what it should do with it, and how to display it. consider it a command you giving the browser. You telling it to abide by certain rules/guidelines, instead of getting random results.

It not easy to grasp the concept at first, but click and drag builders also have to add these markup behind the scenes. programming languages have always been how developers give instructions to computers. we just created better software over time that blurred the line between human readable and machine code.


#20

This is very useful, thank you! I am new to coding, and this just clarify a lots of terms and concepts I had problem understanding.