'생활의 발견 > Cool' 카테고리의 다른 글
| Don’t look back. - 뒤돌아보지마 (0) | 2023.07.20 |
|---|---|
| 나는 정서지능이 높은 사람일까? 특징 5가지 (0) | 2023.06.20 |
| 삶의 문제에 고귀한 밑거름이 된다 (0) | 2023.06.05 |
| 스탠리 어드벤처 프로그레이드 쿨러 15.1L - 그린. 상판 사이즈 (0) | 2023.05.01 |
| 상전벽해(桑田碧海) (1) | 2023.04.28 |
| Don’t look back. - 뒤돌아보지마 (0) | 2023.07.20 |
|---|---|
| 나는 정서지능이 높은 사람일까? 특징 5가지 (0) | 2023.06.20 |
| 삶의 문제에 고귀한 밑거름이 된다 (0) | 2023.06.05 |
| 스탠리 어드벤처 프로그레이드 쿨러 15.1L - 그린. 상판 사이즈 (0) | 2023.05.01 |
| 상전벽해(桑田碧海) (1) | 2023.04.28 |
탭 : char(9)
select * from 테이블명
where 컬럼명 = char(9)
엔터값 : char(10) + char(13)
select * from 테이블명
where 컬럼명 = char(10) + char(13)
| Tab | char(9) |
| Line feed | char(10) |
| Carriage return | char(13) |
select 'a'+char(9)+'b'
select 'a'+char(13)+'b'
select 'a'+char(10)+'b'
엑셀출력 등을 하거나 화면에서 공백을 제거해야할 경우 공백이랑 엔터 같이 제껴야 한다.
탭까지 제낄 필요있으면 char(9) 추가
REPLACE( REPLACE(column,char(13),'' ), char(10), '')
| [MSSQL] 날짜차이, 이전 행 정보 LAG LEAD (0) | 2023.07.03 |
|---|---|
| [MSSQL] identity 를 설정한 칼럼에 insert 하기 (0) | 2023.06.19 |
| [MSSQL] 정렬조건없이 순번 매기기 , row_number() rank, dense_rank (0) | 2023.06.05 |
| [MSSQL] NTILE(Transact-SQL) (0) | 2023.05.15 |
| 데이터 분석가 나도 시작할 수 있을까? (역량, 공부) (0) | 2023.01.19 |
asp 에서 개행문자 줄바꿈 문자 공백문자 - vbCrLf , chr(10), chr(13), chr(32)
asp 에서 줄바꿈 변수는 vbCrLf 라는 것이 있는데, 이는 아래 둘을 포함한다.
- chr(13) : 맨 앞으로 (\r)
- chr(10) : 줄바꿈 (\n)
줄바꿈을 <br /> 로 변경
- replace(textarea_content, chr(13), "<br />")
공백을 로 변경
- replace(textarea_content, chr(32), " ")
따라서,
textarea에서 줄바꿈 및 공백을 입력한 부분을 아래와 같이 Replace하여 보여 주면 입력된 내용과 동일하게 보여줄 수 있다.
textarea_content = Replace(replace(textarea_content, chr(13), "<br />"), Chr(32), " ")
| [HTML] details summary , jquery로 open 제어 (0) | 2023.07.14 |
|---|---|
| Web Speech API - TTS , not API (0) | 2023.06.12 |
| 아직도 PHP를 사용하는 사람들은 누구입니까? (0) | 2023.06.08 |
| 입력항목 기록 삭제, How to clear history of text input (0) | 2023.06.01 |
| Develop responsive web apps 5x faster! (0) | 2023.05.30 |
https://www.youtube.com/watch?v=0nRfyE0L-aY
신궁이 되는 비결을 찾아 헤매던 궁수가
어느 산에 신궁이 있단 소식을 듣고 찾아갔다.
소문대로 표시된 과녁마다 예외없이 명중되어 있었다.
신궁에게 비결을 물었다.
“먼저 쏘아라.
그런 다음 붓으로 과녁을 그려 넣으면 된다.”
- 최윤식 저, ‘2030 기회의 대이동’에서
우리는 과녁이 고정되어 있지 않고 수시로 변화하는
불확실성의 시대를 살아가고 있습니다.
완벽하게 준비하느라
막상 화살을 쏘아보지도 못하고
타임아웃 될 위험도 높아지고 있습니다.
완벽주의는 때론 해악을 불러옵니다.
일단 지금 시작하는 것이 수많은 준비보다 훨씬 나은 시대입니다.


| 그것이 바로 경영자가 하는 일이다 (0) | 2023.06.13 |
|---|---|
| 나 보다 공동체 이익을 우선 고려하라 (0) | 2023.06.12 |
| 오랫동안 번창하는 조직의 비밀 (0) | 2023.06.08 |
| 단점 보완이 아닌 강점 활용에 집중하라 (0) | 2023.06.07 |
| 누구라도 남을 칭찬하면 좋은 일이 생깁니다 (0) | 2023.06.05 |

상처에 가시가 돋고,
가시가 누군가에게 상처를 입히고,
그 상처에 가시가 돋고,
가시가 또 누군가에게 상처를 입히고.
- 이적의 《이적의 단어들》 중에서 -
* 암세포도
본래 정상적인 세포였습니다.
어떤 연유로 생긴 상처가 주변에 상처를 입히며
점점 덩치를 키워가다 결국에는 모두를 파멸로
이끌게 됩니다. 무심히 지나치지 말아야
할 것이 작은 상처입니다. 작은 것은
작은 것으로 끝나지 않습니다.
악순환의 시작입니다.
| 무화과 속의 '작은 꽃들' (0) | 2023.06.12 |
|---|---|
| 꿈 (0) | 2023.06.10 |
| 사람은 세 번 변한다 (0) | 2023.06.08 |
| '내가 왜 사는 거지?' (0) | 2023.06.07 |
| 약속을 지키는지 하나만 봐도 (0) | 2023.06.06 |
[HTML] 24 Powerful HTML Attributes Every Senior Web Engineer Should Master!
24 Powerful HTML Attributes Every Senior Web Engineer Should Master!
There are many HTML attributes, in addition to some basic attributes, there are many useful and particularly powerful attributes;
javascript.plainenglish.io

There are many HTML attributes, in addition to some basic attributes, there are many useful and particularly powerful attributes;
This article will introduce 24 powerful HTML attributes that can make your website more dynamic and interactive, and make users feel more comfortable and happy.
Let’s explore these 24 powerful HTML attributes together!
The Accept attribute is used to specify a list of MIME types that the browser can handle.

Tips:
A MIME type is a standard for identifying the type of document,
For example, text/html represents an HTML document, image/jpeg represents a JPEG image, and so on.
By including the Accept attribute in the HTTP request header, the browser can tell the server which MIME types it can accept in response. Based on this information, the server can choose the most appropriate response type and return it to the browser. The value of the Accept attribute is a comma-separated list of MIME types, wildcards can be used to represent a class of MIME types, for example text/* represents all text types.
The Autofocus property is used to automatically set the focus to the specified element when the page loads.

Tips:
Autofocus attributes can be applied to various HTML elements such as text boxes, buttons, drop-down lists, and more.
In HTML5, the Autofocus attribute can omit the attribute value, indicating that the focus is set to the first element with the Autofocus attribute.
When the page is loaded, if there is an element with the Autofocus attribute, the browser will automatically focus the cursor on the element, so that the user can directly interact with the element without manually clicking or using the Tab key to switch focus.
The Inputmode attribute is an attribute for specifying the type of content entered in the text box.

It can help the browser to better optimize the input experience, such as automatically popping up the appropriate virtual keyboard on mobile devices.
The level of support for the Inputmode attribute may vary in different browsers.
Therefore, compatibility testing is required when using the Inputmode property.
The Pattern attribute is a regular expression pattern used to specify the input content in the text box. It can help the browser to verify whether the content entered by the user conforms to the specified format requirements.

If the content entered by the user does not conform to the regular expression pattern specified by the Pattern attribute, the browser will display a default error message.
Tips:
The Pattern attribute is usually used together with the required attribute to ensure that the content entered by the user conforms to the specified format requirements and is not empty. For example, you can use the Pattern property to validate user input for zip codes, phone numbers, email addresses, and so on.
The Required attribute is an attribute used to specify whether a form element is required.

If a form element has the Required attribute set, then when the form is submitted, if the value of the element is empty, the browser will prevent the form from being submitted and prompt the user to fill in the field.
Tips:
The Required attribute is often used with the type attribute of form elements, such as text boxes, drop-down lists, radio boxes, check boxes, and so on.
The Autocomplete attribute is an attribute used to specify whether the form element has auto-complete enabled.

Autocomplete helps users fill out forms faster and reduces the chance of typing errors.
Tips:
The degree of support for the Autocomplete attribute may vary in different browsers. Therefore, compatibility testing is required when using the Autocomplete property.
The Multiple attribute is an attribute used to specify whether a form element allows multiple selections.

The Multiple attribute is typically applied to form elements such as dropdown lists, file uploads, and checkboxes.
Tips:
If a form element has the Multiple attribute set, the user can select multiple options, not just a single one.
The Download attribute is an attribute for specifying a file name when a link downloads a file.

If a link is set with the Download attribute, then when the user clicks the link to download the file, the browser will save the file locally and use the file name specified by the Download attribute to name the file.
Tips:
The Download attribute is usually used in tags to download PDF, image, audio, video and other files.
The Contenteditable attribute in HTML is an attribute used to specify whether an element is editable.

Tips:
If an element sets the Contenteditable attribute, then the user can enter text, insert pictures, modify styles, etc. in the element. The Contenteditable attribute is usually applied to, and other elements are used to implement functions such as rich text editors and editable tables.
The Readonly attribute in HTML is an attribute used to specify whether a form element is read-only.

Tips:
If a form element has the Readonly attribute set, the user can see the value of the element, but cannot modify the value of the element. The Readonly attribute is usually applied to form elements such as text boxes, drop-down lists, and date pickers to display data or prevent users from modifying data.
The Hidden attribute is an attribute used to specify whether an element is hidden.

Tips:
If an element has the Hidden attribute set, the element will not be displayed on the page, but it still exists on the page and can be accessed through JavaScript, etc. The Hidden attribute is usually applied to elements such as form elements, buttons, images, etc., to pass data or control page behavior without affecting the page layout.
The Spellcheck attribute in HTML is an attribute used to specify whether to enable spell checking for an element.

Tips:
If an element sets the Spellcheck attribute, then when the user enters text in the element, the browser will automatically check for spelling errors and display a red wavy line under the incorrect word. The Spellcheck attribute is usually applied to elements such as text boxes and text fields to improve the accuracy of user input.
The Translate attribute in HTML is an attribute used to specify whether an element should be translated.

Tips:
If an element has the Translate attribute set, the browser will decide whether to translate the content of the element according to the value of the attribute. The Translate attribute is usually used in multilingual versions of websites to control which elements need to be translated and which elements do not.
The attribute in HTML loadingis a new attribute that can be used to specify the browser's priority when loading resources.

This attribute can be applied to tags such as <img>, <iframe>, <script>, <link>and <audio>.
Tips:
loadingAttributes are not supported by all browsers, so a compatibility check is required when using them.
onerroris a JavaScript event handler that fires on JavaScript errors.

onerrorEvent handlers can be added windowto objects to catch JavaScript errors globally.
Tips:
onerrorEvent handlers can only catch JavaScript errors that are not caught by other error handlers.
It is best to use try-catch statements in your code to catch and handle JavaScript errors.
posteris an attribute of the HTML5 <video>tag that specifies an image to display before the video loads and before it plays.

Tips:
posterAttributes only apply to <video>tags, not <audio>labels.
It is commonly used to provide a preview image or thumbnail of a video.
controlsIs an attribute of the neutral tag in HTML5 <video>, <audio>which is used to specify whether to display the controls of the media player.

If controlsthe property is set to controls, controls are displayed on the media player, such as a play/pause button, volume control, progress bar, etc.
<!DOCTYPE html>
<html>
<head>
<title>Controls Example</title>
</head>
<body>
<video width="320" height="240" controls>
<source src="video.mp4" type="video/mp4">
<source src="video.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
</body>
</html>`
controlsAttributes are only available in browsers that support HTML5. If the browser does not support HTML5, the control will not be displayed.
autoplayis an attribute of the neutral tag in HTML5 <video>that <audio>specifies whether the media should play automatically on page load.

If autoplaythe property is set to autoplay, the media will play automatically on page load.
<!DOCTYPE html>
<html>
<head>
<title>Autoplay Example</title>
</head>
<body>
<video width="320" height="240" autoplay>
<source src="video.mp4" type="video/mp4">
<source src="video.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
</body>
</html>`
Autoplay can negatively impact the user experience, so use autoplayattributes with caution. In some cases, browsers may block autoplay, such as on mobile devices, where the user must first interact with the page to allow autoplay.
loopis an attribute of the <video>neutral <audio>tag in HTML5 that specifies whether the media should loop after playback ends.

If loopthe property is set to loop, the media will loop after playback finishes.
<!DOCTYPE html>
<html>
<head>
<title>Loop Example</title>
</head>
<body>
<video width="320" height="240" loop>
<source src="video.mp4" type="video/mp4">
<source src="video.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
</body>
</html>`
Looping can negatively impact the user experience, so use loopattributes with care.
citeis a global attribute in HTML that can be used to specify the source of the citation.

citeThe value of the attribute should be a URL pointing to the source of the reference.
Tips:
citeAttributes can be applied to tags such as <blockquote>, <q>, <del>, etc.<ins>
If the source of the referrer is not a URL, citethe value of the property can be set to a string describing the referrer.
<!DOCTYPE html>
<html>
<head>
<title>Cite Example</title>
</head>
<body>
<blockquote cite="https://www.example.com/quote">
This is a quote from an external source.
</blockquote>
<q cite="https://www.example.com/quote">
This is a short quote from an external source.
</q>
<del cite="https://www.example.com/deleted">
This text has been deleted from an external source.
</del>
<ins cite="https://www.example.com/inserted">
This text has been inserted from an external source.
</ins>
</body>
</html>
citeAttributes do not automatically create links, so if you need to create a link, you need to use <a>a tag and hrefset the attribute as citethe value of the attribute.
datetimeIs an attribute of tags in HTML <time>, used to specify the date and time.

datetimeThe value of the attribute should be a valid date and time format, eg YYYY-MM-DDThh:mm:ss.
datetimeAttributes do not automatically format dates and times, so you need to use JavaScript or other tools to format dates and times.
asyncis an attribute of the tag in HTML <script>that specifies whether the script should be loaded asynchronously.

If asyncthe property is set to async, the script will be loaded asynchronously and will not block parsing and rendering of the page.
Scripts loaded asynchronously may execute before the rest of the page loads, so use with caution. This can cause errors if the script depends on other parts of the page.
deferis an attribute of the tag in HTML <script>that specifies whether scripts should be lazy-loaded.

If deferthe property is set to defer, the script will delay loading until the page has been parsed before executing it.
<!DOCTYPE html>
<html>
<head>
<title>Defer Example</title>
<script defer src="script.js"></script>
</head>
<body>
<p>This is a paragraph.</p>
</body>
</html>
In the example above, we deferset the property to defer, which will cause the script to be lazy loaded. In this case the script will be executed after the page has been parsed and will not block the page from loading.

Draggableis an attribute in HTML5 that allows users to move elements by dragging them. draggableWhen an element is set to , the user can drag the element with the mouse or by touching the screen. When dragging an element, a series of events will be triggered, such as dragstart, , dragand dragend, and these events can be used to implement the drag-and-drop function.
| [CSS] Magic inspired Social Share Button (0) | 2023.08.24 |
|---|---|
| Best 15 CSS Trends To Watch For 2023 (0) | 2023.07.04 |
| [Html] autofocus, required , placeholder, readonly (0) | 2022.11.01 |
| 웹폰트 사용하기,구글폰트/웹폰트 연결하기, 직접 폰트 변환하여 적용하기 (0) | 2022.10.31 |
| Pixabay 이미지 (0) | 2022.10.13 |